1 #ifndef MACRO_FUN4ALLPHOTONDISPERSION_C
2 #define MACRO_FUN4ALLPHOTONDISPERSION_C
16 #include <getvectors/getVectors.h>
21 using namespace mySim;
26 const
string productionNumber = "00000",
27 const
string revisionNumber = "000")
31 if (outDir.substr(outDir.size() - 1, 1) !=
"/") outDir +=
"/";
32 outDir +=
particle +
"/" + revisionNumber +
"/";
33 string outputFileName =
"outputData_" +
particle +
"_" + revisionNumber +
"_" + productionNumber +
".root";
35 string outputRecoDir = outDir +
"/inReconstruction/";
36 string makeDirectory =
"mkdir -p " + outputRecoDir;
37 system(makeDirectory.c_str());
38 string outputRecoFile = outputRecoDir + outputFileName;
96 cout <<
"You can only enable Enable::GLOBAL_RECO or Enable::GLOBAL_FASTSIM, not both" << endl;
120 gROOT->ProcessLine(
"Fun4AllServer *se = Fun4AllServer::instance();");
121 gROOT->ProcessLine(
"PHG4Reco *g4 = (PHG4Reco *) se->getSubsysReco(\"PHG4RECO\");");
123 cout <<
"-------------------------------------------------" << endl;
124 cout <<
"You are in event display mode. Run one event with" << endl;
125 cout <<
"se->run(1)" << endl;
126 cout <<
"Run Geant4 command with following examples" << endl;
127 gROOT->ProcessLine(
"displaycmd()");
140 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
141 cout <<
"it will run forever, so I just return without running anything" << endl;
153 ifstream
file(outputRecoFile.c_str());
156 string moveOutput =
"mv " + outputRecoFile +
" " + outDir;
157 system(moveOutput.c_str());
160 std::cout <<
"All done" << std::endl;