Analysis Software
Documentation for sPHENIX simulation software
 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 #ifndef MACRO_FUN4ALL_CALOANA_C
2 #define MACRO_FUN4ALL_CALOANA_C
3 
4 #include <fun4all/SubsysReco.h>
8 
9 #include <caloana/CaloAna.h>
10 
11 R__LOAD_LIBRARY(libfun4all.so)
12 R__LOAD_LIBRARY(libcaloana.so)
13 
14 void Fun4All_CaloAna(const char *fname = "/sphenix/sim/sim01/tutorials/CaloAna/G4sPHENIX_Pythia8.root")
15 {
16  gSystem->Load("libg4dst");
18  CaloAna *ca = new CaloAna("CALOANA","out.root");
19  // choose CEMC, HCALIN or HCALOUT or whatever you named your
20  // calorimeter
21  ca->Detector("CEMC");
22  se->registerSubsystem(ca);
24  in->fileopen(fname);
25  se->registerInputManager(in);
26  se->run();
27  se->End();
28 }
29 
30 #endif