10 #include <g4jets/JetMap.h>
36 std::cout <<
"analysis::analysis(const std::string &name) Calling ctor" << std::endl;
42 std::cout <<
"analysis::~analysis() Calling dtor" << std::endl;
63 <<
"analysis::get_HistoManager - Making Fun4AllHistoManager analysis_HISTOS"
75 std::cout <<
"analysis::InitRun(PHCompositeNode *topNode) Initializing for Run XXX" << std::endl;
91 TTree*
tree=
new TTree(
"tree",
"tree");
108 double pi = TMath::Pi();
114 JetMap* tjets = findNode::getClass<JetMap>(topNode,
"AntiKt_Truth_r04");
118 <<
"MyJetAnalysis::process_event - Error can not find DST JetMap node "
124 JetMap* rjets = findNode::getClass<JetMap>(topNode,
"AntiKt_Tower_r04");
128 <<
"MyJetAnalysis::process_event - Error can not find DST JetMap node "
145 Jet* tjet = iter->second;
147 float tjet_phi = tjet->
get_phi();
148 float tjet_eta = tjet->
get_eta();
149 float tjet_pt = tjet->
get_pt();
151 float matched_pt = -999;
152 float matched_eta = -999;
153 float matched_phi = -999;
160 Jet* rjet = riter->second;
161 float rjet_phi = rjet->
get_phi();
162 float rjet_eta = rjet->
get_eta();
163 float rjet_pt = rjet->
get_pt();
165 float deta = fabs(rjet_eta - tjet_eta);
166 float dphi = fabs(rjet_phi - tjet_phi);
172 float dr = TMath::Sqrt(dphi*dphi + deta*deta);
175 matched_pt = rjet_pt;
176 matched_eta = rjet_eta;
177 matched_phi = rjet_phi;
193 m_dr.push_back(drmin);
205 TTree *
tree =
dynamic_cast<TTree *
>(hm->
getHisto(
"tree"));
235 std::cout <<
"analysis::EndRun(const int runnumber) Ending Run for Run " << runnumber << std::endl;
242 std::cout <<
"analysis::End(PHCompositeNode *topNode) This is the End..." << std::endl;
252 for (
unsigned int i = 0;
i < hm->
nHistos();
i++)
262 std::cout <<
"analysis::Reset(PHCompositeNode *topNode) being Reset" << std::endl;
269 std::cout <<
"analysis::Print(const std::string &what) const Printing info for " << what << std::endl;