Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Fun4All_G4_Pi0_Tbt.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Fun4All_G4_Pi0_Tbt.C
1 // these include guards are not really needed, but if we ever include this
2 // file somewhere they would be missed and we will have to refurbish all macros
3 #ifndef MACRO_FUN4ALLG4SLOPECAL_C
4 #define MACRO_FUN4ALLG4SLOPECAL_C
5 
9 
10 #include <calib_emc_pi0/CaloCalibEmc_Pi0.h>
11 
12 // cppcheck-suppress unknownMacro
13 R__LOAD_LIBRARY(libfun4all.so)
14 
16  const int nEvents = 1,
17  const string &inputClustersFileList = "/sphenix/user/jfrantz/caloCalib/xaa",
18  const string &outputFile = "test1")
19 {
20  // this convenience library knows all our i/o objects so you don't
21  // have to figure out what is in each dst type
22  gSystem->Load("libg4dst.so");
23  gSystem->Load("libcalibCaloEmc_pi0.so");
24 
26  se->Verbosity(); // set it to 1 if you want event printouts
27 
28  Fun4AllInputManager *in = new Fun4AllDstInputManager("DSTClusters");
29  in->AddListFile(inputClustersFileList);
30  se->registerInputManager(in);
31 
32  string outputfile = outputFile + "_g4cemc_eval.root";
33 
34  CaloCalibEmc_Pi0 *eval = new CaloCalibEmc_Pi0("CEMC_CALIB_PI0", outputfile);
35  // eval->Verbosity(verbosity);
36  se->registerSubsystem(eval);
37 
38  se->run(nEvents);
39  se->End();
40  delete se;
41  gSystem->Exit(0);
42 }
43 
44 #endif //MACRO_FUN4ALLG4SLOPECAL_C