ATLAS Offline Software
TrackPlots.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef EGAMMAPHYSVALMONITORING_TRACKPLOTS_H
6 #define EGAMMAPHYSVALMONITORING_TRACKPLOTS_H
7 
10 #include "xAODEgamma/Electron.h"
13 
14 namespace Egamma{
15 
16 class TrackPlots:public PlotBase {
17  public:
18  TrackPlots(PlotBase* pParent, const std::string& sDir, std::string sParticleType);
19  void fill(const xAOD::Electron& electron, const xAOD::EventInfo& eventInfo);
20 
21  std::string m_sParticleType;
22 
23  TH1* deta;
24  TH1* dphi;
25  TH1* d0;
26  TH1* z0;
28  TH1* blayer;
29  TH1* pixel;
30  TH1* sct;
31  TH1* si;
32  TH1* trt;
33  TH1* trt_xe;
34  TH1* trt_total;
35  TH1* trt_ht;
38  TH1* eProbHT;
40  TH1* EoverP;
41  TH2* trtratio;
42  TH2* trtvseta;
43  TH2* trthtvseta;
44 
45  unsigned m_d0_nBins = 200;
46  unsigned m_d0sig_nBins = 50;
47  unsigned m_z0_nBins = 200;
48  std::vector<double> m_d0Range = {-100.0,100.0};
49  std::vector<double> m_d0sigRange = {-25.0,25.0};
50  std::vector<double> m_z0Range = {-100.0,100.0};
51 
52  void Set_d0_nBins(unsigned d0_nBins);
53  void Set_d0sig_nBins(unsigned d0sig_nBins);
54  void Set_z0_nBins(unsigned z0_nBins);
55  void Set_d0_Bins(const std::vector<double> &d0Range);
56  void Set_d0sig_Bins(const std::vector<double> &d0sigRange);
57  void Set_z0_Bins(const std::vector<double> &z0Range);
58 
59  unsigned Get_d0_nBins(){ return m_d0_nBins; };
60  unsigned Get_d0sig_nBins(){ return m_d0sig_nBins; };
61  unsigned Get_z0_nBins(){ return m_z0_nBins; };
62  const std::vector<double>& Get_d0_Bins(){ return m_d0Range; };
63  const std::vector<double>& Get_d0sig_Bins(){ return m_d0sigRange; };
64  const std::vector<double>& Get_z0_Bins(){ return m_z0Range; };
65 
66 
67  private:
68  virtual void initializePlots();
69 
70 };
71 
72 }
73 
74 #endif
EgammaPhysValHistUtilities.h
Egamma::TrackPlots::si
TH1 * si
Definition: TrackPlots.h:31
Egamma::TrackPlots::Set_d0sig_nBins
void Set_d0sig_nBins(unsigned d0sig_nBins)
Definition: TrackPlots.cxx:66
TrackParticlexAODHelpers.h
PlotBase
Definition: PlotBase.h:34
Egamma::TrackPlots::z0
TH1 * z0
Definition: TrackPlots.h:26
Egamma::TrackPlots::trt_xe
TH1 * trt_xe
Definition: TrackPlots.h:33
Egamma::TrackPlots::d0significance
TH1 * d0significance
Definition: TrackPlots.h:27
Egamma::TrackPlots::fill
void fill(const xAOD::Electron &electron, const xAOD::EventInfo &eventInfo)
Definition: TrackPlots.cxx:93
Egamma
Definition: ClusMomentumPlots.cxx:11
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
Egamma::TrackPlots::TrackPlots
TrackPlots(PlotBase *pParent, const std::string &sDir, std::string sParticleType)
Definition: TrackPlots.cxx:12
Egamma::TrackPlots::m_sParticleType
std::string m_sParticleType
Definition: TrackPlots.h:21
Egamma::TrackPlots::trtratio
TH2 * trtratio
Definition: TrackPlots.h:41
Egamma::TrackPlots::dphirescaled
TH1 * dphirescaled
Definition: TrackPlots.h:37
Egamma::TrackPlots::sct
TH1 * sct
Definition: TrackPlots.h:30
Egamma::TrackPlots::trthtvseta
TH2 * trthtvseta
Definition: TrackPlots.h:43
Egamma::TrackPlots::Get_d0sig_nBins
unsigned Get_d0sig_nBins()
Definition: TrackPlots.h:60
Egamma::TrackPlots::Set_d0_Bins
void Set_d0_Bins(const std::vector< double > &d0Range)
Definition: TrackPlots.cxx:76
Egamma::TrackPlots::d0
TH1 * d0
Definition: TrackPlots.h:25
Egamma::TrackPlots::m_d0Range
std::vector< double > m_d0Range
Definition: TrackPlots.h:48
Egamma::TrackPlots::Set_z0_nBins
void Set_z0_nBins(unsigned z0_nBins)
Definition: TrackPlots.cxx:71
Egamma::TrackPlots::m_z0Range
std::vector< double > m_z0Range
Definition: TrackPlots.h:50
Egamma::TrackPlots::trt_ht
TH1 * trt_ht
Definition: TrackPlots.h:35
Egamma::TrackPlots::Get_d0_nBins
unsigned Get_d0_nBins()
Definition: TrackPlots.h:59
Egamma::TrackPlots::dphi
TH1 * dphi
Definition: TrackPlots.h:24
Egamma::TrackPlots::Get_z0_Bins
const std::vector< double > & Get_z0_Bins()
Definition: TrackPlots.h:64
Egamma::TrackPlots::trt_total
TH1 * trt_total
Definition: TrackPlots.h:34
Egamma::TrackPlots::blayer
TH1 * blayer
Definition: TrackPlots.h:28
Egamma::TrackPlots::eProbHT
TH1 * eProbHT
Definition: TrackPlots.h:38
Egamma::TrackPlots::EoverP
TH1 * EoverP
Definition: TrackPlots.h:40
Egamma::TrackPlots::trtvseta
TH2 * trtvseta
Definition: TrackPlots.h:42
Egamma::TrackPlots::Get_d0sig_Bins
const std::vector< double > & Get_d0sig_Bins()
Definition: TrackPlots.h:63
Egamma::TrackPlots::Get_d0_Bins
const std::vector< double > & Get_d0_Bins()
Definition: TrackPlots.h:62
Egamma::TrackPlots::deta
TH1 * deta
Definition: TrackPlots.h:23
Egamma::TrackPlots::Set_d0sig_Bins
void Set_d0sig_Bins(const std::vector< double > &d0sigRange)
Definition: TrackPlots.cxx:80
Egamma::TrackPlots::m_d0_nBins
unsigned m_d0_nBins
Definition: TrackPlots.h:45
Egamma::TrackPlots::m_d0sigRange
std::vector< double > m_d0sigRange
Definition: TrackPlots.h:49
Egamma::TrackPlots::trt_ht_total
TH1 * trt_ht_total
Definition: TrackPlots.h:36
Egamma::TrackPlots::Set_z0_Bins
void Set_z0_Bins(const std::vector< double > &z0Range)
Definition: TrackPlots.cxx:85
Egamma::TrackPlots
Definition: TrackPlots.h:16
xAOD::Electron_v1
Definition: Electron_v1.h:34
EventInfo.h
Egamma::TrackPlots::pixel
TH1 * pixel
Definition: TrackPlots.h:29
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
Egamma::TrackPlots::deltaPoverP
TH1 * deltaPoverP
Definition: TrackPlots.h:39
Egamma::TrackPlots::Get_z0_nBins
unsigned Get_z0_nBins()
Definition: TrackPlots.h:61
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18
Egamma::TrackPlots::trt
TH1 * trt
Definition: TrackPlots.h:32
Egamma::TrackPlots::m_d0sig_nBins
unsigned m_d0sig_nBins
Definition: TrackPlots.h:46
Electron.h
Egamma::TrackPlots::initializePlots
virtual void initializePlots()
Definition: TrackPlots.cxx:38
PlotBase.h
Egamma::TrackPlots::Set_d0_nBins
void Set_d0_nBins(unsigned d0_nBins)
Definition: TrackPlots.cxx:62
Egamma::TrackPlots::m_z0_nBins
unsigned m_z0_nBins
Definition: TrackPlots.h:47