ATLAS Offline Software
Loading...
Searching...
No Matches
InDetPerfPlot_Resolution.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef INDETPHYSVALMONITORING_InDetPerfPlot_Resolution
6#define INDETPHYSVALMONITORING_InDetPerfPlot_Resolution
11
12
13
14
15
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
35class IToolSvc;
36class IExtrapolator;
37
38
41public:
45
46 InDetPerfPlot_Resolution(InDetPlotBase* pParent, const std::string& dirName, bool d0Only=false);
47
48 void fill(const xAOD::TrackParticle& trkprt, const xAOD::TruthParticle& truthprt, float weight);
49 void fill(const xAOD::TrackParticle& trkprt, float weight);
50
51
52// virtual bool isDefined(TString t);
54 }
55
56private:
57 // defining global eta binning for resolution plots
58 static const int m_nResHist = 4;
59
60 static const int m_nEtaBins = 64;
61 //const double m_etaMin = -4.0;
62 //const double m_etaMax = 4.0;
63
64// Settings for log-linear binning in pt (matching previous IDPVM definition)
65 static const int m_nPtBins = 49;
66 const double m_ptMin = 0.745;
67 const double m_ptMax = 1000.0;
68
69 float m_PtBins[m_nPtBins + 1]{};
70
71// Settings for detailed log-linear binning in low pt region
72 static const int m_nLowPtBins = 99;
73 const double m_lowPtMin = 0.01;
74 const double m_lowPtMax = 1.0;
75
77
78 std::string m_paramProp[NPARAMS] = { "d0", "z0", "qoverp", "ptqopt", "theta", "phi", "pt", "z0sin" };
79
82
83 bool m_d0Only = false;
84
88
89 void initializePlots();
90 void finalizePlots();
91
92
93 void getTrackParameters(const xAOD::TruthParticle& truthprt);
94 void getTrackParameters(const xAOD::TrackParticle& truthprt);
95 void getPlotParameters();
96 void getPlots(float weight=1.0, bool useTruthKin=true);
97
101
105
109
116
123
130
137
144
151
158
162
163};
164
165
166#endif
IDPVM::ResolutionHelper::methods m_resolutionMethod
TH1 * m_resProjections_vs_eta[NPARAMS][m_nEtaBins]
TH1 * m_pullProjections_vs_lowpt[NPARAMS][m_nLowPtBins]
TH1 * m_resProjections_vs_pt[NPARAMS][m_nPtBins]
void fill(const xAOD::TrackParticle &trkprt, const xAOD::TruthParticle &truthprt, float weight)
TH1 * m_pullProjections_vs_eta[NPARAMS][m_nEtaBins]
void getTrackParameters(const xAOD::TruthParticle &truthprt)
void getPlots(float weight=1.0, bool useTruthKin=true)
float m_LowPtBins[m_nLowPtBins+1]
TH1 * m_pullProjections_vs_pt[NPARAMS][m_nPtBins]
IDPVM::ResolutionHelper m_resolutionHelper
TH1 * m_resProjections_vs_lowpt[NPARAMS][m_nLowPtBins]
InDetPerfPlot_Resolution(InDetPlotBase *pParent, const std::string &dirName, bool d0Only=false)
Mixin class to give extra capabilities to plots such as ATH_MSG and an easier booking interface,...
InDetPlotBase(InDetPlotBase *pParent, const std::string &dirName)
Constructor taking parent node and directory name for plots.
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TruthParticle_v1 TruthParticle
Typedef to implementation.