4 const char * inputFile =
"/gpfs02/phenix/prod/sPHENIX/preCDR/pro.1-beta.5/single_particle/spacal1d/fieldmap/G4Hits_sPHENIX_e-_eta0_16GeV.root",
5 const char * outputFile =
"G4EICIR.root"
13 const bool pgun =
true;
21 bool do_magnet =
true;
24 bool do_ExtendedIR =
true;
30 gSystem->Load(
"libfun4all.so");
31 gSystem->Load(
"libg4detectors.so");
32 gSystem->Load(
"libphhepmc.so");
33 gSystem->Load(
"libg4testbench.so");
34 gSystem->Load(
"libg4hough.so");
35 gSystem->Load(
"libg4eval.so");
38 gROOT->LoadMacro(
"G4Setup_EICIR.C");
39 G4Init(do_magnet,do_pipe,do_ExtendedIR);
41 int absorberactive = 0;
43 const string magfield =
"/phenix/upgrades/decadal/fieldmaps/sPHENIX.2d.root";
82 double px = ptot * sin(psi_mrad / 1000.);
84 double pz = ptot * cos(psi_mrad / 1000.);
94 cout <<
"WARNING: No events being generated!" << endl;
115 gROOT->LoadMacro(
"G4_DSTReader_EICIR.C");
124 if (
nEvents == 0 && !readhits && !readhepmc)
126 cout <<
"using 0 for number of events is a bad idea when using particle generators" << endl;
127 cout <<
"it will run forever, so I just return without running anything" << endl;
139 std::cout <<
"All done" << std::endl;
141 std::cout <<
"==== Useful display commands ==" << std::endl;
142 cout <<
"draw axis: " << endl;
143 cout <<
" G4Cmd(\"/vis/scene/add/axes 0 0 0 50 cm\")" << endl;
144 cout <<
"zoom" << endl;
145 cout <<
" G4Cmd(\"/vis/viewer/zoom 1\")" << endl;
146 cout <<
"viewpoint:" << endl;
147 cout <<
" G4Cmd(\"/vis/viewer/set/viewpointThetaPhi 0 0\")" << endl;
148 cout <<
"panTo:" << endl;
149 cout <<
" G4Cmd(\"/vis/viewer/panTo 0 0 cm\")" << endl;
150 cout <<
"print to eps:" << endl;
151 cout <<
" G4Cmd(\"/vis/ogl/printEPS\")" << endl;
152 cout <<
"set background color:" << endl;
153 cout <<
" G4Cmd(\"/vis/viewer/set/background white\")" << endl;
154 std::cout <<
"===============================" << std::endl;
161 std::cout <<
"All done" << std::endl;