ATLAS Offline Software
Loading...
Searching...
No Matches
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
17namespace IDTPM {
18
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
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;
64
66 TH1* m_vtx_x{};
67 TH1* m_vtx_y{};
68 TH1* m_vtx_z{};
69 TH1* m_vtx_time{};
75 TH1* m_vtx_type{};
76
88
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
Derived class to give extra capabilities to TrkValHistUtils/PlotBase.h such as ATH_MSG and an easier ...
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
void finalizePlots()
Print out final stats on histograms.
void initializePlots()
Book the histograms.
TH1 * m_vtx_x
vertex parameters plots
TH2 * m_nVtx_vs_truthMu_2D
vertex multiplicity vs pileup plots
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.
TH1 * m_vtx_nTracks
vertex-associated tracks plots
virtual ~VertexParametersPlots()=default
Destructor.
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)
Athena include(s).
int vertexType(const V &v)