ATLAS Offline Software
PhotonAccessors_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: PhotonAccessors_v1.cxx 741466 2016-04-19 20:21:49Z christos $
6 
7 // System include(s):
8 #include <iostream>
9 
10 // Local include(s):
11 #include "PhotonAccessors_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 ) {
32  default:
33  std::cerr << "xAOD::Photon ERROR Unknown float VertexCaloMatchType ("
34  << type << ") requested" << std::endl;
35  return nullptr;
36  }
37 
38  }
39 } // namespace xAOD
xAOD::EgammaParameters::convMatchDeltaPhi2
@ convMatchDeltaPhi2
difference between the cluster phi and the phi of the second track of the vertex extrapolated to the ...
Definition: EgammaEnums.h:258
xAOD::vertexCaloMatchAccessorV1
const SG::AuxElement::Accessor< float > * vertexCaloMatchAccessorV1(xAOD::EgammaParameters::VertexCaloMatchType type)
Helper function for managing Egamma Accessor objects.
Definition: PhotonAccessors_v1.cxx:25
SG::Accessor
Helper class to provide type-safe access to aux data.
Definition: Control/AthContainers/AthContainers/Accessor.h:66
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
DEFINE_ACCESSOR
#define DEFINE_ACCESSOR(TYPE, NAME)
Helper macro for Accessor objects.
Definition: PhotonAccessors_v1.cxx:14
xAOD::EgammaParameters::VertexCaloMatchType
VertexCaloMatchType
Definition: EgammaEnums.h:239
xAOD::EgammaParameters::convMatchDeltaPhi1
@ convMatchDeltaPhi1
difference between the cluster phi and the phi of the first track of the vertex extrapolated to the s...
Definition: EgammaEnums.h:253
xAOD::EgammaParameters::convMatchDeltaEta1
@ convMatchDeltaEta1
difference between the cluster eta and the eta of the first track of the vertex extrapolated to the s...
Definition: EgammaEnums.h:243
PhotonAccessors_v1.h
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
xAOD::EgammaParameters::convMatchDeltaEta2
@ convMatchDeltaEta2
difference between the cluster eta and the eta of the second track of the vertex extrapolated to the ...
Definition: EgammaEnums.h:248