19 TrackAnalysis(
name), m_pTCut(pTCut), m_etaCut(etaCut), m_d0Cut(d0Cut), m_z0Cut(z0Cut) {
22 m_h_integralD =
new TH1D(std::string(
m_name+
"-denominator-integral").c_str(), std::string(
m_name+
" integral fake denominator").c_str(), 1, 0.0, 1.0);
23 m_h_integralN =
new TH1D(std::string(
m_name+
"-numerator-integral").c_str(), std::string(
m_name+
" integral fake numerator").c_str(), 1, 0.0, 1.0);
24 m_h_integral =
new TH1D(std::string(
m_name+
"-integral").c_str(), std::string(
m_name+
" integral fake").c_str(), 1, 0.0, 1.0);
30 m_h_etaD =
new TH1D(std::string(
m_name+
"-denominator-eta").c_str(), std::string(
m_name+
" eta fake denominator").c_str(), 100, -2.5, 2.5);
31 m_h_phiD =
new TH1D(std::string(
m_name+
"-denominator-phi").c_str(), std::string(
m_name+
" phi fake denominator").c_str(), 100, -3.142, 3.142);
32 m_h_z0D =
new TH1D(std::string(
m_name+
"-denominator-z0").c_str(), std::string(
m_name+
" z0 fake denominator").c_str(), 100, -200, 200);
33 m_h_d0D =
new TH1D(std::string(
m_name+
"-denominator-d0").c_str(), std::string(
m_name+
" d0 fake denominator").c_str(), 100, -20, 20);
34 m_h_pTD =
new TH1D(std::string(
m_name+
"-denominator-pT").c_str(), std::string(
m_name+
" pT fake denominator").c_str(), 100, -10000, 10000);
41 m_h_etaN =
new TH1D(std::string(
m_name+
"-numerator-eta").c_str(), std::string(
m_name+
" eta fake numerator").c_str(), 100, -2.5, 2.5);
42 m_h_phiN =
new TH1D(std::string(
m_name+
"-numerator-phi").c_str(), std::string(
m_name+
" phi fake numerator").c_str(), 100, -3.142, 3.142);
43 m_h_z0N =
new TH1D(std::string(
m_name+
"-numerator-z0").c_str(), std::string(
m_name +
" z0 fake numerator").c_str(), 100, -200, 200);
44 m_h_d0N =
new TH1D(std::string(
m_name+
"-numerator-d0").c_str(), std::string(
m_name +
" d0 fake numerator").c_str(), 100, -20, 20);
45 m_h_pTN =
new TH1D(std::string(
m_name+
"-numerator-pT").c_str(), std::string(
m_name +
" pT fake numerator").c_str(), 100, -10000, 10000);
52 m_h_eta =
new TH1D(std::string(
m_name+
"-eta").c_str(), std::string(
m_name+
" eta efficiency").c_str(), 100, -2.5, 2.5);
53 m_h_phi =
new TH1D(std::string(
m_name+
"-phi").c_str(), std::string(
m_name+
" phi efficiency").c_str(), 100, -3.142, 3.142);
54 m_h_z0 =
new TH1D(std::string(
m_name+
"-z0").c_str(), std::string(
m_name+
" z0 efficiency").c_str(), 100, -200, 200);
55 m_h_d0 =
new TH1D(std::string(
m_name+
"-d0").c_str(), std::string(
m_name+
" d0 efficiency").c_str(), 100, -20, 20);
56 m_h_pT =
new TH1D(std::string(
m_name+
"-pT").c_str(), std::string(
m_name+
" pT efficiency").c_str(), 100, -10000, 10000);
74 const std::vector<TIDA::Track*>& testTracks,
79 std::vector<TIDA::Track*>::const_iterator
test, testEnd=testTracks.end();
84 double testEta = (*test)->eta();
85 double testPhi =
phi((*test)->phi());
86 double testZ0 = (*test)->z0();
87 double testD0 = (*test)->a0();
88 double testPT = (*test)->pT();
91 bool passesEta = (fabs(testEta)<
m_etaCut);
92 bool passesPT = (fabs(testPT)>
m_pTCut);
93 bool passesD0 = (fabs(testD0)<
m_d0Cut);
94 bool passesZ0 = (fabs(testZ0)<
m_z0Cut);
95 if(passesPT&&passesD0&&passesZ0)
m_h_etaD->Fill(testEta);
96 if(passesPT&&passesD0&&passesZ0&&passesEta)
m_h_phiD->Fill(testPhi);
97 if(passesPT&&passesD0&&passesEta)
m_h_z0D->Fill(testZ0);
98 if(passesPT&&passesZ0&&passesEta)
m_h_d0D->Fill(testD0);
99 if(passesD0&&passesZ0&&passesEta)
m_h_pTD->Fill(fabs(testPT));
100 if(passesPT&&passesD0&&passesZ0&&passesEta)
m_h_integralD->Fill(0.5);
109 if(passesPT&&passesD0&&passesZ0)
m_h_etaN->Fill(testEta);
110 if(passesPT&&passesD0&&passesZ0&&passesEta)
m_h_phiN->Fill(testPhi);
111 if(passesPT&&passesD0&&passesEta)
m_h_z0N->Fill(testZ0);
112 if(passesPT&&passesZ0&&passesEta)
m_h_d0N->Fill(testD0);
113 if(passesD0&&passesZ0&&passesEta)
m_h_pTN->Fill(fabs(testPT));
114 if(passesPT&&passesD0&&passesZ0&&passesEta)
m_h_integralN->Fill(0.5);