ATLAS Offline Software
egammaMVAFunctions.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 EGAMMAMVACALIB_EGAMMAMVAFUNCTIONS
6 #define EGAMMAMVACALIB_EGAMMAMVAFUNCTIONS
7 
8 #include "xAODEgamma/Egamma.h"
9 #include "xAODEgamma/Electron.h"
10 #include "xAODEgamma/Photon.h"
14 #include "egammaMVALayerDepth.h"
16 
17 #include "TLorentzVector.h"
18 
19 #include <functional>
20 #include <string>
21 #include <unordered_map>
22 #include <cmath>
23 #include <memory>
24 #include <stdexcept>
25 
26 // for the ConversionHelper (deprecated?)
28 
40 // Changing the definition of the functions means breaking backward
41 // compatibility with previous version of the MVA calibrations.
42 
44 {
45  // inline functions to avoid duplicates problem during linking (and performance)
46  // cluster functions
47  // REMEMBER to add the functions using corrected layer energies
48  inline float compute_cl_eta(const xAOD::CaloCluster& cluster) { return cluster.eta(); }
49  inline float compute_cl_phi(const xAOD::CaloCluster& cluster) { return cluster.phi(); }
50  inline float compute_cl_e(const xAOD::CaloCluster& cluster) { return cluster.e(); }
51  inline float compute_cl_etaCalo(const xAOD::CaloCluster& cluster) {
52  double tmp = 0.;
54  throw std::runtime_error("etaCalo not found in CaloCluster object");
55  }
56  return tmp;
57  }
58  inline float compute_cl_phiCalo(const xAOD::CaloCluster& cluster) {
59  double tmp = 0.;
61  throw std::runtime_error("phiCalo not found in CaloCluster object");
62  }
63  return tmp;
64  }
65  inline float compute_cl_etas1(const xAOD::CaloCluster& cluster) { return cluster.etaBE(1); }
66  inline float compute_cl_etas2(const xAOD::CaloCluster& cluster) { return cluster.etaBE(2); }
67  inline float compute_rawcl_Es0(const xAOD::CaloCluster& cl) { return cl.energyBE(0); }
68  /*inline std::function<float(const xAOD::CaloCluster&)> compute_rawcl_Es0_auto(bool use_corrected)
69  {
70  if (use_corrected) return [](const xAOD::CaloCluster& cl) { return cl.energyBE(0); };
71  else return [](const xAOD::CaloCluster& cl) { return cl.energyBE(0); };
72  }*/
73  inline float compute_rawcl_Es1(const xAOD::CaloCluster& cl) { return cl.energyBE(1); }
74  inline float compute_rawcl_Es2(const xAOD::CaloCluster& cl) { return cl.energyBE(2); }
75  inline float compute_rawcl_Es3(const xAOD::CaloCluster& cl) { return cl.energyBE(3); }
76 
78  static const SG::ConstAccessor<double> acc ("correctedcl_Es0");
79  return acc.isAvailable(cl) ? acc(cl) : cl.energyBE(0);
80  }
82  static const SG::ConstAccessor<double> acc ("correctedcl_Es1");
83  return acc.isAvailable(cl) ? acc(cl) : cl.energyBE(1);
84  }
86  static const SG::ConstAccessor<double> acc ("correctedcl_Es2");
87  return acc.isAvailable(cl) ? acc(cl) : cl.energyBE(2);
88  }
90  static const SG::ConstAccessor<double> acc ("correctedcl_Es3");
91  return acc.isAvailable(cl) ? acc(cl) : cl.energyBE(3);
92  }
93 
94  inline float compute_rawcl_Eacc(const xAOD::CaloCluster& cl) { return cl.energyBE(1) + cl.energyBE(2) + cl.energyBE(3); }
95  inline float compute_rawcl_f0(const xAOD::CaloCluster& cl) { return cl.energyBE(0) / (cl.energyBE(1) + cl.energyBE(2) + cl.energyBE(3)); }
96 
99 
100 
101  inline float compute_calibHitsShowerDepth(const std::array<float, 4>& cl, float eta)
102  {
103  const float denominator = cl[0] + cl[1] + cl[2] + cl[3];
104  if (denominator == 0) return 0.;
105 
106  const std::array<float, 4> radius(get_MVAradius(eta));
107 
108  // loop unrolling
109  return (radius[0] * cl[0]
110  + radius[1] * cl[1]
111  + radius[2] * cl[2]
112  + radius[3] * cl[3]) / denominator;
113  }
114 
116  {
117  const std::array<float, 4> cluster_array {{ compute_rawcl_Es0(cl),
120  compute_rawcl_Es3(cl) }};
121  return compute_calibHitsShowerDepth(cluster_array, compute_cl_eta(cl));
122  }
123 
125  const std::array<float, 4> cluster_array {{ compute_correctedcl_Es0(cl),
129  return compute_calibHitsShowerDepth(cluster_array, compute_cl_eta(cl));
130  }
131 
132 
133 
134 
135  // electron functions
136  inline float compute_el_charge(const xAOD::Electron& el) { return el.charge(); }
137  inline float compute_el_tracketa(const xAOD::Electron& el) { return el.trackParticle()->eta(); }
138  inline float compute_el_trackpt(const xAOD::Electron& el) { return el.trackParticle()->pt(); }
139  inline float compute_el_trackz0(const xAOD::Electron& el) { return el.trackParticle()->z0(); }
140  inline float compute_el_refittedTrack_qoverp(const xAOD::Electron& el) { return el.trackParticle()->qOverP(); }
141  inline int compute_el_author(const xAOD::Electron& el) {
142  static const SG::ConstAccessor<unsigned short int> acc ("author");
143  return acc (el);
144  }
145 
146 
147  // photon functions
148  inline int compute_ph_convFlag(const xAOD::Photon& ph) {
149  const auto original = xAOD::EgammaHelpers::conversionType(&ph);
150  if (original == 3) return 2;
151  else if (original != 0) return 1;
152  else return original;
153  }
154 
155  // a utility function
157  {
158  if (!tp) return 0;
159  for (unsigned int i = 0; i < tp->numberOfParameters(); ++i) {
160  if (tp->parameterPosition(i) == xAOD::FirstMeasurement) {
161  return hypot(tp->parameterPX(i), tp->parameterPY(i));
162  }
163  }
164  return tp->pt();
165  }
166 
167  // define a few without using conversion helper
168 
170  inline float compute_ptconv_decor(const xAOD::Photon* ph)
171  {
172  static const SG::AuxElement::Accessor<float> accPx("px");
173  static const SG::AuxElement::Accessor<float> accPy("py");
174 
175  auto vx = ph->vertex();
176  return vx ? std::hypot(accPx(*vx), accPy(*vx)) : 0.0;
177  }
178 
180  inline float compute_ptconv(const xAOD::Photon* ph)
181  {
182  auto vx = ph->vertex();
183  if (!vx) return 0.0;
184 
185  TLorentzVector sum;
186  if (vx->trackParticle(0)) sum += vx->trackParticle(0)->p4();
187  if (vx->trackParticle(1)) sum += vx->trackParticle(1)->p4();
188  return sum.Perp();
189  }
190 
191  inline float compute_pt1conv(const xAOD::Photon* ph)
192  {
193  static const SG::AuxElement::Accessor<float> accPt1("pt1");
194 
195  const xAOD::Vertex* vx = ph->vertex();
196  if (!vx) return 0.0;
197  if (accPt1.isAvailable(*vx)) {
198  return accPt1(*vx);
199  } else {
200  return getPtAtFirstMeasurement(vx->trackParticle(0));
201  }
202  }
203 
204  inline float compute_pt2conv(const xAOD::Photon* ph)
205  {
206  static const SG::AuxElement::Accessor<float> accPt2("pt2");
207 
208  const xAOD::Vertex* vx = ph->vertex();
209  if (!vx) return 0.0;
210  if (accPt2.isAvailable(*vx)) {
211  return accPt2(*vx);
212  } else {
213  return getPtAtFirstMeasurement(vx->trackParticle(1));
214  }
215  }
216 
217  // using template to avoid rewriting code for 1st, 2nd track and
218  // for all the summary types
219  template<int itrack, xAOD::SummaryType summary>
220  inline int compute_convtrkXhits(const xAOD::Photon* ph) {
221  const auto vx = ph->vertex();
222  if (!vx) return 0.;
223 
224  if (vx->trackParticle(0)) {
225  uint8_t hits;
226  if (vx->trackParticle(itrack)->summaryValue(hits, summary)) {
227  return hits;
228  }
229  }
230  return 0.;
231  }
232 
233  inline int compute_convtrk1nPixHits(const xAOD::Photon* ph) { return compute_convtrkXhits<0, xAOD::numberOfPixelHits>(ph); }
234  inline int compute_convtrk2nPixHits(const xAOD::Photon* ph) { return compute_convtrkXhits<1, xAOD::numberOfPixelHits>(ph); }
235  inline int compute_convtrk1nSCTHits(const xAOD::Photon* ph) { return compute_convtrkXhits<0, xAOD::numberOfSCTHits>(ph); }
236  inline int compute_convtrk2nSCTHits(const xAOD::Photon* ph) { return compute_convtrkXhits<1, xAOD::numberOfSCTHits>(ph); }
237 
238  // The functions to return the dictionaries of functions,
239  // i.e., the variable name to function
240 
242  using funcMap_t = std::unordered_map<std::string,
243  std::function<float(const xAOD::Egamma*, const xAOD::CaloCluster*)> >;
244 
246  std::unique_ptr<funcMap_t> initializeElectronFuncs(bool useLayerCorrected);
247 
249  std::unique_ptr<funcMap_t> initializeUnconvertedPhotonFuncs(bool useLayerCorrected);
250 
252  std::unique_ptr<funcMap_t> initializeConvertedPhotonFuncs(bool useLayerCorrected);
253 
254 
258  {
260  : asg::AsgMessaging("ConversionHelper"),
261  m_vertex(ph ? ph->vertex() : nullptr),
262  m_tp0(m_vertex ? m_vertex->trackParticle(0) : nullptr),
263  m_tp1(m_vertex ? m_vertex->trackParticle(1) : nullptr),
264  m_pt1conv(0.), m_pt2conv(0.)
265  {
266 
267  ATH_MSG_DEBUG("init conversion helper");
268  if (!m_vertex) return;
269 
270  static const SG::AuxElement::Accessor<float> accPt1("pt1");
271  static const SG::AuxElement::Accessor<float> accPt2("pt2");
272  if (accPt1.isAvailable(*m_vertex) && accPt2.isAvailable(*m_vertex))
273  {
274  m_pt1conv = accPt1(*m_vertex);
275  m_pt2conv = accPt2(*m_vertex);
276  }
277  else
278  {
279  ATH_MSG_WARNING("pt1/pt2 not available, will approximate from first measurements");
282  }
283  }
284 
286  : ConversionHelper(&ph) { } // delegating constr
287 
288  inline float ph_Rconv() const { return m_vertex ? hypot(m_vertex->position().x(), m_vertex->position().y()) : 0; }
289  inline float ph_zconv() const { return m_vertex ? m_vertex->position().z() : 0.; }
290  inline int ph_convtrk1nPixHits() const {
291  if (!m_tp0) { return 0; }
292  uint8_t hits = 0;
294  else {
295  ATH_MSG_WARNING("cannot read xAOD::numberOfPixelHits");
296  return 0;
297  }
298  }
299  inline int ph_convtrk2nPixHits() const {
300  if (!m_tp1) return 0;
301  uint8_t hits;
303  else {
304  ATH_MSG_WARNING("cannot read xAOD::numberOfPixelHits");
305  return 0;
306  }
307  }
308  inline int ph_convtrk1nSCTHits() const {
309  if (!m_tp0) { return 0; }
310  uint8_t hits;
311  if (m_tp0->summaryValue(hits, xAOD::numberOfSCTHits)) { return hits; }
312  else {
313  ATH_MSG_WARNING("cannot read xAOD::numberOfSCTHits");
314  return 0;
315  }
316  }
317  inline int ph_convtrk2nSCTHits() const {
318  if (!m_tp1) { return 0; }
319  uint8_t hits;
320  if (m_tp1->summaryValue(hits, xAOD::numberOfSCTHits)) { return hits; }
321  else {
322  ATH_MSG_WARNING("cannot read xAOD::numberOfSCTHits");
323  return 0;
324  }
325  }
326  inline float ph_pt1conv() const { return m_pt1conv; }
327  inline float ph_pt2conv() const { return m_pt2conv; }
328  inline float ph_ptconv() const {
329  // TODO: evaluate if move to this new definition, by now keep the previous one
330  // to be consistent with the training
331  // return m_vertex ? xAOD::EgammaHelpers::momentumAtVertex(*m_vertex).perp() : 0.;
332  TLorentzVector sum;
333  if (m_tp0) sum += m_tp0->p4();
334  if (m_tp1) sum += m_tp1->p4();
335  return sum.Perp();
336  }
337  private:
342  };
343 
344 
345 } // end namespace
346 
347 #endif
egammaMVAFunctions::compute_el_trackz0
float compute_el_trackz0(const xAOD::Electron &el)
Definition: egammaMVAFunctions.h:139
egammaMVAFunctions::compute_rawcl_Eacc
float compute_rawcl_Eacc(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:94
egammaMVAFunctions::compute_cl_phiCalo
float compute_cl_phiCalo(const xAOD::CaloCluster &cluster)
Definition: egammaMVAFunctions.h:58
xAOD::CaloCluster_v1::phi
virtual double phi() const
The azimuthal angle ( ) of the particle.
Definition: CaloCluster_v1.cxx:256
egammaMVAFunctions::funcMap_t
std::unordered_map< std::string, std::function< float(const xAOD::Egamma *, const xAOD::CaloCluster *)> > funcMap_t
Define the map type since it's long.
Definition: egammaMVAFunctions.h:243
TRTCalib_Extractor.hits
hits
Definition: TRTCalib_Extractor.py:35
egammaMVAFunctions::compute_ph_convFlag
int compute_ph_convFlag(const xAOD::Photon &ph)
Definition: egammaMVAFunctions.h:148
xAOD::uint8_t
uint8_t
Definition: Muon_v1.cxx:557
egammaMVAFunctions::ConversionHelper::ph_convtrk2nSCTHits
int ph_convtrk2nSCTHits() const
Definition: egammaMVAFunctions.h:317
egammaMVAFunctions
These functions are for calculating variables used by the MVA calibration.
Definition: egammaMVAFunctions.h:44
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
egammaMVAFunctions::ConversionHelper::ph_pt2conv
float ph_pt2conv() const
Definition: egammaMVAFunctions.h:327
egammaMVAFunctions::ConversionHelper::ph_pt1conv
float ph_pt1conv() const
Definition: egammaMVAFunctions.h:326
egammaMVAFunctions::compute_cl_e
float compute_cl_e(const xAOD::CaloCluster &cluster)
Definition: egammaMVAFunctions.h:50
egammaMVAFunctions::compute_correctedcl_calibHitsShowerDepth
float compute_correctedcl_calibHitsShowerDepth(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:124
egammaMVAFunctions::compute_ptconv
float compute_ptconv(const xAOD::Photon *ph)
This ptconv is the old one used by MVACalib.
Definition: egammaMVAFunctions.h:180
xAOD::TrackParticle_v1::summaryValue
bool summaryValue(uint8_t &value, const SummaryType &information) const
Accessor for TrackSummary values.
Definition: TrackParticle_v1.cxx:736
egammaMVAFunctions::ConversionHelper::ph_Rconv
float ph_Rconv() const
Definition: egammaMVAFunctions.h:288
asg
Definition: DataHandleTestTool.h:28
egammaMVAFunctions::compute_convtrk1nSCTHits
int compute_convtrk1nSCTHits(const xAOD::Photon *ph)
Definition: egammaMVAFunctions.h:235
egammaMVAFunctions::compute_convtrk1nPixHits
int compute_convtrk1nPixHits(const xAOD::Photon *ph)
Definition: egammaMVAFunctions.h:233
ParticleTest.tp
tp
Definition: ParticleTest.py:25
asg::AsgMessaging::AsgMessaging
AsgMessaging(const std::string &name)
Constructor with a name.
Definition: AsgMessaging.cxx:17
egammaMVAFunctions::compute_el_trackpt
float compute_el_trackpt(const xAOD::Electron &el)
Definition: egammaMVAFunctions.h:138
xAOD::numberOfPixelHits
@ numberOfPixelHits
these are the pixel hits, including the b-layer [unit8_t].
Definition: TrackingPrimitives.h:259
xAOD::Vertex_v1::position
const Amg::Vector3D & position() const
Returns the 3-pos.
xAOD::Egamma_v1
Definition: Egamma_v1.h:56
SG::ConstAccessor< double >
egammaMVAFunctions::compute_cl_eta
float compute_cl_eta(const xAOD::CaloCluster &cluster)
Definition: egammaMVAFunctions.h:48
egammaMVAFunctions::getPtAtFirstMeasurement
float getPtAtFirstMeasurement(const xAOD::TrackParticle *tp)
Definition: egammaMVAFunctions.h:156
egammaMVAFunctions::ConversionHelper::m_pt2conv
float m_pt2conv
Definition: egammaMVAFunctions.h:341
egammaMVAFunctions::compute_correctedcl_Es0
float compute_correctedcl_Es0(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:77
AsgMessaging.h
egammaMVAFunctions::ConversionHelper::ph_ptconv
float ph_ptconv() const
Definition: egammaMVAFunctions.h:328
xAOD::CaloCluster_v1::etaBE
float etaBE(const unsigned layer) const
Get the eta in one layer of the EM Calo.
Definition: CaloCluster_v1.cxx:644
xAOD::TrackParticle_v1::p4
virtual FourMom_t p4() const override final
The full 4-momentum of the particle.
Definition: TrackParticle_v1.cxx:129
Egamma.h
xAOD::CaloCluster_v1
Description of a calorimeter cluster.
Definition: CaloCluster_v1.h:59
egammaMVAFunctions::initializeConvertedPhotonFuncs
std::unique_ptr< funcMap_t > initializeConvertedPhotonFuncs(bool useLayerCorrected)
A function to build the map for converted photons.
Definition: egammaMVAFunctions.cxx:72
EgammaxAODHelpers.h
egammaMVAFunctions::compute_pt2conv
float compute_pt2conv(const xAOD::Photon *ph)
Definition: egammaMVAFunctions.h:204
egammaMVAFunctions::compute_convtrk2nSCTHits
int compute_convtrk2nSCTHits(const xAOD::Photon *ph)
Definition: egammaMVAFunctions.h:236
convertTimingResiduals.sum
sum
Definition: convertTimingResiduals.py:55
egammaMVAFunctions::compute_calibHitsShowerDepth
float compute_calibHitsShowerDepth(const std::array< float, 4 > &cl, float eta)
Definition: egammaMVAFunctions.h:101
egammaMVAFunctions::compute_el_tracketa
float compute_el_tracketa(const xAOD::Electron &el)
Definition: egammaMVAFunctions.h:137
egammaMVAFunctions::compute_correctedcl_Es2
float compute_correctedcl_Es2(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:85
xAOD::CaloCluster_v1::eta
virtual double eta() const
The pseudorapidity ( ) of the particle.
Definition: CaloCluster_v1.cxx:251
lumiFormat.i
int i
Definition: lumiFormat.py:85
egammaMVAFunctions::ConversionHelper::ph_zconv
float ph_zconv() const
Definition: egammaMVAFunctions.h:289
CaloCluster.h
egammaMVAFunctions::compute_correctedcl_f0
float compute_correctedcl_f0(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:98
xAOD::FirstMeasurement
@ FirstMeasurement
Parameter defined at the position of the 1st measurement.
Definition: TrackingPrimitives.h:213
Photon.h
ATH_MSG_DEBUG
#define ATH_MSG_DEBUG(x)
Definition: AthMsgStreamMacros.h:29
egammaMVAFunctions::ConversionHelper::ConversionHelper
ConversionHelper(const xAOD::Photon *ph)
Definition: egammaMVAFunctions.h:259
egammaMVAFunctions::initializeUnconvertedPhotonFuncs
std::unique_ptr< funcMap_t > initializeUnconvertedPhotonFuncs(bool useLayerCorrected)
A function to build the map for uncoverted photons.
Definition: egammaMVAFunctions.cxx:59
PhotonxAODHelpers.h
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
egammaMVAFunctions::compute_el_refittedTrack_qoverp
float compute_el_refittedTrack_qoverp(const xAOD::Electron &el)
Definition: egammaMVAFunctions.h:140
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
xAOD::CaloCluster_v1::retrieveMoment
bool retrieveMoment(MomentType type, double &value) const
Retrieve individual moment.
Definition: CaloCluster_v1.cxx:738
egammaMVAFunctions::compute_rawcl_Es1
float compute_rawcl_Es1(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:73
egammaMVAFunctions::compute_rawcl_f0
float compute_rawcl_f0(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:95
xAOD::Vertex_v1::trackParticle
const TrackParticle * trackParticle(size_t i) const
Get the pointer to a given track that was used in vertex reco.
Definition: Vertex_v1.cxx:249
egammaMVAFunctions::compute_cl_etaCalo
float compute_cl_etaCalo(const xAOD::CaloCluster &cluster)
Definition: egammaMVAFunctions.h:51
egammaMVAFunctions::compute_el_author
int compute_el_author(const xAOD::Electron &el)
Definition: egammaMVAFunctions.h:141
DeMoUpdate.tmp
string tmp
Definition: DeMoUpdate.py:1167
ReadTripsProbsFromCool.denominator
denominator
Definition: ReadTripsProbsFromCool.py:96
get_MVAradius
std::array< float, 4 > get_MVAradius(float eta)
helper function to compute shower depth
Definition: egammaMVALayerDepth.cxx:10
egammaMVAFunctions::compute_correctedcl_Eacc
float compute_correctedcl_Eacc(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:97
egammaMVAFunctions::compute_convtrk2nPixHits
int compute_convtrk2nPixHits(const xAOD::Photon *ph)
Definition: egammaMVAFunctions.h:234
egammaMVAFunctions::compute_rawcl_calibHitsShowerDepth
float compute_rawcl_calibHitsShowerDepth(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:115
egammaMVAFunctions::ConversionHelper::m_vertex
const xAOD::Vertex * m_vertex
Definition: egammaMVAFunctions.h:338
egammaMVAFunctions::ConversionHelper::ph_convtrk1nPixHits
int ph_convtrk1nPixHits() const
Definition: egammaMVAFunctions.h:290
egammaMVAFunctions::ConversionHelper::ph_convtrk1nSCTHits
int ph_convtrk1nSCTHits() const
Definition: egammaMVAFunctions.h:308
asg::AsgMessaging
Class mimicking the AthMessaging class from the offline software.
Definition: AsgMessaging.h:40
egammaMVAFunctions::ConversionHelper::m_tp0
const xAOD::TrackParticle * m_tp0
Definition: egammaMVAFunctions.h:339
egammaMVAFunctions::ConversionHelper
The ConversionHelper struct is stll used by egammaMVATree in PhysicsAnalysis but not the functions in...
Definition: egammaMVAFunctions.h:258
egammaMVAFunctions::initializeElectronFuncs
std::unique_ptr< funcMap_t > initializeElectronFuncs(bool useLayerCorrected)
A function to build the map for electrons.
Definition: egammaMVAFunctions.cxx:34
xAOD::Electron_v1
Definition: Electron_v1.h:34
xAOD::CaloCluster_v1::PHICALOFRAME
@ PHICALOFRAME
Phi in the calo frame (for egamma)
Definition: CaloCluster_v1.h:188
ParticleGun_SamplingFraction.radius
radius
Definition: ParticleGun_SamplingFraction.py:96
egammaMVAFunctions::compute_cl_etas2
float compute_cl_etas2(const xAOD::CaloCluster &cluster)
Definition: egammaMVAFunctions.h:66
Trk::vertex
@ vertex
Definition: MeasurementType.h:21
egammaMVAFunctions::compute_cl_phi
float compute_cl_phi(const xAOD::CaloCluster &cluster)
Definition: egammaMVAFunctions.h:49
xAOD::Vertex_v1
Class describing a Vertex.
Definition: Vertex_v1.h:42
egammaMVAFunctions::ConversionHelper::m_pt1conv
float m_pt1conv
Definition: egammaMVAFunctions.h:341
egammaMVALayerDepth.h
xAOD::Photon_v1
Definition: Photon_v1.h:37
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
egammaMVAFunctions::compute_cl_etas1
float compute_cl_etas1(const xAOD::CaloCluster &cluster)
Definition: egammaMVAFunctions.h:65
egammaMVAFunctions::compute_pt1conv
float compute_pt1conv(const xAOD::Photon *ph)
Definition: egammaMVAFunctions.h:191
xAOD::EgammaHelpers::conversionType
xAOD::EgammaParameters::ConversionType conversionType(const xAOD::Photon *ph)
return the photon conversion type (see EgammaEnums)
Definition: PhotonxAODHelpers.cxx:26
egammaMVAFunctions::compute_ptconv_decor
float compute_ptconv_decor(const xAOD::Photon *ph)
This ptconv function uses the vertex decorations.
Definition: egammaMVAFunctions.h:170
egammaMVAFunctions::compute_correctedcl_Es3
float compute_correctedcl_Es3(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:89
xAOD::numberOfSCTHits
@ numberOfSCTHits
number of hits in SCT [unit8_t].
Definition: TrackingPrimitives.h:268
egammaMVAFunctions::compute_convtrkXhits
int compute_convtrkXhits(const xAOD::Photon *ph)
Definition: egammaMVAFunctions.h:220
SG::ConstAccessor< T, AuxAllocator_t< T > >::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
Electron.h
egammaMVAFunctions::compute_correctedcl_Es1
float compute_correctedcl_Es1(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:81
xAOD::TrackParticle_v1
Class describing a TrackParticle.
Definition: TrackParticle_v1.h:43
egammaMVAFunctions::compute_rawcl_Es2
float compute_rawcl_Es2(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:74
ConstAccessor.h
Helper class to provide constant type-safe access to aux data.
egammaMVAFunctions::ConversionHelper::ConversionHelper
ConversionHelper(const xAOD::Photon &ph)
Definition: egammaMVAFunctions.h:285
egammaMVAFunctions::compute_rawcl_Es3
float compute_rawcl_Es3(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:75
xAOD::CaloCluster_v1::ETACALOFRAME
@ ETACALOFRAME
Eta in the calo frame (for egamma)
Definition: CaloCluster_v1.h:187
egammaMVAFunctions::ConversionHelper::m_tp1
const xAOD::TrackParticle * m_tp1
Definition: egammaMVAFunctions.h:340
egammaMVAFunctions::compute_rawcl_Es0
float compute_rawcl_Es0(const xAOD::CaloCluster &cl)
Definition: egammaMVAFunctions.h:67
dq_make_web_display.cl
cl
print [x.__class__ for x in toList(dqregion.getSubRegions()) ]
Definition: dq_make_web_display.py:26
xAOD::Photon_v1::vertex
const xAOD::Vertex * vertex(size_t index=0) const
Pointer to the xAOD::Vertex/es that match the photon candidate.
Definition: Photon_v1.cxx:46
xAOD::CaloCluster_v1::e
virtual double e() const
The total energy of the particle.
Definition: CaloCluster_v1.cxx:265
readCCLHist.float
float
Definition: readCCLHist.py:83
egammaMVAFunctions::compute_el_charge
float compute_el_charge(const xAOD::Electron &el)
Definition: egammaMVAFunctions.h:136
egammaMVAFunctions::ConversionHelper::ph_convtrk2nPixHits
int ph_convtrk2nPixHits() const
Definition: egammaMVAFunctions.h:299
SCT_Monitoring::summary
@ summary
Definition: SCT_MonitoringNumbers.h:65