ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Event
xAOD
xAODEgamma
Root
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
24
const
SG::AuxElement::Accessor< float >*
25
vertexCaloMatchAccessorV1
(
xAOD::EgammaParameters::VertexCaloMatchType
type
)
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_ACCESSOR
#define DEFINE_ACCESSOR(TYPE, NAME)
Helper macro for Accessor objects.
Definition
BTaggingAccessors_v1.cxx:15
PhotonAccessors_v1.h
xAOD::EgammaParameters::VertexCaloMatchType
VertexCaloMatchType
Definition
EgammaEnums.h:240
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition
ICaloAffectedTool.h:24
xAOD::vertexCaloMatchAccessorV1
const SG::AuxElement::Accessor< float > * vertexCaloMatchAccessorV1(xAOD::EgammaParameters::VertexCaloMatchType type)
Helper function for managing Egamma Accessor objects.
Definition
PhotonAccessors_v1.cxx:25
type
Generated on
for ATLAS Offline Software by
1.17.0