11 #include <pythiaemcalana/pythiaEMCalAna.h>
13 R__LOAD_LIBRARY(libfun4all.so)
14 R__LOAD_LIBRARY(libpythiaEMCalAna.so)
18 const
char *filelist1 = "dst_calo_cluster.list",
19 const
char *filelist2 = "dst_truth.list",
20 const
string outname = "pythiaEMCalTrees.
root",
22 bool hasPythia = true)
26 gSystem->Load(
"libg4dst.so");
32 std::cout <<
"Adding file list " << filelist1 << std::endl;
38 std::cout <<
"Adding file list " << filelist2 << std::endl;
39 inTruth -> AddListFile(filelist2,1);
40 se -> registerInputManager(inTruth);
44 eval -> setGenEvent(1);
45 se -> registerSubsystem(eval);
51 cout <<
"Analysis Completed" << endl;