ATLAS Offline Software
Loading...
Searching...
No Matches
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
22namespace xAOD {
23
26 {
27 switch( type ) {
28 DEFINE_ACCESSOR( float,convMatchDeltaEta1);
29 DEFINE_ACCESSOR( float,convMatchDeltaEta2);
30 DEFINE_ACCESSOR( float,convMatchDeltaPhi1);
31 DEFINE_ACCESSOR( float,convMatchDeltaPhi2);
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
#define DEFINE_ACCESSOR(TYPE, NAME)
Helper macro for Accessor objects.
SG::Accessor< T, ALLOC > Accessor
Definition AuxElement.h:572
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
const SG::AuxElement::Accessor< float > * vertexCaloMatchAccessorV1(xAOD::EgammaParameters::VertexCaloMatchType type)
Helper function for managing Egamma Accessor objects.