ATLAS Offline Software
Loading...
Searching...
No Matches
Tracking/TrkValidation/TrkValHistUtils/Root/EfficiencyPlots.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
8
9namespace Trk {
10 EfficiencyPlots::EfficiencyPlots(PlotBase *pParent, const std::string& sDir, ParamPlots *pNumPlots,
11 ParamPlots *pDenomPlots) : PlotBase(pParent, sDir) {
12 m_pNumPlots = pNumPlots;
13 m_pDenomPlots = pDenomPlots;
14
15 eff_eta = nullptr;
16 eff_phi = nullptr;
17 eff_pt = nullptr;
18 eff_pti = nullptr;
19 }
20
21 void
23 eff_eta = Book1D("Eff_eta", m_pNumPlots->eta, "Eta Efficiency; eta; efficiency");
24 eff_phi = Book1D("Eff_phi", m_pNumPlots->phi, "Phi Efficiency;Azimuthal Angle; efficiency");
25 eff_pt = Book1D("Eff_pt", m_pNumPlots->pt, "Pt Efficiency; Transverse Momentum [GeV]; efficiency");
26 eff_pti = Book1D("Eff_pti", m_pNumPlots->pt,
27 "Pt integrated Efficiency; Integrated Transverse Momentum [GeV]; efficiency");
28 }
29
30 void
37}
static void calculateEfficiency(TH1 *reference, TH1 *matched, TH1 *effPur)
static void calculateIntegrated(TH1 *all, TH1 *matched, TH1 *puri, int axis, int dim=1)
TH1D * Book1D(const std::string &name, const std::string &labels, int nBins, float start, float end, bool prependDir=true)
Book a TH1D histogram.
Definition PlotBase.cxx:94
PlotBase(PlotBase *parent, const std::string &sDir)
Definition PlotBase.cxx:29
EfficiencyPlots(PlotBase *pParent, const std::string &sDir, ParamPlots *pNumPlots, ParamPlots *pDenomPlots)
Ensure that the ATLAS eigen extensions are properly loaded.