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 efficiency 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 efficiency 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 efficiency").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 efficiency 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 efficiency 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 efficiency 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 efficiency 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 efficiency 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 efficiency 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 efficiency 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 efficiency 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 efficiency 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 efficiency 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*>& ,
78 std::vector<TIDA::Track*>::const_iterator
reference, referenceEnd=referenceTracks.end();
82 double referenceEta = (*reference)->eta();
83 double referencePhi =
phi((*reference)->phi());
84 double referenceZ0 = (*reference)->z0();
85 double referenceD0 = (*reference)->a0();
86 double referencePT = (*reference)->pT();
89 bool passesEta = (fabs(referenceEta)<
m_etaCut);
90 bool passesPT = (fabs(referencePT)>
m_pTCut);
91 bool passesD0 = (fabs(referenceD0)<
m_d0Cut);
92 bool passesZ0 = (fabs(referenceZ0)<
m_z0Cut);
93 if(passesPT&&passesD0&&passesZ0)
m_h_etaD->Fill(referenceEta);
94 if(passesPT&&passesD0&&passesZ0&&passesEta)
m_h_phiD->Fill(referencePhi);
95 if(passesPT&&passesD0&&passesEta)
m_h_z0D->Fill(referenceZ0);
96 if(passesPT&&passesZ0&&passesEta)
m_h_d0D->Fill(referenceD0);
97 if(passesD0&&passesZ0&&passesEta)
m_h_pTD->Fill(referencePT);
98 if(passesPT&&passesD0&&passesZ0&&passesEta)
m_h_integralD->Fill(0.5);
107 if(passesPT&&passesD0&&passesZ0)
m_h_etaN->Fill(referenceEta);
108 if(passesPT&&passesD0&&passesZ0&&passesEta)
m_h_phiN->Fill(referencePhi);
109 if(passesPT&&passesD0&&passesEta)
m_h_z0N->Fill(referenceZ0);
110 if(passesPT&&passesZ0&&passesEta)
m_h_d0N->Fill(referenceD0);
111 if(passesD0&&passesZ0&&passesEta)
m_h_pTN->Fill(referencePT);
112 if(passesPT&&passesD0&&passesZ0&&passesEta)
m_h_integralN->Fill(0.5);