2 #include <phgenfit/Track.h>
13 #include <phpythia8/PHPythia8.h>
38 #include <myjetanalysis/MyJetAnalysis_AllSi.h>
48 const
char *outputFile = "out_allSi",
49 const
char *genpar = "
pi-",
50 const
int det_ver = 2,
51 const
double pixel_size = 10.)
55 const int particle_gen = 1;
56 const int magnetic_field = 4;
58 bool do_projections =
false;
61 string projname1 =
"DIRC";
62 double projradius1 = 50.;
63 double length1 = 400.;
65 double thinness = 0.1;
67 string projname2 =
"FOR";
68 double projzpos2 = 130+thinness/2.;
69 double projradius2 = 50.;
71 string projname3 =
"BACK";
72 double projzpos3 = -(130+thinness/2.);
73 double projradius3 = 50.;
82 if(particle_gen<4) cout <<
"Particle that will be generated: " << std::string(genpar) << endl;
115 bool do_pythia8_jets =
false;
116 if (particle_gen==1){se->
registerSubsystem( gen); cout <<
"Using particle generator" << endl;}
117 else if(particle_gen==2){se->
registerSubsystem( gun); cout <<
"Using particle gun" << endl;}
118 else if(particle_gen==3){se->
registerSubsystem(segen); cout <<
"Using simple event generator" << endl;}
119 else if(particle_gen==4){
120 do_pythia8_jets =
true;
121 gSystem->Load(
"libPHPythia8.so");
138 if(magnetic_field==1){
142 else if(magnetic_field==2){
146 else if(magnetic_field==3){
147 B_label =
"_sPHENIX";
151 else if(magnetic_field==4){
156 cout <<
"User did not provide a valid magnetic field setting. Set 'magnetic_field'. Bailing out!" << endl;
226 double um_to_cm = 1E-04;
264 if(DISPLACED_VERTEX){
289 fast_sim_eval->
set_filename(TString(outputFile)+B_label+
"_FastTrackingEval.root");
309 Jet_Eval(
string(outputFile) +
"_g4jet_eval.root");
315 const std::string dst_name = std::string(outputFile)+
"_G4LBLVtx.root";
325 gSystem->Load(
"libmyjetanalysis");
326 std::string jetoutputFile = std::string(outputFile) + std::string(
"_electrons+jets.root");
327 MyJetAnalysis_AllSi *myJetAnalysis =
new MyJetAnalysis_AllSi(
"AntiKt_Track_r10",
"AntiKt_Truth_r10",jetoutputFile.data());
333 if (nEvents <= 0)
return;