ATLAS Offline Software
InDetPerfPlot_Resolution.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef INDETPHYSVALMONITORING_InDetPerfPlot_Resolution
6 #define INDETPHYSVALMONITORING_InDetPerfPlot_Resolution
7 
16 // local includes
17 
18 #include "InDetPlotBase.h"
19 #include "TProfile.h"
20 // could be fwd declared?
26 
27 #include "TFitResultPtr.h"
28 #include "TFitResult.h"
29 // std includes
30 #include <string>
31 #include <vector>
32 #include <map>
33 
34 // fwd declaration
35 class IToolSvc;
36 class IExtrapolator;
37 
38 
41 public:
42  enum Param {
44  };
45 
46  InDetPerfPlot_Resolution(InDetPlotBase* pParent, const std::string& dirName);
47 
48  void fill(const xAOD::TrackParticle& trkprt, const xAOD::TruthParticle& truthprt, float weight);
49 // virtual bool isDefined(TString t);
51  }
52 
53 private:
54  // defining global eta binning for resolution plots
55  static const int m_nResHist = 4;
56 
57  static const int m_nEtaBins = 64;
58  //const double m_etaMin = -4.0;
59  //const double m_etaMax = 4.0;
60 
61 // Settings for log-linear binning in pt (matching previous IDPVM definition)
62  static const int m_nPtBins = 49;
63  const double m_ptMin = 0.745;
64  const double m_ptMax = 1000.0;
65 
66  float m_PtBins[m_nPtBins + 1]{};
67 
68 // Settings for detailed log-linear binning in low pt region
69  static const int m_nLowPtBins = 99;
70  const double m_lowPtMin = 0.01;
71  const double m_lowPtMax = 1.0;
72 
73  float m_LowPtBins[m_nLowPtBins + 1]{};
74 
75  std::string m_paramProp[NPARAMS] = { "d0", "z0", "qoverp", "ptqopt", "theta", "phi", "pt", "z0sin" };
76 
79 
80  bool m_primTrk;
81  bool m_secdTrk;
82  bool m_allTrk;
83 
84  void initializePlots();
85  void finalizePlots();
86 
87 
88  void getTrackParameters(const xAOD::TruthParticle& truthprt);
89  void getTrackParameters(const xAOD::TrackParticle& truthprt);
90  void getPlotParameters();
91  void getPlots(float weight=1.0);
92 
93  float m_trkP[NPARAMS];
96 
97  float m_resP[NPARAMS];
98  float m_pullP[NPARAMS];
99  float m_sigP[NPARAMS];
100 
102  TH1* m_res[NPARAMS];
104 
111 
118 
125 
132 
139 
146 
153 
157 
158 };
159 
160 
161 #endif
InDetPerfPlot_Resolution::finalizePlots
void finalizePlots()
Definition: InDetPerfPlot_Resolution.cxx:472
InDetPerfPlot_Resolution::m_primTrk
bool m_primTrk
Definition: InDetPerfPlot_Resolution.h:80
InDetPerfPlot_Resolution::QOVERPT
@ QOVERPT
Definition: InDetPerfPlot_Resolution.h:43
InDetPerfPlot_Resolution::m_resHelperlowpt_pos
TH2 * m_resHelperlowpt_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:130
InDetPerfPlot_Resolution::m_resHelpereta_pos
TH2 * m_resHelpereta_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:126
InDetPerfPlot_Resolution::m_sigma_vs_lowpt
TProfile * m_sigma_vs_lowpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:156
TrackParticlexAODHelpers.h
InDetPerfPlot_Resolution::m_pullwidth_vs_eta
TH1 * m_pullwidth_vs_eta[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:119
InDetPerfPlot_Resolution::m_pullHelpereta
TH2 * m_pullHelpereta[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:108
InDetPerfPlot_Resolution::m_pullHelperpt
TH2 * m_pullHelperpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:109
InDetPerfPlot_Resolution::Z0
@ Z0
Definition: InDetPerfPlot_Resolution.h:43
InDetPerfPlot_Resolution::m_pullmean_vs_eta
TH1 * m_pullmean_vs_eta[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:120
InDetPerfPlot_Resolution::m_trkErrP
float m_trkErrP[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:95
InDetPerfPlot_Resolution::m_resmean_vs_pt_neg
TH1 * m_resmean_vs_pt_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:143
InDetPerfPlot_Resolution::m_reswidth_vs_pt_neg
TH1 * m_reswidth_vs_pt_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:142
InDetPerfPlot_Resolution::PT
@ PT
Definition: InDetPerfPlot_Resolution.h:43
InDetPerfPlot_Resolution::m_PtBins
float m_PtBins[m_nPtBins+1]
Definition: InDetPerfPlot_Resolution.h:66
InDetPerfPlot_Resolution::m_reswidth_vs_pt_pos
TH1 * m_reswidth_vs_pt_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:135
InDetPerfPlot_Resolution::m_res
TH1 * m_res[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:102
InDetPerfPlot_Resolution::m_nLowPtBins
static const int m_nLowPtBins
Definition: InDetPerfPlot_Resolution.h:69
InDetPerfPlot_Resolution::InDetPerfPlot_Resolution
InDetPerfPlot_Resolution(InDetPlotBase *pParent, const std::string &dirName)
Definition: InDetPerfPlot_Resolution.cxx:29
InDetPerfPlot_Resolution::m_resProjections_vs_pt
TH1 * m_resProjections_vs_pt[NPARAMS][m_nPtBins]
Definition: InDetPerfPlot_Resolution.h:150
InDetPerfPlot_Resolution::getTrackParameters
void getTrackParameters(const xAOD::TruthParticle &truthprt)
Definition: InDetPerfPlot_Resolution.cxx:435
InDetPerfPlot_Resolution::m_resHelperlowpt
TH2 * m_resHelperlowpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:107
InDetPerfPlot_Resolution::m_resolutionMethod
IDPVM::ResolutionHelper::methods m_resolutionMethod
Definition: InDetPerfPlot_Resolution.h:78
InDetPerfPlot_Resolution::m_pullwidth_vs_lowpt
TH1 * m_pullwidth_vs_lowpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:123
InDetPerfPlot_Resolution::m_allTrk
bool m_allTrk
Definition: InDetPerfPlot_Resolution.h:82
InDetPerfPlot_Resolution::m_resHelperpt_pos
TH2 * m_resHelperpt_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:128
InDetPerfPlot_Resolution::m_pullProjections_vs_pt
TH1 * m_pullProjections_vs_pt[NPARAMS][m_nPtBins]
Definition: InDetPerfPlot_Resolution.h:147
InDetPerfPlot_Resolution::m_resProjections_vs_lowpt
TH1 * m_resProjections_vs_lowpt[NPARAMS][m_nLowPtBins]
Definition: InDetPerfPlot_Resolution.h:151
InDetPerfPlot_Resolution::m_nEtaBins
static const int m_nEtaBins
Definition: InDetPerfPlot_Resolution.h:57
InDetPerfPlot_Resolution::m_sigP
float m_sigP[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:99
InDetPerfPlot_Resolution::m_truetrkP
float m_truetrkP[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:94
InDetPerfPlot_Resolution::m_pullmean_vs_lowpt
TH1 * m_pullmean_vs_lowpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:124
InDetPerfPlot_Resolution::m_resHelpereta
TH2 * m_resHelpereta[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:105
InDetPerfPlot_Resolution::m_secdTrk
bool m_secdTrk
Definition: InDetPerfPlot_Resolution.h:81
InDetPerfPlot_Resolution::m_resolutionHelper
IDPVM::ResolutionHelper m_resolutionHelper
Definition: InDetPerfPlot_Resolution.h:77
InDetPerfPlot_Resolution::m_resmean_vs_lowpt_pos
TH1 * m_resmean_vs_lowpt_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:138
InDetPerfPlot_Resolution::m_pullmean_vs_pt
TH1 * m_pullmean_vs_pt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:122
InDetPerfPlot_Resolution::m_resHelperpt
TH2 * m_resHelperpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:106
IDPVM::ResolutionHelper
Definition: InnerDetector/InDetValidation/InDetPhysValMonitoring/InDetPhysValMonitoring/ResolutionHelper.h:28
InDetPerfPlot_Resolution
class holding res plots for Inner Detector RTT Validation and implementing fill methods
Definition: InDetPerfPlot_Resolution.h:40
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
InDetPerfPlot_Resolution::m_LowPtBins
float m_LowPtBins[m_nLowPtBins+1]
Definition: InDetPerfPlot_Resolution.h:73
AthAlgorithm.h
InDetPerfPlot_Resolution::m_pullProjections_vs_eta
TH1 * m_pullProjections_vs_eta[NPARAMS][m_nEtaBins]
Definition: InDetPerfPlot_Resolution.h:149
ResolutionHelper.h
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_Resolution::m_resHelperlowpt_neg
TH2 * m_resHelperlowpt_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:131
InDetPerfPlot_Resolution::m_resmean_vs_pt_pos
TH1 * m_resmean_vs_pt_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:136
InDetPerfPlot_Resolution::m_reswidth_vs_eta
TH1 * m_reswidth_vs_eta[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:112
InDetPerfPlot_Resolution::m_paramProp
std::string m_paramProp[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:75
InDetPerfPlot_Resolution::Param
Param
Definition: InDetPerfPlot_Resolution.h:42
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
InDetPerfPlot_Resolution::m_sigma
TH1 * m_sigma[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:103
xAOD::TruthParticle_v1
Class describing a truth particle in the MC record.
Definition: TruthParticle_v1.h:37
InDetPerfPlot_Resolution::fill
void fill(const xAOD::TrackParticle &trkprt, const xAOD::TruthParticle &truthprt, float weight)
Definition: InDetPerfPlot_Resolution.cxx:292
InDetPerfPlot_Resolution::m_resmean_vs_eta
TH1 * m_resmean_vs_eta[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:113
InDetPerfPlot_Resolution::m_reswidth_vs_pt
TH1 * m_reswidth_vs_pt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:114
InDetPerfPlot_Resolution::m_nResHist
static const int m_nResHist
Definition: InDetPerfPlot_Resolution.h:55
InDetPerfPlot_Resolution::m_nPtBins
static const int m_nPtBins
Definition: InDetPerfPlot_Resolution.h:62
InDetPerfPlot_Resolution::m_resmean_vs_lowpt
TH1 * m_resmean_vs_lowpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:117
InDetPerfPlot_Resolution::m_pullHelperlowpt
TH2 * m_pullHelperlowpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:110
InDetPerfPlot_Resolution::m_resHelperpt_neg
TH2 * m_resHelperpt_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:129
InDetPerfPlot_Resolution::m_sigma_vs_pt
TProfile * m_sigma_vs_pt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:155
InDetPerfPlot_Resolution::m_resmean_vs_eta_neg
TH1 * m_resmean_vs_eta_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:141
InDetPerfPlot_Resolution::getPlotParameters
void getPlotParameters()
Definition: InDetPerfPlot_Resolution.cxx:362
InDetPerfPlot_Resolution::m_resmean_vs_pt
TH1 * m_resmean_vs_pt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:115
InDetPerfPlot_Resolution::m_ptMin
const double m_ptMin
Definition: InDetPerfPlot_Resolution.h:63
InDetPerfPlot_Resolution::Z0SIN
@ Z0SIN
Definition: InDetPerfPlot_Resolution.h:43
InDetPerfPlot_Resolution::m_resP
float m_resP[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:97
InDetPerfPlot_Resolution::m_sigma_vs_eta
TProfile * m_sigma_vs_eta[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:154
InDetPerfPlot_Resolution::m_reswidth_vs_eta_pos
TH1 * m_reswidth_vs_eta_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:133
InDetPerfPlot_Resolution::m_ptMax
const double m_ptMax
Definition: InDetPerfPlot_Resolution.h:64
IDPVM::ResolutionHelper::methods
methods
methods acc to which mean&RMS can be evaluated
Definition: InnerDetector/InDetValidation/InDetPhysValMonitoring/InDetPhysValMonitoring/ResolutionHelper.h:36
InDetPerfPlot_Resolution::m_reswidth_vs_lowpt_pos
TH1 * m_reswidth_vs_lowpt_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:137
InDetPerfPlot_Resolution::initializePlots
void initializePlots()
Definition: InDetPerfPlot_Resolution.cxx:128
InDetPerfPlot_Resolution::m_resProjections_vs_eta
TH1 * m_resProjections_vs_eta[NPARAMS][m_nEtaBins]
Definition: InDetPerfPlot_Resolution.h:152
InDetPerfPlot_Resolution::m_pullwidth_vs_pt
TH1 * m_pullwidth_vs_pt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:121
TrackParticle.h
InDetPerfPlot_Resolution::~InDetPerfPlot_Resolution
virtual ~InDetPerfPlot_Resolution()
Definition: InDetPerfPlot_Resolution.h:50
InDetPerfPlot_Resolution::getPlots
void getPlots(float weight=1.0)
Definition: InDetPerfPlot_Resolution.cxx:324
InDetPerfPlot_Resolution::m_pull
TH1 * m_pull[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:101
InDetPerfPlot_Resolution::m_resmean_vs_eta_pos
TH1 * m_resmean_vs_eta_pos[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:134
InDetPerfPlot_Resolution::m_trkP
float m_trkP[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:93
InDetPerfPlot_Resolution::m_pullProjections_vs_lowpt
TH1 * m_pullProjections_vs_lowpt[NPARAMS][m_nLowPtBins]
Definition: InDetPerfPlot_Resolution.h:148
InDetPerfPlot_Resolution::m_resmean_vs_lowpt_neg
TH1 * m_resmean_vs_lowpt_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:145
InDetPerfPlot_Resolution::m_lowPtMin
const double m_lowPtMin
Definition: InDetPerfPlot_Resolution.h:70
InDetPerfPlot_Resolution::QOVERP
@ QOVERP
Definition: InDetPerfPlot_Resolution.h:43
InDetPerfPlot_Resolution::D0
@ D0
Definition: InDetPerfPlot_Resolution.h:43
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
InDetPerfPlot_Resolution::PHI
@ PHI
Definition: InDetPerfPlot_Resolution.h:43
InDetPerfPlot_Resolution::m_reswidth_vs_lowpt
TH1 * m_reswidth_vs_lowpt[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:116
InDetPerfPlot_Resolution::m_reswidth_vs_eta_neg
TH1 * m_reswidth_vs_eta_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:140
TruthParticle.h
InDetPerfPlot_Resolution::m_pullP
float m_pullP[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:98
InDetPerfPlot_Resolution::NPARAMS
@ NPARAMS
Definition: InDetPerfPlot_Resolution.h:43
InDetPerfPlot_Resolution::THETA
@ THETA
Definition: InDetPerfPlot_Resolution.h:43
InDetPerfPlot_Resolution::m_reswidth_vs_lowpt_neg
TH1 * m_reswidth_vs_lowpt_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:144
InDetPerfPlot_Resolution::m_lowPtMax
const double m_lowPtMax
Definition: InDetPerfPlot_Resolution.h:71
InDetPerfPlot_Resolution::m_resHelpereta_neg
TH2 * m_resHelpereta_neg[NPARAMS]
Definition: InDetPerfPlot_Resolution.h:127