EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
BeastMagneticField
delphes_EIC
Doxygen_Assist
east
eic-smear
EicRoot
eicsmear-jetexample
eicsmeardetectors
EicToyModel
estarlight
Fun4All-lmon
fun4all_coresoftware
fun4all_eic_qa
fun4all_eic_tutorials
fun4all_eicdetectors
fun4all_eicmacros
fun4all_g4jleic
fun4all_GenFit
fun4all_macros
fun4all_tutorials
blob
master
AnaTutorial
block
CaloAna
macro
Fun4All_CaloAna.C
src
clusters
CreateSubsysRecoModule
cylinder
eventgenerator_display
IonGun
MagneticField
materialscan
Momentum
myjetanalysis
MyOwnTTree
PHG4DSTReader
g4exampledetector
g4lblvtx
online_distribution
PEPSI
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
Fun4All_CaloAna.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Fun4All_CaloAna.C
1
#pragma once
2
#if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3
#include <
fun4all/SubsysReco.h
>
4
#include <
fun4all/Fun4AllServer.h
>
5
#include <
fun4all/Fun4AllInputManager.h
>
6
#include <
fun4all/Fun4AllDstInputManager.h
>
7
8
#include <caloana/CaloAna.h>
9
10
R__LOAD_LIBRARY
(libfun4all.so)
11
R__LOAD_LIBRARY
(libcaloana.so)
12
#endif
13
14
void
Fun4All_CaloAna
(
const
char
*fname =
"/sphenix/sim/sim01/tutorials/CaloAna/G4sPHENIX_Pythia8.root"
)
15
{
16
gSystem->Load(
"libg4dst"
);
17
gSystem->Load(
"libcaloana"
);
18
Fun4AllServer
*se =
Fun4AllServer::instance
();
19
CaloAna
*ca =
new
CaloAna
(
"CALOANA"
,
"out.root"
);
20
// choose CEMC, HCALIN or HCALOUT or whatever you named your
21
// calorimeter
22
ca->
Detector
(
"CEMC"
);
23
se->
registerSubsystem
(ca);
24
Fun4AllInputManager
*
in
=
new
Fun4AllDstInputManager
(
"in"
);
25
in->
fileopen
(fname);
26
se->
registerInputManager
(in);
27
se->
run
();
28
se->
End
();
29
}
fun4all_tutorials
blob
master
CaloAna
macro
Fun4All_CaloAna.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:54
using
1.8.2 with
EIC GitHub integration