3 const char * inputFile =
"example_tesst.dat",
4 const char * outputFile =
"G4sPHENIXCells.root",
5 const char * embed_input_file =
"/sphenix/sim/sim01/production/2016-07-12/sHijing/spacal2d/G4Hits_sPHENIX_sHijing-0-4.4fm.list"
19 const bool readhits =
false;
22 const bool readhepmc =
false;
25 const bool runpythia8 =
false;
26 const bool runpythia6 =
false;
27 const bool runhepgen =
true;
31 const bool usegun =
false;
33 const bool readeictree =
false;
35 gSystem->Load(
"libfun4all.so");
37 gSystem->Load(
"libphhepmc.so");
38 gSystem->Load(
"libg4testbench.so");
39 gSystem->Load(
"libg4hough.so");
41 gSystem->Load(
"libeicana.so");
49 const string magfield =
"/phenix/upgrades/decadal/fieldmaps/sPHENIX.2d.root";
101 gSystem->Load(
"libPHPythia8.so");
113 gSystem->Load(
"libPHPythia6.so");
124 gSystem->Load(
"libsHEPGen.so");
182 pgen->
set_phi_range(5.3./180.*TMath::Pi(),5.7./180.*TMath::Pi());
189 pgen->
set_phi_range(-0.2./180.*TMath::Pi(),0.2./180.*TMath::Pi());
220 DISKinematics *mcana =
new DISKinematics(outputFile);
232 if (
nEvents == 0 && !readhits && !readhepmc)
234 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
235 cout <<
"it will run forever, so I just return without running anything" << endl;
246 std::cout <<
"All done" << std::endl;