1 #ifndef MACRO_FUN4ALLG4BABAR_C
2 #define MACRO_FUN4ALLG4BABAR_C
4 #include "GlobalVariables.C"
23 const
string &inputFile = "/sphenix/
data/data02/review_2017-08-02/single_particle/spacal2d/
fieldmap/G4Hits_sPHENIX_e-_eta0_8GeV-0002.root",
24 const
string &outputFile = "G4Babar.root",
25 const
string &embed_input_file = "/sphenix/
data/data02/review_2017-08-02/sHijing/fm_0-4.
list",
27 const
string &outdir = ".")
218 string outputroot = outputFile;
219 string remove_this =
".root";
220 size_t pos = outputroot.find(remove_this);
221 if (pos != string::npos)
223 outputroot.erase(pos, remove_this.length());
252 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
253 cout <<
"it will run forever, so I just return without running anything" << endl;
262 cout <<
"***** Enter any integer to proceed" << endl;
273 std::cout <<
"All done" << std::endl;
279 #endif // MACRO_FUN4ALLG4BABAR_C