ATLAS Offline Software
Loading...
Searching...
No Matches
DuplicateRatePlots.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_DUPLICATERATEPLOTS_H
6#define INDETTRACKPERFMON_PLOTS_DUPLICATERATEPLOTS_H
7
12
14#include "../PlotMgr.h"
15
16
17namespace IDTPM {
18
19 class DuplicateRatePlots : public PlotMgr {
20
21 public:
22
25 PlotMgr* pParent,
26 const std::string& dirName,
27 const std::string& anaTag,
28 const std::string& trackType,
29 bool doGlobalPlots = false,
30 bool doTruthMuPlots = false );
31
33 virtual ~DuplicateRatePlots() = default;
34
36 template< typename PARTICLE >
37 StatusCode fillPlots(
38 const PARTICLE& particle,
39 unsigned int nMatched,
40 float truthMu,
41 float actualMu,
42 float weight );
43
45 void initializePlots(); // needed to override PlotBase
46 StatusCode bookPlots();
47
49 void finalizePlots();
50
51 private:
52
53 std::string m_trackType;
56
57 TEfficiency* m_duplrate_vs_incl{};
58 TEfficiency* m_duplrate_vs_pt{};
59 TEfficiency* m_duplrate_vs_logPt{};
60 TEfficiency* m_duplrate_vs_eta{};
61 TEfficiency* m_duplrate_vs_phi{};
62 TEfficiency* m_duplrate_vs_d0{};
63 TEfficiency* m_duplrate_vs_z0{};
64 TEfficiency* m_duplrate_vs_truthMu{};
65 TEfficiency* m_duplrate_vs_actualMu{};
66
67 TProfile* m_duplnum_vs_pt{};
68 TProfile* m_duplnum_vs_eta{};
69 TProfile* m_duplnum_vs_phi{};
70 TProfile* m_duplnum_vs_d0{};
71 TProfile* m_duplnum_vs_z0{};
74
82
83 }; // class DuplicateRatePlots
84
85} // namespace IDTPM
86
87#endif // > ! INDETTRACKPERFMON_PLOTS_DUPLICATERATEPLOTS_H
Derived class to give extra capabilities to TrkValHistUtils/PlotBase.h such as ATH_MSG and an easier ...
void finalizePlots()
Print out final stats on histograms.
StatusCode fillPlots(const PARTICLE &particle, unsigned int nMatched, float truthMu, float actualMu, float weight)
Dedicated fill method (for tracks and/or truth particles)
void initializePlots()
Book the histograms.
virtual ~DuplicateRatePlots()=default
Destructor.
DuplicateRatePlots(PlotMgr *pParent, const std::string &dirName, const std::string &anaTag, const std::string &trackType, bool doGlobalPlots=false, bool doTruthMuPlots=false)
Constructor.
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
Athena include(s).