1 #ifndef MACRO_FUN4ALLG4BEAST_C
2 #define MACRO_FUN4ALLG4BEAST_C
4 #include <GlobalVariables.C>
8 #include <G4_DSTReader_Beast.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 = "G4Beast.root",
25 const
string &embed_input_file = "/sphenix/
data/data02/review_2017-08-02/sHijing/fm_0-4.
list",
27 const
string &outdir = ".")
199 G4MAGNET::magfield = string(getenv(
"CALIBRATIONROOT")) + string(
"/Field/Map/EIC_Magnetic_Field_Map_2021_05_07_radial_coords_cm_T.120000.lines.Bmap");
215 string outputroot = outputFile;
216 string remove_this =
".root";
217 size_t pos = outputroot.find(remove_this);
218 if (pos != string::npos)
220 outputroot.erase(pos, remove_this.length());
249 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
250 cout <<
"it will run forever, so I just return without running anything" << endl;
259 cout <<
"***** Enter any integer to proceed" << endl;
270 std::cout <<
"All done" << std::endl;
276 #endif // MACRO_FUN4ALLG4BEAST_C