ATLAS Offline Software
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 
9 namespace 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
36  }
37 }
Trk::EfficiencyPlots::m_pDenomPlots
ParamPlots * m_pDenomPlots
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/EfficiencyPlots.h:19
Trk::ParamPlots
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/ParamPlots.h:13
EfficiencyPurityCalculator::calculateEfficiency
static void calculateEfficiency(TH1 *reference, TH1 *matched, TH1 *effPur)
Definition: EfficiencyPurityCalculator.cxx:53
Trk::EfficiencyPlots::EfficiencyPlots
EfficiencyPlots(PlotBase *pParent, const std::string &sDir, ParamPlots *pNumPlots, ParamPlots *pDenomPlots)
Definition: Tracking/TrkValidation/TrkValHistUtils/Root/EfficiencyPlots.cxx:10
PlotBase
Definition: PlotBase.h:34
Trk::ParamPlots::pt
TH1 * pt
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/ParamPlots.h:20
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
EfficiencyPurityCalculator.h
Trk::ParamPlots::eta
TH1 * eta
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/ParamPlots.h:18
Trk::EfficiencyPlots::eff_pti
TH1 * eff_pti
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/EfficiencyPlots.h:25
Trk::EfficiencyPlots::initializePlots
virtual void initializePlots()
Definition: Tracking/TrkValidation/TrkValHistUtils/Root/EfficiencyPlots.cxx:22
EfficiencyPurityCalculator::calculateIntegrated
static void calculateIntegrated(TH1 *all, TH1 *matched, TH1 *puri, int axis, int dim=1)
Definition: EfficiencyPurityCalculator.cxx:34
Trk::EfficiencyPlots::eff_pt
TH1 * eff_pt
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/EfficiencyPlots.h:24
PlotBase::Book1D
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
EfficiencyPurityCalculator::kX
@ kX
Definition: EfficiencyPurityCalculator.h:13
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
Trk::EfficiencyPlots::m_pNumPlots
ParamPlots * m_pNumPlots
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/EfficiencyPlots.h:20
Trk::EfficiencyPlots::finalizePlots
virtual void finalizePlots()
Definition: Tracking/TrkValidation/TrkValHistUtils/Root/EfficiencyPlots.cxx:31
EfficiencyPlots.h
Trk::EfficiencyPlots::eff_eta
TH1 * eff_eta
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/EfficiencyPlots.h:22
Trk::ParamPlots::phi
TH1 * phi
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/ParamPlots.h:19
ParamPlots.h
Trk::EfficiencyPlots::eff_phi
TH1 * eff_phi
Definition: Tracking/TrkValidation/TrkValHistUtils/TrkValHistUtils/EfficiencyPlots.h:23