12 #include <g4jets/JetMap.h>
13 #include <g4jets/Jetv1.h>
18 #include <calobase/RawTower.h>
19 #include <calobase/RawTowerContainer.h>
20 #include <calobase/RawTowerGeom.h>
21 #include <calobase/RawTowerGeomContainer.h>
39 , m_recoJetNameR02(recojetnameR02)
40 , m_recoJetNameR04(recojetnameR04)
41 , m_outputFileName(outputfilename)
42 , m_etaRange(-1.1, 1.1)
46 std::cout <<
"JetKinematicCheck::JetKinematicCheck(const std::string &name) Calling ctor" << std::endl;
52 std::cout <<
"JetKinematicCheck::~JetKinematicCheck() Calling dtor" << std::endl;
59 std::vector<std::string> cent_labels = {
"Inclusive",
"0-10%",
"10-20%",
"20-30%",
"30-40%",
"40-50%",
60 "50-60%",
"60-70%",
"70-80%",
"80-90%",
"90-100%"};
67 std::vector<int> colors = { kBlack, kRed, kBlue, kGreen+2, kViolet, kCyan,
68 kOrange, kPink+2, kMagenta, kTeal+3, kRed+3};
80 jet_spectra_r02 =
new TH2D(
"h_spectra_r02",
"", 15, 10, 100, 10, 0, 100);
82 jet_spectra_r04 =
new TH2D(
"h_spectra_r04",
"", 15, 10, 100, 10, 0, 100);
84 jet_eta_phi_r02 =
new TH3D(
"h_eta_phi_r02",
"", 24, -1.1, 1.1, 64, -M_PI, M_PI, 10, 0, 100);
87 jet_eta_phi_r04 =
new TH3D(
"h_eta_phi_r04",
"", 24, -1.1, 1.1, 64, -M_PI, M_PI, 10, 0, 100);
91 std::cout <<
"JetKinematicCheck::Init(PHCompositeNode *topNode) Initializing" << std::endl;
99 std::cout <<
"JetKinematicCheck::InitRun(PHCompositeNode *topNode) Initializing for Run XXX" << std::endl;
113 for(
int i = 0;
i < n_radii;
i++){
118 JetMap* jets = findNode::getClass<JetMap>(topNode, recoJetName);
122 <<
"MyJetAnalysis::process_event - Error can not find DST Reco JetMap node "
128 CentralityInfo* cent_node = findNode::getClass<CentralityInfo>(topNode,
"CentralityInfo");
132 <<
"MyJetAnalysis::process_event - Error can not find centrality node "
143 Jet* jet = iter->second;
147 if ((not eta_cut) or (not pt_cut))
continue;
148 if(jet->
get_pt() < 1)
continue;
162 std::cout <<
"JetKinematicCheck::process_event(PHCompositeNode *topNode) Processing Event" << std::endl;
171 std::cout <<
"JetKinematicCheck::ResetEvent(PHCompositeNode *topNode) Resetting internal structures, prepare for next event" << std::endl;
173 std:: cout <<
count << std::endl;
183 std::cout <<
"JetKinematicCheck::EndRun(const int runnumber) Ending Run for Run " << runnumber << std::endl;
191 std::cout <<
"JetKinematicCheck::End - Output to " <<
m_outputFileName << std::endl;
201 ncent = cent_labels.size();
205 TLegend *leg1 =
new TLegend(.7,.9,.9,1);
206 leg1->SetFillStyle(0);
207 leg1->SetBorderSize(0);
208 leg1->SetTextSize(0.06);
209 leg1->AddEntry((TObject*)0, Form(
"%2.0f < p_{T} < %2.0f [GeV/c]",
m_ptRange.first,
m_ptRange.second),
"");
210 leg1->AddEntry((TObject*)0, Form(
"%1.1f < #eta < %1.1f",
m_etaRange.first,
m_etaRange.second),
"");
240 TLegend *leg2 =
new TLegend(.7,.9,.9,1);
241 leg2->SetFillStyle(0);
242 leg2->SetBorderSize(0);
243 leg2->SetTextSize(0.06);
244 leg2->AddEntry((TObject*)0, Form(
"%2.0f < p_{T} < %2.0f [GeV/c]",
m_ptRange.first,
m_ptRange.second),
"");
245 leg2->AddEntry((TObject*)0, Form(
"%1.1f < #eta < %1.1f",
m_etaRange.first,
m_etaRange.second),
"");
272 TLegend *leg3 =
new TLegend(.7,.9,.9,1);
273 leg3->SetFillStyle(0);
274 leg3->SetBorderSize(0);
275 leg3->SetTextSize(0.06);
276 leg3->AddEntry((TObject*)0, Form(
"%2.0f < p_{T} < %2.0f [GeV/c]",
m_ptRange.first,
m_ptRange.second),
"");
277 leg3->AddEntry((TObject*)0, Form(
"%1.1f < #eta < %1.1f",
m_etaRange.first,
m_etaRange.second),
"");
303 TLegend *leg4 =
new TLegend(.7,.9,.9,1);
304 leg4->SetFillStyle(0);
305 leg4->SetBorderSize(0);
306 leg4->SetTextSize(0.06);
307 leg4->AddEntry((TObject*)0, Form(
"%2.0f < p_{T} < %2.0f [GeV/c]",
m_ptRange.first,
m_ptRange.second),
"");
308 leg4->AddEntry((TObject*)0, Form(
"%1.1f < #eta < %1.1f",
m_etaRange.first,
m_etaRange.second),
"");
329 std::cout <<
"JetKinematicCheck::End(PHCompositeNode *topNode) This is the End..." << std::endl;
336 std::cout <<
"JetKinematicCheck::Reset(PHCompositeNode *topNode) being Reset" << std::endl;
343 std::cout <<
"JetKinematicCheck::Print(const std::string &what) const Printing info for " << what << std::endl;