ATLAS Offline Software
Loading...
Searching...
No Matches
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
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);
47
48 void fill(const xAOD::TrackParticle& trkprt, const xAOD::TruthParticle& truthprt, float weight);
49// virtual bool isDefined(TString t);
51 }
52
53private:
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
74
75 std::string m_paramProp[NPARAMS] = { "d0", "z0", "qoverp", "ptqopt", "theta", "phi", "pt", "z0sin" };
76
79
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
96
100
104
111
118
125
132
139
146
153
157
158};
159
160
161#endif
IDPVM::ResolutionHelper::methods m_resolutionMethod
TH1 * m_resProjections_vs_eta[NPARAMS][m_nEtaBins]
InDetPerfPlot_Resolution(InDetPlotBase *pParent, const std::string &dirName)
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)
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]
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.