ATLAS Offline Software
InDetPerfPlot_Efficiency.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETPHYSVALMONITORING_INDETPERFPLOT_EFFICIENCY
6 #define INDETPHYSVALMONITORING_INDETPERFPLOT_EFFICIENCY
7 
19 // local includes
20 #include "InDetPlotBase.h"
22 // std includes
23 #include <string>
24 class TEfficiency;
25 
28 public:
29  InDetPerfPlot_Efficiency(InDetPlotBase* pParent, const std::string& dirName);
30 
31  void fill(const xAOD::TruthParticle& truth, const bool isGood, unsigned int truthMu, float actualMu, float weight);
32 
33  void fillTechnicalEfficiency(const xAOD::TruthParticle& truth, const bool isGood, unsigned int truthMu, float actualMu, float weight);
34 
35 private:
36  TEfficiency* m_efficiency_vs_pteta{};
37  TEfficiency* m_efficiency_vs_ptTruthMu{};
39 
42  std::vector<TEfficiency*> m_efficiency_vs_truthMu_eta_bin;
43  std::vector<TEfficiency*> m_efficiency_vs_actualMu_eta_bin;
44  std::vector<float> m_eta_bins = {
45  0., 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0
46  };
47 
48 
49  TEfficiency* m_efficiency_vs_eta{};
50  TEfficiency* m_efficiency_vs_pt{};
51  TEfficiency* m_efficiency_vs_pt_low{};
52  TEfficiency* m_efficiency_vs_pt_high{};
53  TEfficiency* m_efficiency_vs_pt_log{};
54  TEfficiency* m_efficiency_vs_lowpt{};
55  TEfficiency* m_efficiency_vs_phi{};
56  TEfficiency* m_efficiency_vs_d0{};
57  TEfficiency* m_efficiency_vs_d0_abs{};
58  TEfficiency* m_efficiency_vs_z0{};
59  TEfficiency* m_efficiency_vs_z0_abs{};
60  TEfficiency* m_efficiency_vs_R{};
61  TEfficiency* m_efficiency_vs_Z{};
62  TEfficiency* m_efficiency_vs_truthMu{};
63  TEfficiency* m_efficiency_vs_actualMu{};
64 
73 
78  TEfficiency* m_efficiency_vs_prodR{};
80  TEfficiency* m_efficiency_vs_prodZ{};
82 
83  TEfficiency* m_TrkRec_eta{};
84  TEfficiency* m_TrkRec_d0{};
85  TEfficiency* m_TrkRec_prodR{};
86  TEfficiency* m_TrkRec_pT{};
87  TEfficiency* m_TrkRec_truthMu{};
88  TEfficiency* m_TrkRec_actualMu{};
89  TEfficiency* m_TrkRec_eta_d0{};
90  TEfficiency* m_TrkRec_eta_prodR{};
91  TEfficiency* m_TrkRec_eta_pT{};
92 
93  // plot base has nop default implementation of this; we use it to book the histos
94  void initializePlots();
95  void finalizePlots();
96 };
97 
98 #endif
InDetPerfPlot_Efficiency::m_technical_efficiency_vs_actualMu
TEfficiency * m_technical_efficiency_vs_actualMu
Definition: InDetPerfPlot_Efficiency.h:72
InDetPerfPlot_Efficiency::m_efficiency_vs_pt_log
TEfficiency * m_efficiency_vs_pt_log
Definition: InDetPerfPlot_Efficiency.h:53
InDetPerfPlot_Efficiency::m_efficiency_vs_actualMu_eta_bin
std::vector< TEfficiency * > m_efficiency_vs_actualMu_eta_bin
Definition: InDetPerfPlot_Efficiency.h:43
InDetPerfPlot_Efficiency::m_efficiency_vs_prodR
TEfficiency * m_efficiency_vs_prodR
Definition: InDetPerfPlot_Efficiency.h:78
InDetPerfPlot_Efficiency::m_efficiency_vs_ptTruthMu
TEfficiency * m_efficiency_vs_ptTruthMu
Definition: InDetPerfPlot_Efficiency.h:37
InDetPerfPlot_Efficiency::m_extended_efficiency_vs_z0
TEfficiency * m_extended_efficiency_vs_z0
Definition: InDetPerfPlot_Efficiency.h:76
InDetPerfPlot_Efficiency::m_TrkRec_pT
TEfficiency * m_TrkRec_pT
Definition: InDetPerfPlot_Efficiency.h:86
InDetPerfPlot_Efficiency::m_efficiency_vs_eta
TEfficiency * m_efficiency_vs_eta
Definition: InDetPerfPlot_Efficiency.h:49
InDetPerfPlot_Efficiency::m_efficiency_vs_truthMu
TEfficiency * m_efficiency_vs_truthMu
Definition: InDetPerfPlot_Efficiency.h:62
InDetPerfPlot_Efficiency::m_efficiency_vs_prodZ
TEfficiency * m_efficiency_vs_prodZ
Definition: InDetPerfPlot_Efficiency.h:80
InDetPerfPlot_Efficiency::m_efficiency_vs_etaActualMu
TEfficiency * m_efficiency_vs_etaActualMu
Definition: InDetPerfPlot_Efficiency.h:41
InDetPerfPlot_Efficiency::InDetPerfPlot_Efficiency
InDetPerfPlot_Efficiency(InDetPlotBase *pParent, const std::string &dirName)
Definition: InDetPerfPlot_Efficiency.cxx:12
InDetPerfPlot_Efficiency::m_technical_efficiency_vs_eta
TEfficiency * m_technical_efficiency_vs_eta
Definition: InDetPerfPlot_Efficiency.h:66
InDetPerfPlot_Efficiency::initializePlots
void initializePlots()
Definition: InDetPerfPlot_Efficiency.cxx:18
InDetPerfPlot_Efficiency::finalizePlots
void finalizePlots()
Definition: InDetPerfPlot_Efficiency.cxx:190
InDetPerfPlot_Efficiency::m_efficiency_vs_z0
TEfficiency * m_efficiency_vs_z0
Definition: InDetPerfPlot_Efficiency.h:58
InDetPerfPlot_Efficiency::m_TrkRec_eta
TEfficiency * m_TrkRec_eta
Definition: InDetPerfPlot_Efficiency.h:83
InDetPerfPlot_Efficiency::m_TrkRec_actualMu
TEfficiency * m_TrkRec_actualMu
Definition: InDetPerfPlot_Efficiency.h:88
InDetPerfPlot_Efficiency::m_technical_efficiency_vs_z0
TEfficiency * m_technical_efficiency_vs_z0
Definition: InDetPerfPlot_Efficiency.h:70
InDetPerfPlot_Efficiency::m_extended_efficiency_vs_d0
TEfficiency * m_extended_efficiency_vs_d0
Definition: InDetPerfPlot_Efficiency.h:74
InDetPerfPlot_Efficiency::m_efficiency_vs_prodZ_extended
TEfficiency * m_efficiency_vs_prodZ_extended
Definition: InDetPerfPlot_Efficiency.h:81
InDetPerfPlot_Efficiency::m_technical_efficiency_vs_pteta
TEfficiency * m_technical_efficiency_vs_pteta
Definition: InDetPerfPlot_Efficiency.h:65
InDetPerfPlot_Efficiency::m_TrkRec_truthMu
TEfficiency * m_TrkRec_truthMu
Definition: InDetPerfPlot_Efficiency.h:87
InDetPerfPlot_Efficiency::m_extended_efficiency_vs_d0_abs
TEfficiency * m_extended_efficiency_vs_d0_abs
Definition: InDetPerfPlot_Efficiency.h:75
InDetPerfPlot_Efficiency::m_efficiency_vs_pt_high
TEfficiency * m_efficiency_vs_pt_high
Definition: InDetPerfPlot_Efficiency.h:52
InDetPerfPlot_Efficiency::m_efficiency_vs_pteta
TEfficiency * m_efficiency_vs_pteta
Definition: InDetPerfPlot_Efficiency.h:36
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
InDetPerfPlot_Efficiency
class holding Pt plots for Inner Detector RTT Validation and implementing fill methods
Definition: InDetPerfPlot_Efficiency.h:27
InDetPerfPlot_Efficiency::m_efficiency_vs_R
TEfficiency * m_efficiency_vs_R
Definition: InDetPerfPlot_Efficiency.h:60
InDetPerfPlot_Efficiency::m_efficiency_vs_ptActualMu
TEfficiency * m_efficiency_vs_ptActualMu
Definition: InDetPerfPlot_Efficiency.h:38
InDetPlotBase
Mixin class to give extra capabilities to plots such as ATH_MSG and an easier booking interface,...
Definition: InDetPlotBase.h:33
InDetPlotBase.h
InDetPerfPlot_Efficiency::m_TrkRec_prodR
TEfficiency * m_TrkRec_prodR
Definition: InDetPerfPlot_Efficiency.h:85
InDetPerfPlot_Efficiency::fillTechnicalEfficiency
void fillTechnicalEfficiency(const xAOD::TruthParticle &truth, const bool isGood, unsigned int truthMu, float actualMu, float weight)
Definition: InDetPerfPlot_Efficiency.cxx:169
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
InDetPerfPlot_Efficiency::m_eta_bins
std::vector< float > m_eta_bins
Definition: InDetPerfPlot_Efficiency.h:44
InDetPerfPlot_Efficiency::m_efficiency_vs_truthMu_eta_bin
std::vector< TEfficiency * > m_efficiency_vs_truthMu_eta_bin
Definition: InDetPerfPlot_Efficiency.h:42
InDetPerfPlot_Efficiency::m_TrkRec_d0
TEfficiency * m_TrkRec_d0
Definition: InDetPerfPlot_Efficiency.h:84
InDetPerfPlot_Efficiency::m_efficiency_vs_z0_abs
TEfficiency * m_efficiency_vs_z0_abs
Definition: InDetPerfPlot_Efficiency.h:59
InDetPerfPlot_Efficiency::fill
void fill(const xAOD::TruthParticle &truth, const bool isGood, unsigned int truthMu, float actualMu, float weight)
Definition: InDetPerfPlot_Efficiency.cxx:97
InDetPerfPlot_Efficiency::m_TrkRec_eta_d0
TEfficiency * m_TrkRec_eta_d0
Definition: InDetPerfPlot_Efficiency.h:89
InDetPerfPlot_Efficiency::m_TrkRec_eta_prodR
TEfficiency * m_TrkRec_eta_prodR
Definition: InDetPerfPlot_Efficiency.h:90
InDetPerfPlot_Efficiency::m_efficiency_vs_d0
TEfficiency * m_efficiency_vs_d0
Definition: InDetPerfPlot_Efficiency.h:56
InDetPerfPlot_Efficiency::m_efficiency_vs_Z
TEfficiency * m_efficiency_vs_Z
Definition: InDetPerfPlot_Efficiency.h:61
InDetPerfPlot_Efficiency::m_efficiency_vs_etaTruthMu
TEfficiency * m_efficiency_vs_etaTruthMu
Definition: InDetPerfPlot_Efficiency.h:40
InDetPerfPlot_Efficiency::m_efficiency_vs_d0_abs
TEfficiency * m_efficiency_vs_d0_abs
Definition: InDetPerfPlot_Efficiency.h:57
InDetPerfPlot_Efficiency::m_technical_efficiency_vs_pt
TEfficiency * m_technical_efficiency_vs_pt
Definition: InDetPerfPlot_Efficiency.h:67
InDetPerfPlot_Efficiency::m_TrkRec_eta_pT
TEfficiency * m_TrkRec_eta_pT
Definition: InDetPerfPlot_Efficiency.h:91
InDetPerfPlot_Efficiency::m_efficiency_vs_prodR_extended
TEfficiency * m_efficiency_vs_prodR_extended
Definition: InDetPerfPlot_Efficiency.h:79
InDetPerfPlot_Efficiency::m_efficiency_vs_pt_low
TEfficiency * m_efficiency_vs_pt_low
Definition: InDetPerfPlot_Efficiency.h:51
InDetPerfPlot_Efficiency::m_technical_efficiency_vs_truthMu
TEfficiency * m_technical_efficiency_vs_truthMu
Definition: InDetPerfPlot_Efficiency.h:71
InDetPerfPlot_Efficiency::m_technical_efficiency_vs_d0
TEfficiency * m_technical_efficiency_vs_d0
Definition: InDetPerfPlot_Efficiency.h:69
InDetPerfPlot_Efficiency::m_extended_efficiency_vs_z0_abs
TEfficiency * m_extended_efficiency_vs_z0_abs
Definition: InDetPerfPlot_Efficiency.h:77
TruthParticle.h
InDetPerfPlot_Efficiency::m_technical_efficiency_vs_phi
TEfficiency * m_technical_efficiency_vs_phi
Definition: InDetPerfPlot_Efficiency.h:68
InDetPerfPlot_Efficiency::m_efficiency_vs_phi
TEfficiency * m_efficiency_vs_phi
Definition: InDetPerfPlot_Efficiency.h:55
InDetPerfPlot_Efficiency::m_efficiency_vs_actualMu
TEfficiency * m_efficiency_vs_actualMu
Definition: InDetPerfPlot_Efficiency.h:63
InDetPerfPlot_Efficiency::m_efficiency_vs_lowpt
TEfficiency * m_efficiency_vs_lowpt
Definition: InDetPerfPlot_Efficiency.h:54
InDetPerfPlot_Efficiency::m_efficiency_vs_pt
TEfficiency * m_efficiency_vs_pt
Definition: InDetPerfPlot_Efficiency.h:50