ATLAS Offline Software
EgammaAccessors_v1.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 // $Id: EgammaAccessors_v1.cxx 741489 2016-04-20 01:30:34Z christos $
6 
7 // System include(s):
8 #include <iostream>
9 
10 // Local include(s):
11 #include "EgammaAccessors_v1.h"
12 
14 #define DEFINE_ACCESSOR(TYPE, NAME ) \
15  case xAOD::EgammaParameters::NAME: \
16  { \
17  static const SG::AuxElement::Accessor< TYPE > a( #NAME ); \
18  return &a; \
19  } \
20  break;
21 
22 namespace xAOD {
23 
27  {
28  switch( type ) {
29  DEFINE_ACCESSOR( float, e011 );
30  DEFINE_ACCESSOR( float, e033 );
31  DEFINE_ACCESSOR( float, e132 );
32  DEFINE_ACCESSOR( float, e1152 );
33  DEFINE_ACCESSOR( float, ethad1 );
34  DEFINE_ACCESSOR( float, ethad );
35  DEFINE_ACCESSOR( float, ehad1 );
36  DEFINE_ACCESSOR( float, f1 );
37  DEFINE_ACCESSOR( float, f3 );
38  DEFINE_ACCESSOR( float, f1core );
39  DEFINE_ACCESSOR( float, f3core );
40  DEFINE_ACCESSOR( float, e233 );
41  DEFINE_ACCESSOR( float, e235 );
42  DEFINE_ACCESSOR( float, e255 );
43  DEFINE_ACCESSOR( float, e237 );
44  DEFINE_ACCESSOR( float, e277 );
45  DEFINE_ACCESSOR( float, e333 );
46  DEFINE_ACCESSOR( float, e335 );
47  DEFINE_ACCESSOR( float, e337 );
48  DEFINE_ACCESSOR( float, e377 );
49  DEFINE_ACCESSOR( float, weta1 );
50  DEFINE_ACCESSOR( float, weta2 );
51  DEFINE_ACCESSOR( float, e2ts1 );
52  DEFINE_ACCESSOR( float, e2tsts1 );
53  DEFINE_ACCESSOR( float, fracs1 );
54  DEFINE_ACCESSOR( float, widths1 );
55  DEFINE_ACCESSOR( float, widths2 );
56  DEFINE_ACCESSOR( float, poscs1 );
57  DEFINE_ACCESSOR( float, poscs2 );
58  DEFINE_ACCESSOR( float, asy1 );
59  DEFINE_ACCESSOR( float, pos );
60  DEFINE_ACCESSOR( float, pos7 );
61  DEFINE_ACCESSOR( float, barys1 );
62  DEFINE_ACCESSOR( float, wtots1 );
63  DEFINE_ACCESSOR( float, emins1 );
64  DEFINE_ACCESSOR( float, emaxs1 );
66  DEFINE_ACCESSOR( float, ecore );
67  DEFINE_ACCESSOR( float, Reta );
68  DEFINE_ACCESSOR( float, Rphi );
69  DEFINE_ACCESSOR( float, Eratio );
70  DEFINE_ACCESSOR( float, Rhad );
71  DEFINE_ACCESSOR( float, Rhad1 );
72  DEFINE_ACCESSOR( float, DeltaE );
73  default:
74  std::cerr << "xAOD::Egamma ERROR Unknown float ShowerShapeType ("
75  << type << ") requested" << std::endl;
76  return nullptr;
77  }
78 
79  }
80 
81 
82 } // namespace xAOD
xAOD::EgammaParameters::ehad1
@ ehad1
E leakage into 1st sampling of had calo (CaloSampling::HEC0 + CaloSampling::TileBar0 + CaloSampling::...
Definition: EgammaEnums.h:48
xAOD::EgammaParameters::e233
@ e233
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x3 (in cell units e...
Definition: EgammaEnums.h:68
xAOD::EgammaParameters::e033
@ e033
uncalibrated energy (sum of cells) in presampler in a 3x3 window in cells in eta X phi
Definition: EgammaEnums.h:33
xAOD::EgammaParameters::Reta
@ Reta
e237/e277
Definition: EgammaEnums.h:154
xAOD::EgammaParameters::e2ts1
@ e2ts1
2nd max in strips calc by summing 3 strips
Definition: EgammaEnums.h:105
xAOD::EgammaParameters::ShowerShapeType
ShowerShapeType
Definition: EgammaEnums.h:27
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
xAOD::EgammaParameters::asy1
@ asy1
uncorr asymmetry in 3 strips in the 1st sampling
Definition: EgammaEnums.h:123
xAOD::EgammaParameters::e235
@ e235
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 3x5
Definition: EgammaEnums.h:71
xAOD::EgammaParameters::ecore
@ ecore
core energy in em calo E(core) = E0(3x3) + E1(15x2) + E2(5x5) + E3(3x5)
Definition: EgammaEnums.h:152
xAOD::EgammaParameters::ethad1
@ ethad1
transverse energy in the first sampling of the hadronic calorimeters behind the cluster calculated fr...
Definition: EgammaEnums.h:42
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAOD::EgammaParameters::Rphi
@ Rphi
e233/e237
Definition: EgammaEnums.h:156
xAOD::EgammaParameters::f1core
@ f1core
E1(3x1)/E = fraction of the energy reconstructed in the first longitudinal compartment of the electro...
Definition: EgammaEnums.h:60
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
xAOD::EgammaParameters::e333
@ e333
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x3
Definition: EgammaEnums.h:83
xAOD::EgammaParameters::f3
@ f3
fraction of energy reconstructed in 3rd sampling
Definition: EgammaEnums.h:54
DEFINE_ACCESSOR
#define DEFINE_ACCESSOR(TYPE, NAME)
Helper macro for Accessor objects.
Definition: EgammaAccessors_v1.cxx:14
xAOD::EgammaParameters::e1152
@ e1152
uncalibrated energy (sum of cells) in strips in a 15x2 window in cells in eta X phi
Definition: EgammaEnums.h:39
xAOD::EgammaParameters::ethad
@ ethad
ET leakage into hadronic calorimeter with exclusion of energy in CaloSampling::TileGap3.
Definition: EgammaEnums.h:45
xAOD::e2tsts1
setEt setPhi setE277 setWeta2 setEta1 e2tsts1
Definition: TrigEMCluster_v1.cxx:45
xAOD::EgammaParameters::pos7
@ pos7
Difference between the track and the shower positions: sum_{i=i_m-7}^{i=i_m+7}E_i x (i-i_m) / sum_{i=...
Definition: EgammaEnums.h:133
xAOD::EgammaParameters::emins1
@ emins1
energy reconstructed in the strip with the minimal value between the first and second maximum
Definition: EgammaEnums.h:143
xAOD::EgammaParameters::poscs2
@ poscs2
relative position in eta within cell in 2nd sampling
Definition: EgammaEnums.h:121
xAOD::showerShapeAccessorV1
const SG::AuxElement::Accessor< float > * showerShapeAccessorV1(xAOD::EgammaParameters::ShowerShapeType type)
Explicit Instantiation of Template.
Definition: EgammaAccessors_v1.cxx:26
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
xAOD::e277
setEt setPhi e277
Definition: TrigEMCluster_v1.cxx:33
xAOD::EgammaParameters::Rhad1
@ Rhad1
ethad1/et
Definition: EgammaEnums.h:162
xAOD::EgammaParameters::e377
@ e377
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 7x7
Definition: EgammaEnums.h:92
xAOD::weta2
setEt setPhi setE277 weta2
Definition: TrigEMCluster_v1.cxx:37
xAOD::EgammaParameters::poscs1
@ poscs1
relative position in eta within cell in 1st sampling
Definition: EgammaEnums.h:119
EgammaAccessors_v1.h
xAOD::EgammaParameters::barys1
@ barys1
barycentre in sampling 1 calculated in 3 strips
Definition: EgammaEnums.h:135
python.LumiBlobConversion.pos
pos
Definition: LumiBlobConversion.py:18
xAOD::EgammaParameters::e255
@ e255
uncalibrated energy (sum of cells) of the middle sampling in a rectangle of size 5x5
Definition: EgammaEnums.h:74
xAOD::EgammaParameters::e337
@ e337
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x7
Definition: EgammaEnums.h:89
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::EgammaParameters::r33over37allcalo
@ r33over37allcalo
1-ratio of energy in 3x3 over 3x7 cells; E(3x3) = E0(1x1) + E1(3x1) + E2(3x3) + E3(3x3); E(3x7) = E0(...
Definition: EgammaEnums.h:149
xAOD::EgammaParameters::widths1
@ widths1
same as egammaParameters::weta1 but without corrections on particle impact point inside the cell
Definition: EgammaEnums.h:114
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::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::Rhad
@ Rhad
ethad/et
Definition: EgammaEnums.h:160
xAOD::EgammaParameters::widths2
@ widths2
same as egammaParameters::weta2 but without corrections on particle impact point inside the cell
Definition: EgammaEnums.h:117
xAOD::EgammaParameters::DeltaE
@ DeltaE
e2tsts1-emins1
Definition: EgammaEnums.h:164
xAOD::EgammaParameters::e335
@ e335
uncalibrated energy (sum of cells) of the third sampling in a rectangle of size 3x5
Definition: EgammaEnums.h:86
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