ATLAS Offline Software
FakeRatePlots.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_FAKERATEPLOTS_H
6 #define INDETTRACKPERFMON_PLOTS_FAKERATEPLOTS_H
7 
13 #include "../PlotMgr.h"
15 
16 
17 namespace IDTPM {
18 
19  class FakeRatePlots : 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 ~FakeRatePlots() = default;
34 
36  template< typename PARTICLE >
38  const PARTICLE& particle,
39  bool isFake,
40  float truthMu,
41  float actualMu,
42  float weight );
43 
45  void initializePlots(); // needed to override PlotBase
47 
49  void finalizePlots();
50 
51  private:
52 
53  std::string m_trackType;
56 
57  TEfficiency* m_fakerate_vs_pt;
58  TEfficiency* m_fakerate_vs_eta;
59  TEfficiency* m_fakerate_vs_phi;
60  TEfficiency* m_fakerate_vs_d0;
61  TEfficiency* m_fakerate_vs_z0;
62  TEfficiency* m_fakerate_vs_truthMu;
63  TEfficiency* m_fakerate_vs_actualMu;
64 
65  }; // class FakeRatePlots
66 
67 } // namespace IDTPM
68 
69 #endif // > ! INDETTRACKPERFMON_PLOTS_FAKERATEPLOTS_H
IDTPM::FakeRatePlots::m_fakerate_vs_eta
TEfficiency * m_fakerate_vs_eta
Definition: FakeRatePlots.h:58
Trk::ParticleSwitcher::particle
constexpr ParticleHypothesis particle[PARTICLEHYPOTHESES]
the array of masses
Definition: ParticleHypothesis.h:76
InDetSecVtxTruthMatchUtils::isFake
bool isFake(int matchInfo)
Definition: InDetSecVtxTruthMatchTool.h:60
IDTPM::FakeRatePlots::m_fakerate_vs_phi
TEfficiency * m_fakerate_vs_phi
Definition: FakeRatePlots.h:59
IDTPM::FakeRatePlots::initializePlots
void initializePlots()
Book the histograms.
Definition: FakeRatePlots.cxx:31
IDTPM::FakeRatePlots::m_fakerate_vs_truthMu
TEfficiency * m_fakerate_vs_truthMu
Definition: FakeRatePlots.h:62
IDTPM::FakeRatePlots::m_fakerate_vs_d0
TEfficiency * m_fakerate_vs_d0
Definition: FakeRatePlots.h:60
dqt_zlumi_pandas.weight
int weight
Definition: dqt_zlumi_pandas.py:189
IDTPM::PlotMgr
Definition: PlotMgr.h:33
IDTPM::FakeRatePlots::m_doTruthMuPlots
bool m_doTruthMuPlots
Definition: FakeRatePlots.h:55
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
IDTPM::FakeRatePlots::m_fakerate_vs_actualMu
TEfficiency * m_fakerate_vs_actualMu
Definition: FakeRatePlots.h:63
IDTPM::FakeRatePlots::bookPlots
StatusCode bookPlots()
Definition: FakeRatePlots.cxx:40
IDTPM::FakeRatePlots::FakeRatePlots
FakeRatePlots(PlotMgr *pParent, const std::string &dirName, const std::string &anaTag, const std::string &trackType, bool doGlobalPlots=false, bool doTruthMuPlots=false)
Constructor.
Definition: FakeRatePlots.cxx:18
IDTPM::FakeRatePlots::fillPlots
StatusCode fillPlots(const PARTICLE &particle, bool isFake, float truthMu, float actualMu, float weight)
Dedicated fill method (for tracks and/or truth particles)
Definition: FakeRatePlots.cxx:61
IDTPM::FakeRatePlots::m_fakerate_vs_z0
TEfficiency * m_fakerate_vs_z0
Definition: FakeRatePlots.h:61
IDTPM::FakeRatePlots
Definition: FakeRatePlots.h:19
IDTPM::FakeRatePlots::m_fakerate_vs_pt
TEfficiency * m_fakerate_vs_pt
Definition: FakeRatePlots.h:57
IDTPM::FakeRatePlots::~FakeRatePlots
virtual ~FakeRatePlots()=default
Destructor.
IDTPM::FakeRatePlots::m_trackType
std::string m_trackType
Definition: FakeRatePlots.h:53
IDTPM::FakeRatePlots::m_doGlobalPlots
bool m_doGlobalPlots
Definition: FakeRatePlots.h:54
IDTPM
Athena include(s).
Definition: IPlotsDefinitionSvc.h:25
IDTPM::FakeRatePlots::finalizePlots
void finalizePlots()
Print out final stats on histograms.
Definition: FakeRatePlots.cxx:96