19 #include <phpythia8/PHPy8JetTrigger.h>
21 #include <jethistogrammer/jetHistogrammer.h>
23 #include <g4jets/FastJetAlgo.h>
24 #include <g4jets/JetReco.h>
28 R__LOAD_LIBRARY(libjetHistogrammer.so)
31 const
string &Jet_Trigger = "Jet10",
32 int doCrossSection = 1,
33 const
string &outname = "
out"
37 clock_t tStart = clock();
47 if (Jet_Trigger ==
"PhotonJet")
51 else if (Jet_Trigger ==
"Jet10")
55 else if (Jet_Trigger ==
"Jet30")
59 else if(Jet_Trigger ==
"MB")
65 std::cout <<
"Invalid jet trigger " << Jet_Trigger << std::endl;
71 if(Jet_Trigger !=
"MB")
75 p8_js_signal_trigger->
SetJetR(0.4);
77 if (Jet_Trigger ==
"Jet10")
81 else if (Jet_Trigger ==
"Jet30")
85 else if (Jet_Trigger ==
"PhotonJet")
87 delete p8_js_signal_trigger;
88 p8_js_signal_trigger =
nullptr;
89 cout <<
"no cut for PhotonJet" << endl;
93 cout <<
"invalid jet trigger: " << Jet_Trigger << endl;
97 if (p8_js_signal_trigger)
109 reco -> set_field(0);
110 reco -> SetWorldMaterial(
"G4_Galactic");
111 reco -> SetWorldSizeX(100);
112 reco -> SetWorldSizeY(100);
113 reco -> SetWorldSizeZ(100);
114 reco -> save_DST_geometry(
false);
117 reco -> registerSubsystem(truth);
118 se -> registerSubsystem(reco);
122 truthJetReco -> add_input(jetInput);
128 se -> registerSubsystem(truthJetReco);
130 string out = outname + Jet_Trigger +
".root";
132 se -> registerSubsystem(jetHistos);
138 std::cout <<
"All done" << std::endl;
142 std::cout <<
"Total runtime: " <<
double(clock() - tStart) / (
double)CLOCKS_PER_SEC << std::endl;;