ATLAS Offline Software
Loading...
Searching...
No Matches
OfflineElectronPlots.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_OFFLINEELECTRONPLOTS_H
6#define INDETTRACKPERFMON_PLOTS_OFFLINEELECTRONPLOTS_H
7
12
14#include "../PlotMgr.h"
15
19
20
21namespace IDTPM {
22
24
25 public:
26
29 PlotMgr* pParent,
30 const std::string& dirName,
31 const std::string& anaTag,
32 bool doEfficiency = false );
33
35 virtual ~OfflineElectronPlots() = default;
36
38 void initializePlots();
39 StatusCode bookPlots();
40
42 StatusCode fillPlots(
43 const xAOD::TrackParticle& track,
44 bool isMatched, float weight );
45 StatusCode fillPlots(
46 const xAOD::TruthParticle&, bool, float );
47
49 void finalizePlots();
50
51 private:
52
54
55 TH1* m_Et{};
56 TH1* m_EtOverPt{};
58
59 TEfficiency* m_eff_vs_Et{};
60 TEfficiency* m_eff_vs_EtOverPt{};
61
62 }; // class OfflineElectronPlots
63
64} // namespace IDTPM
65
66#endif // > ! INDETTRACKPERFMON_PLOTS_OFFLINEELECTRONPLOTS_H
Derived class to give extra capabilities to TrkValHistUtils/PlotBase.h such as ATH_MSG and an easier ...
virtual ~OfflineElectronPlots()=default
Destructor.
void finalizePlots()
Print out final stats on histograms.
OfflineElectronPlots(PlotMgr *pParent, const std::string &dirName, const std::string &anaTag, bool doEfficiency=false)
Constructor.
StatusCode fillPlots(const xAOD::TrackParticle &track, bool isMatched, float weight)
Dedicated fill methods.
void initializePlots()
Book the histograms.
TEfficiency * m_eff_vs_Et
TODO - include more plots.
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).
TrackParticle_v1 TrackParticle
Reference the current persistent version:
TruthParticle_v1 TruthParticle
Typedef to implementation.