ATLAS Offline Software
egammaMonitorBaseAlgorithm.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef egammaMonitorBaseAlgorithm_h
6 #define egammaMonitorBaseAlgorithm_h
7 
12 #include "xAODEgamma/Egamma.h"
22 
23 
25  public:
26 
27  egammaMonitorBaseAlgorithm( const std::string& name, ISvcLocator* pSvcLocator );
28 
30 
31  virtual StatusCode initialize() override;
32  virtual StatusCode execute(const EventContext& /*ctx*/) const override {return StatusCode::SUCCESS;};
33 
34 
35 
36  protected:
37 
39  #define GETTER(_name_) float getShowerShape_##_name_(const xAOD::Egamma* eg) const;
40  GETTER(e011)
41  GETTER(e132)
42  GETTER(e237)
43  GETTER(e277)
44  GETTER(ethad)
45  GETTER(ethad1)
46  GETTER(weta1)
47  GETTER(weta2)
48  GETTER(f1)
50  GETTER(emins1)
51  GETTER(emaxs1)
52  GETTER(wtots1)
53  GETTER(fracs1)
54  GETTER(Reta)
55  GETTER(Rphi)
56  GETTER(f3)
57  GETTER(f3core)
58  GETTER(Eratio)
59  GETTER(Rhad)
60  GETTER(Rhad1)
61  GETTER(DeltaE)
62 #undef GETTER
63 
64 
65  // GETTER for Isolation monitoring
66 #define GETTER(_name_) float getIsolation_##_name_(const xAOD::Egamma* eg) const;
73 #undef GETTER
74 #define GETTER(_name_) float getIsolation_##_name_(const xAOD::Egamma* eg) const;
81 #undef GETTER
82  // GETTERs for CaloCluster monitoring
83 #define GETTER(_name_) float getCluster_##_name_(const xAOD::Egamma* eg) const;
84  GETTER(et)
85  GETTER(phi)
86  GETTER(eta)
87 #undef GETTER
88 
89  // GETTERs for Track monitoring
90 #define GETTER(_name_) float getTrack_##_name_(const xAOD::Electron* eg) const;
91  GETTER(pt)
92  GETTER(phi)
93  GETTER(eta)
94  GETTER(d0)
95  GETTER(z0)
96 #undef GETTER
97 
98 
99  // GETTERs for Calo-Track monitoring
100 #define GETTER(_name_) float getCaloTrackMatch_##_name_(const xAOD::Electron* eg) const;
114 #undef GETTER
115 
116 
117 };
118 #endif
119 
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
xAOD::Iso::ptvarcone30
@ ptvarcone30
Definition: IsolationType.h:56
et
Extra patterns decribing particle interation process.
xAOD::EgammaParameters::deltaPhi0
@ deltaPhi0
difference between the cluster phi (presampler) and the eta of the track extrapolated to the presampl...
Definition: EgammaEnums.h:193
xAOD::Iso::topoetcone20
@ topoetcone20
Topo-cluster ET-sum.
Definition: IsolationType.h:48
xAOD::Iso::ptvarcone20
@ ptvarcone20
Mini-Isolation http://arxiv.org/abs/1007.2221.
Definition: IsolationType.h:55
xAOD::EgammaParameters::deltaPhi3
@ deltaPhi3
difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sa...
Definition: EgammaEnums.h:207
phi
Scalar phi() const
phi method
Definition: AmgMatrixBasePlugin.h:64
xAOD::EgammaParameters::Reta
@ Reta
e237/e277
Definition: EgammaEnums.h:154
eta
Scalar eta() const
pseudorapidity method
Definition: AmgMatrixBasePlugin.h:79
egammaMonitorBaseAlgorithm::~egammaMonitorBaseAlgorithm
virtual ~egammaMonitorBaseAlgorithm()
Definition: egammaMonitorBaseAlgorithm.cxx:13
TruthParticleContainer.h
xAOD::EgammaParameters::deltaEta0
@ deltaEta0
difference between the cluster eta (presampler) and the eta of the track extrapolated to the presampl...
Definition: EgammaEnums.h:176
xAOD::Iso::ptcone30
@ ptcone30
Definition: IsolationType.h:41
test_pyathena.pt
pt
Definition: test_pyathena.py:11
xAOD::EgammaParameters::deltaEta2
@ deltaEta2
difference between the cluster eta (second sampling) and the eta of the track extrapolated to the sec...
Definition: EgammaEnums.h:187
xAOD::Iso::ptcone20
@ ptcone20
Track isolation.
Definition: IsolationType.h:40
xAOD::Iso::etcone40
@ etcone40
Definition: IsolationType.h:34
xAOD::EgammaParameters::ethad1
@ ethad1
transverse energy in the first sampling of the hadronic calorimeters behind the cluster calculated fr...
Definition: EgammaEnums.h:42
xAOD::Iso::topoetcone30
@ topoetcone30
Definition: IsolationType.h:49
xAOD::EgammaParameters::deltaPhiRescaled3
@ deltaPhiRescaled3
difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sa...
Definition: EgammaEnums.h:230
xAOD::Iso::etcone30
@ etcone30
Definition: IsolationType.h:33
xAOD::EgammaParameters::Rphi
@ Rphi
e233/e237
Definition: EgammaEnums.h:156
xAOD::Iso::ptvarcone40
@ ptvarcone40
Definition: IsolationType.h:57
egammaMonitorBaseAlgorithm::egammaMonitorBaseAlgorithm
egammaMonitorBaseAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Definition: egammaMonitorBaseAlgorithm.cxx:9
xAOD::EgammaParameters::wtots1
@ wtots1
shower width is determined in a window detaxdphi = 0,0625 ×~0,2, corresponding typically to 20 strips...
Definition: EgammaEnums.h:140
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition: AthReentrantAlgorithm.h:83
xAOD::EgammaParameters::deltaPhi1
@ deltaPhi1
difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sa...
Definition: EgammaEnums.h:196
AthAlgorithm.h
xAOD::EgammaParameters::f3
@ f3
fraction of energy reconstructed in 3rd sampling
Definition: EgammaEnums.h:54
Egamma.h
xAOD::EgammaParameters::deltaPhiFromLastMeasurement
@ deltaPhiFromLastMeasurement
difference between the cluster phi (sampling 2) and the eta of the track extrapolated from the last m...
Definition: EgammaEnums.h:210
xAOD::EgammaParameters::ethad
@ ethad
ET leakage into hadronic calorimeter with exclusion of energy in CaloSampling::TileGap3.
Definition: EgammaEnums.h:45
GenericMonitoringTool.h
EgammaxAODHelpers.h
ElectronContainer.h
xAOD::Iso::etcone20
@ etcone20
Calorimeter isolation.
Definition: IsolationType.h:32
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
xAOD::EgammaParameters::emins1
@ emins1
energy reconstructed in the strip with the minimal value between the first and second maximum
Definition: EgammaEnums.h:143
AthMonitorAlgorithm.h
GETTER
#define GETTER(_name_)
C Macros for plotting.
Definition: egammaMonitorBaseAlgorithm.h:100
xAOD::EgammaParameters::e011
@ e011
uncalibrated energy (sum of cells) in presampler in a 1x1 window in cells in eta X phi
Definition: EgammaEnums.h:30
egammaRec.h
TRT::Track::d0
@ d0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:62
xAOD::EgammaParameters::deltaEta3
@ deltaEta3
difference between the cluster eta (3rd sampling) and the eta of the track extrapolated to the 3rd sa...
Definition: EgammaEnums.h:190
xAOD::EgammaParameters::deltaPhiRescaled2
@ deltaPhiRescaled2
difference between the cluster phi (second sampling) and the phi of the track extrapolated to the sec...
Definition: EgammaEnums.h:225
egammaMonitorBaseAlgorithm::execute
virtual StatusCode execute(const EventContext &) const override
Definition: egammaMonitorBaseAlgorithm.h:32
TRT::Track::z0
@ z0
Definition: InnerDetector/InDetCalibEvent/TRT_CalibData/TRT_CalibData/TrackInfo.h:63
xAOD::EgammaParameters::deltaPhiRescaled0
@ deltaPhiRescaled0
difference between the cluster phi (presampler) and the eta of the track extrapolated to the presampl...
Definition: EgammaEnums.h:215
xAOD::EgammaParameters::Rhad1
@ Rhad1
ethad1/et
Definition: EgammaEnums.h:162
ReadCondHandleKey.h
AthReentrantAlgorithm.h
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:195
xAOD::EgammaParameters::deltaPhi2
@ deltaPhi2
difference between the cluster phi (second sampling) and the phi of the track extrapolated to the sec...
Definition: EgammaEnums.h:204
egammaMonitorBaseAlgorithm::initialize
virtual StatusCode initialize() override
Definition: egammaMonitorBaseAlgorithm.cxx:16
EventInfo.h
xAOD::Iso::ptcone40
@ ptcone40
Definition: IsolationType.h:42
egammaMonitorBaseAlgorithm
Definition: egammaMonitorBaseAlgorithm.h:24
xAOD::EgammaParameters::deltaPhiRescaled1
@ deltaPhiRescaled1
difference between the cluster eta (1st sampling) and the eta of the track extrapolated to the 1st sa...
Definition: EgammaEnums.h:220
xAOD::EgammaParameters::e277
@ e277
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
Definition: EgammaEnums.h:80
egammaRecContainer.h
xAOD::EgammaParameters::weta1
@ weta1
shower width using +/-3 strips around the one with the maximal energy deposit: w3 strips = sqrt{sum(E...
Definition: EgammaEnums.h:97
xAOD::EgammaParameters::e132
@ e132
uncalibrated energy (sum of cells) in strips in a 3x2 window in cells in eta X phi
Definition: EgammaEnums.h:36
xAOD::EgammaParameters::Eratio
@ Eratio
(emaxs1-e2tsts1)/(emaxs1+e2tsts1)
Definition: EgammaEnums.h:158
xAOD::EgammaParameters::e237
@ e237
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x7
Definition: EgammaEnums.h:77
xAOD::Iso::topoetcone40
@ topoetcone40
Definition: IsolationType.h:50
xAOD::EgammaParameters::deltaEta1
@ deltaEta1
difference between the cluster eta (first sampling) and the eta of the track extrapolated to the firs...
Definition: EgammaEnums.h:184
xAOD::EgammaParameters::f3core
@ f3core
E3(3x3)/E fraction of the energy reconstructed in the third compartment of the electromagnetic calori...
Definition: EgammaEnums.h:65
xAOD::EgammaParameters::e2tsts1
@ e2tsts1
energy of the cell corresponding to second energy maximum in the first sampling
Definition: EgammaEnums.h:108
xAOD::EgammaParameters::Rhad
@ Rhad
ethad/et
Definition: EgammaEnums.h:160
xAOD::EgammaParameters::DeltaE
@ DeltaE
e2tsts1-emins1
Definition: EgammaEnums.h:164
PhotonContainer.h
xAOD::EgammaParameters::emaxs1
@ emaxs1
energy of strip with maximal energy deposit
Definition: EgammaEnums.h:145
xAOD::EgammaParameters::fracs1
@ fracs1
shower shape in the shower core : [E(+/-3)-E(+/-1)]/E(+/-1), where E(+/-n) is the energy in ± n strip...
Definition: EgammaEnums.h:111
read_hist_ntuple.f1
f1
Definition: read_hist_ntuple.py:4
xAOD::EgammaParameters::weta2
@ weta2
the lateral width is calculated with a window of 3x5 cells using the energy weighted sum over all cel...
Definition: EgammaEnums.h:103