6 #include <g4jets/JetMap.h>
27 , m_recoJetName(recojetname)
30 , m_outputFileName(outputfilename)
32 std::cout <<
"TracksInJets::TracksInJets(const std::string &name) Calling ctor" << std::endl;
38 std::cout <<
"TracksInJets::~TracksInJets() Calling dtor" << std::endl;
44 std::cout <<
"TracksInJets::Init(PHCompositeNode *topNode) Initializing" << std::endl;
46 m_h_track_vs_calo_pt =
new TH3F(
"m_h_track_vs_calo_pt",
"",100,0,100,500,0,100,10,0,100);
55 std::cout <<
"TracksInJets::InitRun(PHCompositeNode *topNode) Initializing for Run XXX" << std::endl;
69 <<
"TracksInJets::process_event - Error can not find DST Reco JetMap node "
75 SvtxTrackMap* trackmap = findNode::getClass<SvtxTrackMap>(topNode,
"SvtxTrackMap");
78 trackmap = findNode::getClass<SvtxTrackMap>(topNode,
"TrackMap");
82 <<
"TracksInJets::process_event - Error can not find DST trackmap node SvtxTrackMap" << std::endl;
88 CentralityInfo* cent_node = findNode::getClass<CentralityInfo>(topNode,
"CentralityInfo");
92 <<
"TracksInJets::process_event - Error can not find centrality node "
96 int cent = cent_node->
get_centile(CentralityInfo::PROP::mbd_NS);
101 Jet* jet = iter->second;
105 TVector3 sumtrk(0, 0, 0);
107 iter != trackmap->
end();
123 double dEta =
v.Eta() - jet->
get_eta();
124 double dPhi =
v.Phi() - jet->
get_phi();
125 while(dPhi > M_PI) dPhi -= 2*M_PI;
126 while(dPhi < -M_PI) dPhi += 2*M_PI;
127 double dR = sqrt(dEta * dEta + dPhi * dPhi);
151 std::cout <<
"TracksInJets::EndRun(const int runnumber) Ending Run for Run " << runnumber << std::endl;
158 std::cout <<
"TracksInJets::End(PHCompositeNode *topNode) This is the End..." << std::endl;
175 std::cout <<
"TracksInJets::Reset(PHCompositeNode *topNode) being Reset" << std::endl;
182 std::cout <<
"TracksInJets::Print(const std::string &what) const Printing info for " << what << std::endl;