Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_CaloWaveFormSim.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_CaloWaveFormSim.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
3 #include <fun4all/SubsysReco.h>
7 
8 #include <calowaveformsim/CaloWaveFormSim.h>
9 
10 R__LOAD_LIBRARY(libfun4all.so)
11 R__LOAD_LIBRARY(libcalowaveformsim.so)
12 #endif
13 
14 void Fun4All_CaloWaveFormSim(const char *fname = "G4Hits_sHijing_0_20fm-0000000041-00000.root", const char *fname2 = "DST_CALO_CLUSTER_sHijing_0_20fm-0000000041-00000.root", const char *outfile = "trees/0.root")
15 {
16  gSystem->Load("libg4dst");
17  gSystem->Load("libcalowaveformsim");
19  CaloWaveFormSim *ca = new CaloWaveFormSim("CALOWAVEFORMSIM",outfile);
20  ca->Detector("CEMC");
21  se->registerSubsystem(ca);
22 
24  in->fileopen(fname);
25 
27  in2->fileopen(fname2);
28 
29  // in->AddListFile("g4hits.list");
30 
31 // Fun4All
32  se->registerInputManager(in2);
33  se->registerInputManager(in);
34  se->run();
35  se->End();
36 }