ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
InnerDetector
InDetValidation
InDetTrackPerfMon
src
plots
VertexParametersPlots.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 INDETTRACKPERFMON_PLOTS_VERTEXPARAMETERSPLOTS_H
6
#define INDETTRACKPERFMON_PLOTS_VERTEXPARAMETERSPLOTS_H
7
12
14
#include "
../PlotMgr.h
"
15
16
17
namespace
IDTPM
{
18
19
class
VertexParametersPlots
:
public
PlotMgr
{
20
21
public
:
22
24
VertexParametersPlots
(
25
PlotMgr
* pParent,
26
const
std::string& dirName,
27
const
std::string& anaTag,
28
const
std::string&
vertexType
,
29
bool
doTrackPlots =
false
,
30
bool
doGlobalPlots =
false
,
31
bool
doTruthMuPlots =
false
);
32
34
virtual
~VertexParametersPlots
() =
default
;
35
37
void
initializePlots
();
// needed to override PlotBase
38
StatusCode
bookPlots
();
39
41
template
<
typename
VERTEX,
typename
PARTICLE >
42
StatusCode
fillPlots
(
43
const
VERTEX& vertex,
44
const
std::vector< const PARTICLE* >& associatedTracks,
45
const
std::vector< float >& associatedTrackWeights,
46
float
weight );
47
49
StatusCode
fillPlots
(
50
int
nVertices,
51
float
truthMu,
52
float
actualMu,
53
float
weight );
54
56
void
finalizePlots
();
57
58
private
:
59
60
std::string
m_vertexType
;
61
bool
m_doTrackPlots
{};
62
bool
m_doGlobalPlots
{};
63
bool
m_doTruthMuPlots
{};
64
66
TH1*
m_vtx_x
{};
67
TH1*
m_vtx_y
{};
68
TH1*
m_vtx_z
{};
69
TH1*
m_vtx_time
{};
70
TH1*
m_vtx_x_err
{};
71
TH1*
m_vtx_y_err
{};
72
TH1*
m_vtx_z_err
{};
73
TH1*
m_vtx_time_err
{};
74
TH1*
m_vtx_chi2OverNdof
{};
75
TH1*
m_vtx_type
{};
76
78
TH1*
m_vtx_nTracks
{};
79
TH1*
m_vtx_track_weight
{};
80
TH1*
m_vtx_track_pt
{};
81
TH1*
m_vtx_track_eta
{};
82
TH1*
m_vtx_track_nSiHits
{};
83
TH1*
m_vtx_track_nSiHoles
{};
84
TH1*
m_vtx_track_d0
{};
85
TH1*
m_vtx_track_z0
{};
86
TH1*
m_vtx_track_d0_err
{};
87
TH1*
m_vtx_track_z0_err
{};
88
90
TH2*
m_nVtx_vs_truthMu_2D
{};
91
TH2*
m_nVtx_vs_actualMu_2D
{};
92
TProfile*
m_nVtx_vs_truthMu
{};
93
TProfile*
m_nVtx_vs_actualMu
{};
94
95
};
// class VertexParametersPlots
96
97
}
// namespace IDTPM
98
99
#endif
// > ! INDETTRACKPERFMON_PLOTS_VERTEXPARAMETERSPLOTS_H
PlotMgr.h
Derived class to give extra capabilities to TrkValHistUtils/PlotBase.h such as ATH_MSG and an easier ...
IDTPM::PlotMgr::PlotMgr
PlotMgr(const std::string &dirName, const std::string &anaTag, PlotMgr *pParent=nullptr)
Constructor taking parent node and directory name for plots pParent = nullptr by default to book plot...
Definition
PlotMgr.cxx:25
IDTPM::VertexParametersPlots::finalizePlots
void finalizePlots()
Print out final stats on histograms.
Definition
VertexParametersPlots.cxx:209
IDTPM::VertexParametersPlots::initializePlots
void initializePlots()
Book the histograms.
Definition
VertexParametersPlots.cxx:36
IDTPM::VertexParametersPlots::m_vtx_track_eta
TH1 * m_vtx_track_eta
Definition
VertexParametersPlots.h:81
IDTPM::VertexParametersPlots::m_vtx_track_pt
TH1 * m_vtx_track_pt
Definition
VertexParametersPlots.h:80
IDTPM::VertexParametersPlots::m_vtx_track_nSiHits
TH1 * m_vtx_track_nSiHits
Definition
VertexParametersPlots.h:82
IDTPM::VertexParametersPlots::m_nVtx_vs_actualMu_2D
TH2 * m_nVtx_vs_actualMu_2D
Definition
VertexParametersPlots.h:91
IDTPM::VertexParametersPlots::m_vtx_track_nSiHoles
TH1 * m_vtx_track_nSiHoles
Definition
VertexParametersPlots.h:83
IDTPM::VertexParametersPlots::m_doTrackPlots
bool m_doTrackPlots
Definition
VertexParametersPlots.h:61
IDTPM::VertexParametersPlots::m_vtx_y_err
TH1 * m_vtx_y_err
Definition
VertexParametersPlots.h:71
IDTPM::VertexParametersPlots::m_vtx_time
TH1 * m_vtx_time
Definition
VertexParametersPlots.h:69
IDTPM::VertexParametersPlots::m_vtx_track_weight
TH1 * m_vtx_track_weight
Definition
VertexParametersPlots.h:79
IDTPM::VertexParametersPlots::m_vtx_x
TH1 * m_vtx_x
vertex parameters plots
Definition
VertexParametersPlots.h:66
IDTPM::VertexParametersPlots::m_vtx_chi2OverNdof
TH1 * m_vtx_chi2OverNdof
Definition
VertexParametersPlots.h:74
IDTPM::VertexParametersPlots::m_nVtx_vs_truthMu_2D
TH2 * m_nVtx_vs_truthMu_2D
vertex multiplicity vs pileup plots
Definition
VertexParametersPlots.h:90
IDTPM::VertexParametersPlots::m_doGlobalPlots
bool m_doGlobalPlots
Definition
VertexParametersPlots.h:62
IDTPM::VertexParametersPlots::VertexParametersPlots
VertexParametersPlots(PlotMgr *pParent, const std::string &dirName, const std::string &anaTag, const std::string &vertexType, bool doTrackPlots=false, bool doGlobalPlots=false, bool doTruthMuPlots=false)
Constructor.
Definition
VertexParametersPlots.cxx:18
IDTPM::VertexParametersPlots::m_vtx_nTracks
TH1 * m_vtx_nTracks
vertex-associated tracks plots
Definition
VertexParametersPlots.h:78
IDTPM::VertexParametersPlots::m_vtx_track_d0
TH1 * m_vtx_track_d0
Definition
VertexParametersPlots.h:84
IDTPM::VertexParametersPlots::bookPlots
StatusCode bookPlots()
Definition
VertexParametersPlots.cxx:45
IDTPM::VertexParametersPlots::m_vertexType
std::string m_vertexType
Definition
VertexParametersPlots.h:60
IDTPM::VertexParametersPlots::m_doTruthMuPlots
bool m_doTruthMuPlots
Definition
VertexParametersPlots.h:63
IDTPM::VertexParametersPlots::m_vtx_track_d0_err
TH1 * m_vtx_track_d0_err
Definition
VertexParametersPlots.h:86
IDTPM::VertexParametersPlots::m_vtx_track_z0
TH1 * m_vtx_track_z0
Definition
VertexParametersPlots.h:85
IDTPM::VertexParametersPlots::m_vtx_y
TH1 * m_vtx_y
Definition
VertexParametersPlots.h:67
IDTPM::VertexParametersPlots::~VertexParametersPlots
virtual ~VertexParametersPlots()=default
Destructor.
IDTPM::VertexParametersPlots::m_vtx_x_err
TH1 * m_vtx_x_err
Definition
VertexParametersPlots.h:70
IDTPM::VertexParametersPlots::m_vtx_z
TH1 * m_vtx_z
Definition
VertexParametersPlots.h:68
IDTPM::VertexParametersPlots::m_vtx_time_err
TH1 * m_vtx_time_err
Definition
VertexParametersPlots.h:73
IDTPM::VertexParametersPlots::m_nVtx_vs_actualMu
TProfile * m_nVtx_vs_actualMu
Definition
VertexParametersPlots.h:93
IDTPM::VertexParametersPlots::m_nVtx_vs_truthMu
TProfile * m_nVtx_vs_truthMu
Definition
VertexParametersPlots.h:92
IDTPM::VertexParametersPlots::fillPlots
StatusCode fillPlots(const VERTEX &vertex, const std::vector< const PARTICLE * > &associatedTracks, const std::vector< float > &associatedTrackWeights, float weight)
Dedicated fill method (for reco and/or truth vertices).
Definition
VertexParametersPlots.cxx:96
IDTPM::VertexParametersPlots::m_vtx_type
TH1 * m_vtx_type
Definition
VertexParametersPlots.h:75
IDTPM::VertexParametersPlots::m_vtx_z_err
TH1 * m_vtx_z_err
Definition
VertexParametersPlots.h:72
IDTPM::VertexParametersPlots::m_vtx_track_z0_err
TH1 * m_vtx_track_z0_err
Definition
VertexParametersPlots.h:87
IDTPM
Athena include(s).
Definition
IPlotsDefinitionSvc.h:25
IDTPM::vertexType
int vertexType(const V &v)
Definition
VertexParametersHelper.h:69
Generated on
for ATLAS Offline Software by
1.17.0