1 #ifndef MACRO_G4INPUT_C 
    2 #define MACRO_G4INPUT_C 
    6 #include <phpythia6/PHPythia6.h> 
    8 #include <phpythia8/PHPythia8.h> 
   19 #include <fermimotionafterburner/FermimotionAfterburner.h> 
   26 #include <phsartre/PHSartre.h> 
   27 #include <phsartre/PHSartreParticleTrigger.h> 
   94     if (HepMCGen == 
nullptr)
 
   96       std::cout << 
"ApplysPHENIXBeamParameter(): Fatal Error - null input pointer HepMCGen" << std::endl;
 
  118     if (HepMCGen == 
nullptr)
 
  120       std::cout << 
"ApplyEICBeamParameter(): Fatal Error - null input pointer HepMCGen" << std::endl;
 
  125     const double EIC_hadron_crossing_angle = 25
e-3;
 
  128         EIC_hadron_crossing_angle,  
 
  141     const double z_hadron_cavity = 52e2;  
 
  142     const double z_e_cavity = 38e2;       
 
  144         -EIC_hadron_crossing_angle / 2. / z_hadron_cavity, 0,
 
  145         -EIC_hadron_crossing_angle / 2. / z_e_cavity, 0);
 
  148     const double sigma_p_h = sqrt(80 * 11.3
e-7);
 
  149     const double sigma_p_v = sqrt(7.2 * 1.0
e-7);
 
  150     const double sigma_p_l = 6;
 
  151     const double sigma_e_h = sqrt(45 * 20.0
e-7);
 
  152     const double sigma_e_v = sqrt(5.6 * 1.3
e-7);
 
  153     const double sigma_e_l = 2;
 
  156     const double collision_sigma_z = sqrt(sigma_p_l * sigma_p_l + sigma_e_l * sigma_e_l) / 2;
 
  157     const double collision_sigma_t = collision_sigma_z / 29.9792;  
 
  160         sigma_p_h * sigma_e_h / sqrt(sigma_p_h * sigma_p_h + sigma_e_h * sigma_e_h),  
 
  161         sigma_p_v * sigma_e_v / sqrt(sigma_p_v * sigma_p_v + sigma_e_v * sigma_e_v),  
 
  182 namespace INPUTREADEIC
 
  187 namespace INPUTREADHITS
 
  201   string config_file = string(getenv(
"CALIBRATIONROOT")) + 
"/Generators/phpythia6.cfg";
 
  206   string config_file = string(getenv(
"CALIBRATIONROOT")) + 
"/Generators/phpythia8.cfg";
 
  211   string config_file = string(getenv(
"CALIBRATIONROOT")) + 
"/Generators/sartre.cfg";
 
  216   string pileupfile = 
"/sphenix/sim/sim01/sphnxpro/MDC1/sHijing_HepMC/data/sHijing_0_20fm-0000000001-00000.dat";
 
  221 namespace INPUTGENERATOR
 
  228   std::vector<PHG4ParticleGun *> 
Gun;
 
  236 namespace INPUTMANAGER
 
  248     cout << 
"Reading Hits and Embedding into background at the same time is not supported" << endl;
 
  253     cout << 
"Reading Hits and running G4 simultanously is not supported" << endl;
 
  258     cout << 
"Pythia6 and Pythia8 cannot be run together - might be possible but needs R&D" << endl;
 
  264     cout << 
"Flow Afterburner and Pileup cannot be run simultanously" << endl;
 
  291     gSystem->Load(
"libPHSartre.so");
 
  502     gSystem->Load(
"libg4dst.so");
 
  505       cout << 
"only filenames or filelists are supported, not mixtures" << endl;
 
  510       cout << 
"you need to give an input filenames or filelist" << endl;
 
  515       string mgrname = 
"DSTin" + 
to_string(iter->first);
 
  524       string mgrname = 
"DSTin" + 
to_string(iter->first);
 
  546       cout << 
"no filename INPUTHEPMC::filename or listfile INPUTHEPMC::listfile given" << endl;
 
  552     gSystem->Load(
"libg4dst.so");
 
  555       cout << 
"only filenames or filelists are supported, not mixtures" << endl;
 
  560       cout << 
"you need to give an input filenames or filelist" << endl;
 
  565       string mgrname = 
"DSTin" + 
to_string(iter->first);
 
  573       string mgrname = 
"DSTin" + 
to_string(iter->first);