10 #include <g4jets/JetMap.h>
11 #include <g4jets/Jetv1.h>
17 #include <calobase/RawTower.h>
18 #include <calobase/RawTowerContainer.h>
19 #include <calobase/RawTowerGeom.h>
20 #include <calobase/RawTowerGeomContainer.h>
29 SubsysReco(
"JetSeedCount_" + recojetname +
" " + truthjetname)
30 , m_recoJetName(recojetname)
32 , m_outputFileName(outputfilename)
47 std::cout <<
"JetSeedCount::Init(PHCompositeNode *topNode) Initializing" << std::endl;
57 std::cout <<
"JetSeedCount::InitRun(PHCompositeNode *topNode) Initializing for Run XXX" << std::endl;
79 JetMap* seedjetsraw = findNode::getClass<JetMap>(topNode,
"AntiKt_TowerInfo_HIRecoSeedsRaw_r02");
81 std::cout <<
"JetSeedCount::process_event - Error can not find DST raw seed jets" << std::endl;
86 JetMap* seedjetssub = findNode::getClass<JetMap>(topNode,
"AntiKt_TowerInfo_HIRecoSeedsSub_r02");
88 std::cout <<
"JetSeedCount::process_event - Error can not find DST sub seed jets" << std::endl;
93 CentralityInfo* cent_node = findNode::getClass<CentralityInfo>(topNode,
"CentralityInfo");
95 std::cout <<
"JetSeedCount::process_event - Error can not find CentralityInfo" << std::endl;
101 float cent_mbd = cent_node->
get_centile(CentralityInfo::PROP::mbd_NS);
110 Jet* jet = iter->second;
111 int passesCut = jet->
get_property(Jet::PROPERTY::prop_SeedItr);
123 Jet* jet = iter->second;
124 int passesCut = jet->
get_property(Jet::PROPERTY::prop_SeedItr);
168 std::cout <<
"JetSeedCount::End(PHCompositeNode *topNode) This is the End..." << std::endl;
172 TH1F *hRawSeedCount =
new TH1F(
"hRawSeedCount",
"Raw Seed Count per Event", 100, 0.00, 50.00);
173 hRawSeedCount->GetXaxis()->SetTitle(
"Raw Seed Count per Event");
174 hRawSeedCount->GetYaxis()->SetTitle(
"Number of Entries");
179 TH1F *hSubSeedCount =
new TH1F(
"hSubSeedCount",
"Sub Seed Count per Event", 100, 0.00, 50.00);
180 hSubSeedCount->GetXaxis()->SetTitle(
"Sub Seed Count per Event");
181 hSubSeedCount->GetYaxis()->SetTitle(
"Number of Entries");
186 TH2F *hRawSeedEnergyVsCent =
new TH2F(
"hRawSeedEnergyVsCent",
"Raw Seed Energy Vs Centrality", 10.00, 0.00, 100.00, 100, 0.00, 50.00);
187 hRawSeedEnergyVsCent->GetXaxis()->SetTitle(
"Centrality");
188 hRawSeedEnergyVsCent->GetYaxis()->SetTitle(
"RawSeedEnergy");
193 TH2F *hSubSeedEnergyVsCent =
new TH2F(
"hSubSeedEnergyVsCent",
"Sub Seed Energy Vs Centrality", 10.00, 0.00, 100.00, 100, 0.00, 50.00);
194 hSubSeedEnergyVsCent->GetXaxis()->SetTitle(
"Centrality");
195 hSubSeedEnergyVsCent->GetYaxis()->SetTitle(
"SubSeedEnergy");
207 TH1F *hCentMbd =
new TH1F(
"hCentMbd",
"hCentMbd", 10, 0.00, 100.00);
208 hCentMbd->GetXaxis()->SetTitle(
"Centrality (Mbd)");
209 hCentMbd->GetYaxis()->SetTitle(
"Number of Entries");
214 TH2F *hRawSeedVsCent =
new TH2F(
"hRawSeedVsCent",
"Raw Seed Vs Centrality", 10, 0.00, 100.00, 10, 0.00, 100.00);
215 hRawSeedVsCent->GetXaxis()->SetTitle(
"Centrality");
216 hRawSeedVsCent->GetYaxis()->SetTitle(
"Raw Seed Count");
233 TH2F *hSubSeedVsCent =
new TH2F(
"hSubSeedVsCent",
"Sub Seed Vs Centrality", 10, 0.00, 100.00, 100, 0.00, 100.00);
234 hSubSeedVsCent->GetXaxis()->SetTitle(
"Centrality");
235 hSubSeedVsCent->GetYaxis()->SetTitle(
"Sub Seed Count");
241 hRawSeedCount->Write();
242 hSubSeedCount->Write();
243 hRawSeedEnergyVsCent->Write();
244 hSubSeedEnergyVsCent->Write();
247 hRawSeedVsCent->Write();
248 hSubSeedVsCent->Write();