10 #include "CLHEP/Vector/LorentzVector.h"
53 , m_collection(
"CaloEntryLayer")
56 , m_ntupleFileName(
"/TrackRecordAnalysis/")
57 ,
m_path(
"/TrackRecordAnalysis/")
58 , m_thistSvc(
"THistSvc",
name)
69 std::string
detName(
"CaloEntry");
70 std::string ntupName(
"TrackRecordCaloEntry");
74 ntupName=
"TrackRecordCaloEntry";
78 ntupName=
"TrackRecordMuonEntry";
82 ntupName=
"TrackRecordMuonExit";
86 return StatusCode::FAILURE;
89 std::cout <<
"Name " <<
name() << std::endl;
97 float eta_down = -5.8;
128 m_h_xy =
new TH2D((
detName+
"_xy").c_str(),
"xy", 100,x_down,x_up,100, x_down, x_up);
168 m_h_pdg =
new TH1D((
detName+
"_pdg").c_str(),
"pdg", 100,-1000,1000);
173 m_tree =
new TTree(ntupName.c_str(), ntupName.c_str());
196 return StatusCode::SUCCESS;
224 CLHEP::Hep3Vector
p =(*track).GetPosition();
234 CLHEP::Hep3Vector
mom = (*track).GetMomentum();
239 m_h_edep->Fill((*track).GetEnergy());
241 m_h_pdg->Fill((*track).GetPDGCode());
243 m_x->push_back(
p.x());
244 m_y->push_back(
p.y());
245 m_z->push_back(
p.z());
246 m_r->push_back(
p.perp());
247 m_eta->push_back(
p.eta());
248 m_phi->push_back(
p.phi());
253 m_edep->push_back((*track).GetEnergy());
254 m_time->push_back((*track).GetTime());
255 m_pdg->push_back((*track).GetPDGCode());
261 return StatusCode::SUCCESS;