Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 
13 #include "../PlotMgr.h"
15 
16 
17 namespace IDTPM {
18 
19  class VertexParametersPlots : public PlotMgr {
20 
21  public:
22 
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
39 
41  template< typename VERTEX, typename PARTICLE >
43  const VERTEX& vertex,
44  const std::vector< const PARTICLE* >& associatedTracks,
45  const std::vector< float >& associatedTrackWeights,
46  float weight );
47 
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;
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{};
75  TH1* m_vtx_type{};
76 
78  TH1* m_vtx_nTracks{};
88 
94 
95  }; // class VertexParametersPlots
96 
97 } // namespace IDTPM
98 
99 #endif // > ! INDETTRACKPERFMON_PLOTS_VERTEXPARAMETERSPLOTS_H
IDTPM::VertexParametersPlots::bookPlots
StatusCode bookPlots()
Definition: VertexParametersPlots.cxx:45
IDTPM::VertexParametersPlots::m_vtx_chi2OverNdof
TH1 * m_vtx_chi2OverNdof
Definition: VertexParametersPlots.h:74
IDTPM::VertexParametersPlots::m_vtx_z_err
TH1 * m_vtx_z_err
Definition: VertexParametersPlots.h:72
NSWL1::nVertices
int nVertices(const Polygon &p)
Definition: GeoUtils.cxx:35
IDTPM::VertexParametersPlots::m_vtx_x
TH1 * m_vtx_x
vertex parameters plots
Definition: VertexParametersPlots.h:66
IDTPM::VertexParametersPlots::m_vtx_z
TH1 * m_vtx_z
Definition: VertexParametersPlots.h:68
IDTPM::VertexParametersPlots::m_vtx_nTracks
TH1 * m_vtx_nTracks
vertex-associated tracks plots
Definition: VertexParametersPlots.h:78
IDTPM::VertexParametersPlots::m_vtx_time_err
TH1 * m_vtx_time_err
Definition: VertexParametersPlots.h:73
IDTPM::VertexParametersPlots::m_vtx_y
TH1 * m_vtx_y
Definition: VertexParametersPlots.h:67
IDTPM::VertexParametersPlots::m_vtx_track_d0_err
TH1 * m_vtx_track_d0_err
Definition: VertexParametersPlots.h:86
IDTPM::VertexParametersPlots::initializePlots
void initializePlots()
Book the histograms.
Definition: VertexParametersPlots.cxx:36
PrintTrkAnaSummary.dirName
dirName
Definition: PrintTrkAnaSummary.py:126
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
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
IDTPM::VertexParametersPlots::m_vtx_track_d0
TH1 * m_vtx_track_d0
Definition: VertexParametersPlots.h:84
IDTPM::PlotMgr
Definition: PlotMgr.h:33
IDTPM::VertexParametersPlots::m_nVtx_vs_truthMu_2D
TH2 * m_nVtx_vs_truthMu_2D
vertex multiplicity vs pileup plots
Definition: VertexParametersPlots.h:90
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
IDTPM::VertexParametersPlots::m_vtx_track_nSiHits
TH1 * m_vtx_track_nSiHits
Definition: VertexParametersPlots.h:82
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IDTPM::VertexParametersPlots::m_vtx_track_weight
TH1 * m_vtx_track_weight
Definition: VertexParametersPlots.h:79
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_track_z0_err
TH1 * m_vtx_track_z0_err
Definition: VertexParametersPlots.h:87
IDTPM::VertexParametersPlots::m_vtx_type
TH1 * m_vtx_type
Definition: VertexParametersPlots.h:75
IDTPM::VertexParametersPlots::m_nVtx_vs_actualMu_2D
TH2 * m_nVtx_vs_actualMu_2D
Definition: VertexParametersPlots.h:91
IDTPM::VertexParametersPlots::m_doTruthMuPlots
bool m_doTruthMuPlots
Definition: VertexParametersPlots.h:63
IDTPM::VertexParametersPlots::m_vtx_x_err
TH1 * m_vtx_x_err
Definition: VertexParametersPlots.h:70
IDTPM::VertexParametersPlots::m_vtx_track_pt
TH1 * m_vtx_track_pt
Definition: VertexParametersPlots.h:80
IDTPM::VertexParametersPlots::m_doGlobalPlots
bool m_doGlobalPlots
Definition: VertexParametersPlots.h:62
IDTPM::VertexParametersPlots::m_vtx_time
TH1 * m_vtx_time
Definition: VertexParametersPlots.h:69
IDTPM::VertexParametersPlots::m_doTrackPlots
bool m_doTrackPlots
Definition: VertexParametersPlots.h:61
IDTPM::vertexType
int vertexType(const V &v)
Definition: VertexParametersHelper.h:69
IDTPM::VertexParametersPlots::m_vtx_track_eta
TH1 * m_vtx_track_eta
Definition: VertexParametersPlots.h:81
IDTPM::VertexParametersPlots::m_vtx_track_nSiHoles
TH1 * m_vtx_track_nSiHoles
Definition: VertexParametersPlots.h:83
IDTPM::VertexParametersPlots::m_vertexType
std::string m_vertexType
Definition: VertexParametersPlots.h:60
IDTPM::VertexParametersPlots::m_vtx_y_err
TH1 * m_vtx_y_err
Definition: VertexParametersPlots.h:71
IDTPM::VertexParametersPlots
Definition: VertexParametersPlots.h:19
IDTPM::VertexParametersPlots::m_nVtx_vs_truthMu
TProfile * m_nVtx_vs_truthMu
Definition: VertexParametersPlots.h:92
IDTPM::VertexParametersPlots::m_vtx_track_z0
TH1 * m_vtx_track_z0
Definition: VertexParametersPlots.h:85
IDTPM
Athena include(s).
Definition: IPlotsDefinitionSvc.h:25
IDTPM::VertexParametersPlots::~VertexParametersPlots
virtual ~VertexParametersPlots()=default
Destructor.
IDTPM::VertexParametersPlots::m_nVtx_vs_actualMu
TProfile * m_nVtx_vs_actualMu
Definition: VertexParametersPlots.h:93
IDTPM::VertexParametersPlots::finalizePlots
void finalizePlots()
Print out final stats on histograms.
Definition: VertexParametersPlots.cxx:209