ATLAS Offline Software
ReconElectronsPlots.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ZEEVALIDATION_RECONELECTRONSPLOTS_H
6 #define ZEEVALIDATION_RECONELECTRONSPLOTS_H
7 
9 #include "CLHEP/Units/SystemOfUnits.h"
11 #include "xAODEgamma/Electron.h"
12 #include "xAODTracking/Vertex.h"
14 
15 namespace ZeeValidation{
16 
18  public:
19  ReconElectronsPlots(PlotBase* pParent, std::string sDir, std::string sParticleType);
20 
21  void fill(const xAOD::Electron* electron, int level);
22  void fillinAcc(const xAOD::Electron* electron, int level);
23  void fill(const xAOD::EventInfo* eventInfo, const xAOD::VertexContainer* vertices);
24 
28  void fillHitInfo(const xAOD::Electron* electron);
29 
30  void makeEfficiencyPlot(TH1* hDenom, TH1* hNom, TProfile* hEff);
31 
32  //nLevels = 5 (LHLoose, LHMedium, LHTight, Loose, Medium, Tight, OQ, Reco)
33  static const int nLevels = 8;
34  static const std::string cLevelLabel[nLevels];
35 
36  // Reco only information
37  std::string m_sParticleType;
38 
40  TH1* h_photon_n;
42  TH1* h_nvtx;
43  TH1* h_mu;
44  TH1* h_bcid;
45  TH1* h_track_n;
46  TH1* h_pv_x;
47  TH1* h_pv_y;
48  TH1* h_pv_z;
49 
53 
57 
58  TH1* h_f1;
59  TH1* h_f3;
60  TH1* h_f1core;
61  TH1* h_f3core;
62  TH1* h_e233;
63  TH1* h_e237;
64  TH1* h_e277;
65  TH1* h_reta;
66  TH1* h_rphi;
67  TH1* h_weta1;
68  TH1* h_weta2;
69  TH1* h_wtots1;
70  TH1* h_ethad;
71  TH1* h_ethad1;
72  TH1* h_fethad;
73  TH1* h_fethad1;
74  TH1* h_e2tsts1;
75  TH1* h_fracs1;
76  TH1* h_emins1;
77  TH1* h_emaxs1;
78  TH1* h_demm1;
79  TH1* h_iso;
80  TH1* h_eratio;
81 
82  TH1* h_deta1;
83  TH1* h_deta2;
84  TH1* h_dphi1;
85  TH1* h_dphi2;
86  TH1* h_dphires2;
87 
88  TH1* h_etcone20;
89  TH1* h_etcone30;
90  TH1* h_etcone40;
94  TH1* h_ptcone20;
95  TH1* h_ptcone30;
96  TH1* h_ptcone40;
97 
104 
111 
112  TH1* h_d0;
113  TH1* h_sigmad0;
114  TH1* h_eoverp;
115  TH1* h_eoverpq;
116 
117  private:
118 
119  virtual void initializePlots();
120  virtual void finalizePlots();
121 
122  };
123 }
124 
125 #endif
ZeeValidation::ReconElectronsPlots::h_d0
TH1 * h_d0
Definition: ReconElectronsPlots.h:112
ZeeValidation::ReconElectronsPlots::h_electron_author
TH1 * h_electron_author
Definition: ReconElectronsPlots.h:41
ZeeValidation::ReconElectronsPlots::h_n_trt_hits_high
TH1 * h_n_trt_hits_high
Definition: ReconElectronsPlots.h:102
ZeeValidation::ReconElectronsPlots::h_n_pixel_hits
TH1 * h_n_pixel_hits
Definition: ReconElectronsPlots.h:99
PlotBase
Definition: PlotBase.h:34
ZeeValidation::ReconElectronsPlots::m_sParticleType
std::string m_sParticleType
Definition: ReconElectronsPlots.h:37
ZeeValidation::ReconElectronsPlots::makeEfficiencyPlot
void makeEfficiencyPlot(TH1 *hDenom, TH1 *hNom, TProfile *hEff)
Definition: ReconElectronsPlots.cxx:321
ZeeValidation::ReconElectronsPlots::h_e233
TH1 * h_e233
Definition: ReconElectronsPlots.h:62
python.copyTCTOutput.sDir
sDir
Definition: copyTCTOutput.py:60
ZeeValidation::ReconElectronsPlots::h_n_si_hits
TH1 * h_n_si_hits
Definition: ReconElectronsPlots.h:100
ZeeValidation::ReconElectronsPlots::h_iso
TH1 * h_iso
Definition: ReconElectronsPlots.h:79
ZeeValidation::ReconElectronsPlots::h_eoverpq
TH1 * h_eoverpq
Definition: ReconElectronsPlots.h:115
ZeeValidation::ReconElectronsPlots::h_pv_x
TH1 * h_pv_x
Definition: ReconElectronsPlots.h:46
ZeeValidation::ReconElectronsPlots::h_ptcone40
TH1 * h_ptcone40
Definition: ReconElectronsPlots.h:96
ZeeValidation::ReconElectronsPlots::h_f1core
TH1 * h_f1core
Definition: ReconElectronsPlots.h:60
ZeeValidation::ReconElectronsPlots::h_eratio
TH1 * h_eratio
Definition: ReconElectronsPlots.h:80
ZeeValidation::ReconElectronsPlots::h_wtots1
TH1 * h_wtots1
Definition: ReconElectronsPlots.h:69
ZeeValidation::ReconElectronsPlots::h_emins1
TH1 * h_emins1
Definition: ReconElectronsPlots.h:76
ZeeValidation::ReconElectronsPlots::h_f3
TH1 * h_f3
Definition: ReconElectronsPlots.h:59
ZeeValidation::ReconElectronsPlots::h_etcone30
TH1 * h_etcone30
Definition: ReconElectronsPlots.h:89
ZeeValidation::ReconElectronsPlots::h_fetcone40
TH1 * h_fetcone40
Definition: ReconElectronsPlots.h:93
ZeeValidation::ReconElectronsPlots::h_eoverp
TH1 * h_eoverp
Definition: ReconElectronsPlots.h:114
ZeeValidation::ReconElectronsPlots::h_f1
TH1 * h_f1
Definition: ReconElectronsPlots.h:58
ZeeValidation::ReconElectronsPlots::fillTrackCaloMatch
void fillTrackCaloMatch(const xAOD::Electron *electron, const xAOD::TrackParticle *track)
Definition: ReconElectronsPlots.cxx:235
ZeeValidation::ReconElectronsPlots::fillIsolation
void fillIsolation(const xAOD::Electron *electron)
Definition: ReconElectronsPlots.cxx:255
ZeeValidation::ReconElectronsPlots::fillShowerShape
void fillShowerShape(const xAOD::Electron *electron)
Definition: ReconElectronsPlots.cxx:189
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
ZeeValidation::ReconElectronsPlots::h_nvtx
TH1 * h_nvtx
Definition: ReconElectronsPlots.h:42
ZeeValidation::ReconElectronsPlots::h_fethad1
TH1 * h_fethad1
Definition: ReconElectronsPlots.h:73
ZeeValidation::ReconElectronsPlots::h_fethad
TH1 * h_fethad
Definition: ReconElectronsPlots.h:72
ZeeValidation::ReconElectronsPlots::h_pv_y
TH1 * h_pv_y
Definition: ReconElectronsPlots.h:47
ZeeValidation::ReconElectronsPlots::h_ethad
TH1 * h_ethad
Definition: ReconElectronsPlots.h:70
ZeeValidation::ReconElectronsPlots::h_electron_pt
TH1 * h_electron_pt[nLevels]
Definition: ReconElectronsPlots.h:50
ZeeValidation::ReconElectronsPlots::h_electron_eta
TH1 * h_electron_eta[nLevels]
Definition: ReconElectronsPlots.h:51
ZeeValidation::ReconElectronsPlots::h_electron_eff_pt
TProfile * h_electron_eff_pt[nLevels-1]
Definition: ReconElectronsPlots.h:54
ZeeValidation::ReconElectronsPlots::h_mu
TH1 * h_mu
Definition: ReconElectronsPlots.h:43
ZeeValidation::ReconElectronsPlots::h_n_blayer_hits
TH1 * h_n_blayer_hits
Definition: ReconElectronsPlots.h:98
python.TrigEgammaMonitorHelper.TProfile
def TProfile(*args, **kwargs)
Definition: TrigEgammaMonitorHelper.py:81
ZeeValidation::ReconElectronsPlots::h_electron_eff_eta
TProfile * h_electron_eff_eta[nLevels-1]
Definition: ReconElectronsPlots.h:55
ZeeValidation::ReconElectronsPlots::h_deta1
TH1 * h_deta1
Definition: ReconElectronsPlots.h:82
ZeeValidation
Definition: FWDZeePlots.cxx:9
ZeeValidation::ReconElectronsPlots::h_weta1
TH1 * h_weta1
Definition: ReconElectronsPlots.h:67
ZeeValidation::ReconElectronsPlots::h_rphi
TH1 * h_rphi
Definition: ReconElectronsPlots.h:66
ZeeValidation::ReconElectronsPlots::cLevelLabel
static const std::string cLevelLabel[nLevels]
Definition: ReconElectronsPlots.h:34
ZeeValidation::ReconElectronsPlots::h_pv_z
TH1 * h_pv_z
Definition: ReconElectronsPlots.h:48
ZeeValidation::ReconElectronsPlots::ReconElectronsPlots
ReconElectronsPlots(PlotBase *pParent, std::string sDir, std::string sParticleType)
Definition: ReconElectronsPlots.cxx:12
ZeeValidation::ReconElectronsPlots::h_n_pixel_hits_outliers
TH1 * h_n_pixel_hits_outliers
Definition: ReconElectronsPlots.h:106
ZeeValidation::ReconElectronsPlots::h_ptcone20
TH1 * h_ptcone20
Definition: ReconElectronsPlots.h:94
ZeeValidation::ReconElectronsPlots::h_r_trt_hits_outliers
TH1 * h_r_trt_hits_outliers
Definition: ReconElectronsPlots.h:110
ZeeValidation::ReconElectronsPlots::nLevels
static const int nLevels
Definition: ReconElectronsPlots.h:33
ZeeValidation::ReconElectronsPlots::h_dphires2
TH1 * h_dphires2
Definition: ReconElectronsPlots.h:86
DataVector
Derived DataVector<T>.
Definition: DataVector.h:581
Vertex.h
ZeeValidation::ReconElectronsPlots::h_f3core
TH1 * h_f3core
Definition: ReconElectronsPlots.h:61
ZeeValidation::ReconElectronsPlots::h_r_trt_hits
TH1 * h_r_trt_hits
Definition: ReconElectronsPlots.h:103
ZeeValidation::ReconElectronsPlots::h_ptcone30
TH1 * h_ptcone30
Definition: ReconElectronsPlots.h:95
ZeeValidation::ReconElectronsPlots::h_bcid
TH1 * h_bcid
Definition: ReconElectronsPlots.h:44
ZeeValidation::ReconElectronsPlots::h_electron_eff_phi
TProfile * h_electron_eff_phi[nLevels-1]
Definition: ReconElectronsPlots.h:56
ZeeValidation::ReconElectronsPlots::h_demm1
TH1 * h_demm1
Definition: ReconElectronsPlots.h:78
ZeeValidation::ReconElectronsPlots::h_e277
TH1 * h_e277
Definition: ReconElectronsPlots.h:64
ZeeValidation::ReconElectronsPlots::h_e237
TH1 * h_e237
Definition: ReconElectronsPlots.h:63
ZeeValidation::ReconElectronsPlots::fillinAcc
void fillinAcc(const xAOD::Electron *electron, int level)
Definition: ReconElectronsPlots.cxx:184
xAOD::Electron_v1
Definition: Electron_v1.h:34
ZeeValidation::ReconElectronsPlots::h_emaxs1
TH1 * h_emaxs1
Definition: ReconElectronsPlots.h:77
EventInfo.h
ZeeValidation::ReconElectronsPlots::h_etcone20
TH1 * h_etcone20
Definition: ReconElectronsPlots.h:88
xAOD::EventInfo_v1
Class describing the basic event information.
Definition: EventInfo_v1.h:43
ZeeValidation::ReconElectronsPlots::h_e2tsts1
TH1 * h_e2tsts1
Definition: ReconElectronsPlots.h:74
ZeeValidation::ReconElectronsPlots::h_fracs1
TH1 * h_fracs1
Definition: ReconElectronsPlots.h:75
ZeeValidation::ReconElectronsPlots::fill
void fill(const xAOD::Electron *electron, int level)
Definition: ReconElectronsPlots.cxx:180
ZeeValidation::ReconElectronsPlots::h_n_si_hits_outliers
TH1 * h_n_si_hits_outliers
Definition: ReconElectronsPlots.h:107
VertexContainer.h
ZeeValidation::ReconElectronsPlots::h_etcone40
TH1 * h_etcone40
Definition: ReconElectronsPlots.h:90
ZeeValidation::ReconElectronsPlots::finalizePlots
virtual void finalizePlots()
Definition: ReconElectronsPlots.cxx:312
ZeeValidation::ReconElectronsPlots::h_fetcone30
TH1 * h_fetcone30
Definition: ReconElectronsPlots.h:92
ZeeValidation::ReconElectronsPlots::h_sigmad0
TH1 * h_sigmad0
Definition: ReconElectronsPlots.h:113
ZeeValidation::ReconElectronsPlots::h_weta2
TH1 * h_weta2
Definition: ReconElectronsPlots.h:68
ZeeValidation::ReconElectronsPlots::h_n_trt_hits
TH1 * h_n_trt_hits
Definition: ReconElectronsPlots.h:101
xAOD::EgammaParameters::electron
@ electron
Definition: EgammaEnums.h:18
ZeeValidation::ReconElectronsPlots::h_dphi2
TH1 * h_dphi2
Definition: ReconElectronsPlots.h:85
ZeeValidation::ReconElectronsPlots::h_n_trt_hits_outliers
TH1 * h_n_trt_hits_outliers
Definition: ReconElectronsPlots.h:108
ZeeValidation::ReconElectronsPlots::fillHitInfo
void fillHitInfo(const xAOD::Electron *electron)
Definition: ReconElectronsPlots.cxx:277
ZeeValidation::ReconElectronsPlots::h_reta
TH1 * h_reta
Definition: ReconElectronsPlots.h:65
Electron.h
ZeeValidation::ReconElectronsPlots::h_track_n
TH1 * h_track_n
Definition: ReconElectronsPlots.h:45
xAOD::track
@ track
Definition: TrackingPrimitives.h:512
ZeeValidation::ReconElectronsPlots::h_ethad1
TH1 * h_ethad1
Definition: ReconElectronsPlots.h:71
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
ZeeValidation::ReconElectronsPlots::h_electron_n
TH1 * h_electron_n
Definition: ReconElectronsPlots.h:39
ZeeValidation::ReconElectronsPlots::h_fetcone20
TH1 * h_fetcone20
Definition: ReconElectronsPlots.h:91
ZeeValidation::ReconElectronsPlots::h_deta2
TH1 * h_deta2
Definition: ReconElectronsPlots.h:83
PlotBase.h
ZeeValidation::ReconElectronsPlots::h_photon_n
TH1 * h_photon_n
Definition: ReconElectronsPlots.h:40
ZeeValidation::ReconElectronsPlots
Definition: ReconElectronsPlots.h:17
ZeeValidation::ReconElectronsPlots::h_n_trt_hits_high_outliers
TH1 * h_n_trt_hits_high_outliers
Definition: ReconElectronsPlots.h:109
ZeeValidation::ReconElectronsPlots::h_dphi1
TH1 * h_dphi1
Definition: ReconElectronsPlots.h:84
ZeeValidation::ReconElectronsPlots::h_electron_phi
TH1 * h_electron_phi[nLevels]
Definition: ReconElectronsPlots.h:52
ZeeValidation::ReconElectronsPlots::h_n_blayer_hits_outliers
TH1 * h_n_blayer_hits_outliers
Definition: ReconElectronsPlots.h:105
ZeeValidation::ReconElectronsPlots::initializePlots
virtual void initializePlots()
Definition: ReconElectronsPlots.cxx:66