ATLAS Offline Software
ElectronAccessors_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: ElectronAccessors_v1.cxx 575466 2013-12-13 16:40:29Z amorley $
6 
7 // System include(s):
8 #include <iostream>
9 
10 // Local include(s):
11 #include "ElectronAccessors_v1.h"
12 
14 #define DEFINE_ACCESSOR(TYPE, NAME ) \
15  case xAOD::EgammaParameters::NAME: \
16  { \
17  const static SG::AuxElement::Accessor< TYPE > a( #NAME ); \
18  return &a; \
19  } \
20  break;
21 
22 namespace xAOD {
23 
26  {
27  switch( type ) {
28  DEFINE_ACCESSOR( float,deltaEta0);
29  DEFINE_ACCESSOR( float,deltaEta1);
30  DEFINE_ACCESSOR( float,deltaEta2);
31  DEFINE_ACCESSOR( float,deltaEta3);
32  DEFINE_ACCESSOR( float,deltaPhi0);
33  DEFINE_ACCESSOR( float,deltaPhi1);
34  DEFINE_ACCESSOR( float,deltaPhi2);
35  DEFINE_ACCESSOR( float,deltaPhi3);
41  default:
42  std::cerr << "xAOD::Electron ERROR Unknown float TrackCaloMatchType ("
43  << type << ") requested" << std::endl;
44  return nullptr;
45  }
46 
47  }
48 } // namespace xAOD
ElectronAccessors_v1.h
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::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
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:68
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::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
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
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
DEFINE_ACCESSOR
#define DEFINE_ACCESSOR(TYPE, NAME)
Helper macro for Accessor objects.
Definition: ElectronAccessors_v1.cxx:14
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
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::TrackCaloMatchType
TrackCaloMatchType
Definition: EgammaEnums.h:173
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::trackCaloMatchAccessorV1
const SG::AuxElement::Accessor< float > * trackCaloMatchAccessorV1(xAOD::EgammaParameters::TrackCaloMatchType type)
Helper function for managing Egamma Accessor objects.
Definition: ElectronAccessors_v1.cxx:25
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
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::deltaPhi2
@ deltaPhi2
difference between the cluster phi (second sampling) and the phi of the track extrapolated to the sec...
Definition: EgammaEnums.h:204
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
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
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