ATLAS Offline Software
Loading...
Searching...
No Matches
NtracksPlots.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_NTRACKSPLOTS_H
6#define INDETTRACKPERFMON_PLOTS_NTRACKSPLOTS_H
7
12
14#include "../PlotMgr.h"
16
17
18namespace IDTPM {
19
20 class NtracksPlots : public PlotMgr {
21
22 public:
23
26 PlotMgr* pParent,
27 const std::string& dirName,
28 const std::string& anaTag,
29 const std::string& trackType,
30 bool doTrigger = false,
31 bool doTruthMuPlots = false );
32
34 virtual ~NtracksPlots() = default;
35
37 StatusCode fillPlots(
38 const std::vector< size_t >& trackCounts,
39 const std::vector< size_t >& vertexCounts,
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
65
66 std::string m_counterName[ NCOUNTERS ] = {
67 "all", "selected", "selectedInRoI", "matched"
68 };
69
76
77 }; // class NtracksPlots
78
79} // namespace IDTPM
80
81#endif // > ! INDETTRACKPERFMON_PLOTS_NTRACKSPLOTS_H
Derived class to give extra capabilities to TrkValHistUtils/PlotBase.h such as ATH_MSG and an easier ...
Class to hold for each event collections needed in the TrkAnalsis.
TH2 * m_nTracks_vs_truthMu[NCOUNTERS]
void finalizePlots()
Print out final stats on histograms.
void initializePlots()
Book the histograms.
StatusCode bookPlots()
TProfile * m_avg_nTracks_vs_actualMu[NCOUNTERS]
NtracksPlots(PlotMgr *pParent, const std::string &dirName, const std::string &anaTag, const std::string &trackType, bool doTrigger=false, bool doTruthMuPlots=false)
Constructor.
TH1 * m_nTracks[NCOUNTERS]
virtual ~NtracksPlots()=default
Destructor.
std::string m_counterName[NCOUNTERS]
TH2 * m_nTracks_vs_nVertices[NCOUNTERS]
StatusCode fillPlots(const std::vector< size_t > &trackCounts, const std::vector< size_t > &vertexCounts, float truthMu, float actualMu, float weight)
Dedicated fill method.
std::string m_trackType
Counter
Importing Counter enum.
TProfile * m_avg_nTracks_vs_truthMu[NCOUNTERS]
TH2 * m_nTracks_vs_actualMu[NCOUNTERS]
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).