|
ATLAS Offline Software
|
Go to the documentation of this file.
13 m_sParticleType(sParticleType),
14 h_fwd_e_response_vs_e(NULL),
15 h_fwd_e_response_vs_eta(NULL),
16 h_fwd_e_response_vs_abseta(NULL),
17 h_fwd_e_response_vs_phi(NULL),
18 h_fwd_dr_electron(NULL),
19 h_fwd_dphi_electron(NULL),
20 h_fwd_deta_electron(NULL)
44 TH1::SetDefaultSumw2(kTRUE);
65 h_fwd_dr_electron =
Book1D(
"DeltaRFwdElectron",
"#DeltaR(truth particle, electron); #DeltaR; Events", 30, 0., 0.2);
66 h_fwd_dphi_electron =
Book1D(
"DeltaPhiFwdElectron",
"#Delta #phi(truth particle, electron); #Delta #phi; Events", 20, -0.06, 0.06);
67 h_fwd_deta_electron =
Book1D(
"DeltaEtaFwdElectron",
"#Delta #eta(truth particle, electron); #Delta #eta; Events", 20, -0.06, 0.06);
95 if (hDenom->GetNbinsX() != hNom->GetNbinsX())
return;
97 for (
int bin_i = 1; bin_i <= hDenom -> GetNbinsX(); ++bin_i){
98 if(hDenom -> GetBinContent(bin_i) == 0)
continue;
99 double binContent = hNom -> GetBinContent(bin_i) / hDenom -> GetBinContent(bin_i);
100 double binCenter = hNom -> GetBinCenter(bin_i);
102 hEff -> Fill(binCenter, binContent);
TProfile * h_true_fwd_electron_eff_phi[nLevels-1]
TProfile * h_true_fwd_electron_eff_abseta[nLevels-1]
TH1 * h_true_fwd_electron_abseta[nLevels]
TH1 * h_true_fwd_electron_pt[nLevels]
TProfile * h_fwd_e_response_vs_abseta
Class providing the definition of the 4-vector interface.
TH1 * h_true_fwd_electron_phi[nLevels]
TProfile * h_fwd_e_response_vs_phi
static const std::string cLevelLabel[nLevels]
virtual void initializePlots()
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
TProfile * h_true_fwd_electron_eff_pt[nLevels-1]
TH1 * h_fwd_deta_electron
void fill(const xAOD::IParticle *part, int level)
TProfile * h_fwd_e_response_vs_eta
def TProfile(*args, **kwargs)
TProfile * h_true_fwd_electron_eff_eta[nLevels-1]
TProfile * h_fwd_e_response_vs_e
void makeEfficiencyPlot(TH1 *hDenom, TH1 *hNom, TProfile *hEff)
TH1 * h_true_fwd_electron_eta[nLevels]
void fillResponse(const xAOD::IParticle *part, const xAOD::Electron *electron)
TProfile * BookTProfile(const std::string &name, const std::string &labels, int nBinsX, float startX, float endX, float startY=-1, float endY=-1, bool prependDir=true, bool useRMS=false)
Book a TProfile histogram.
TH1 * h_fwd_dphi_electron
virtual void finalizePlots()
TrueFwdElectronsPlots(PlotBase *pParent, std::string sDir, std::string sParticleType)
std::string m_sParticleType