ATLAS Offline Software
Loading...
Searching...
No Matches
EgammaAccessors_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: EgammaAccessors_v1.cxx 741489 2016-04-20 01:30:34Z christos $
6
7// System include(s):
8#include <iostream>
9
10// Local include(s):
11#include "EgammaAccessors_v1.h"
12
14#define DEFINE_ACCESSOR(TYPE, NAME ) \
15 case xAOD::EgammaParameters::NAME: \
16 { \
17 static const SG::AuxElement::Accessor< TYPE > a( #NAME ); \
18 return &a; \
19 } \
20 break;
21
22namespace xAOD {
23
27 {
28 switch( type ) {
29 DEFINE_ACCESSOR( float, e011 );
30 DEFINE_ACCESSOR( float, e033 );
31 DEFINE_ACCESSOR( float, e132 );
32 DEFINE_ACCESSOR( float, e1152 );
33 DEFINE_ACCESSOR( float, ethad1 );
34 DEFINE_ACCESSOR( float, ethad );
35 DEFINE_ACCESSOR( float, ehad1 );
36 DEFINE_ACCESSOR( float, f1 );
37 DEFINE_ACCESSOR( float, f3 );
38 DEFINE_ACCESSOR( float, f1core );
39 DEFINE_ACCESSOR( float, f3core );
40 DEFINE_ACCESSOR( float, e233 );
41 DEFINE_ACCESSOR( float, e235 );
42 DEFINE_ACCESSOR( float, e255 );
43 DEFINE_ACCESSOR( float, e237 );
44 DEFINE_ACCESSOR( float, e277 );
45 DEFINE_ACCESSOR( float, e333 );
46 DEFINE_ACCESSOR( float, e335 );
47 DEFINE_ACCESSOR( float, e337 );
48 DEFINE_ACCESSOR( float, e377 );
49 DEFINE_ACCESSOR( float, weta1 );
50 DEFINE_ACCESSOR( float, weta2 );
51 DEFINE_ACCESSOR( float, e2ts1 );
52 DEFINE_ACCESSOR( float, e2tsts1 );
53 DEFINE_ACCESSOR( float, fracs1 );
54 DEFINE_ACCESSOR( float, widths1 );
55 DEFINE_ACCESSOR( float, widths2 );
56 DEFINE_ACCESSOR( float, poscs1 );
57 DEFINE_ACCESSOR( float, poscs2 );
58 DEFINE_ACCESSOR( float, asy1 );
59 DEFINE_ACCESSOR( float, pos );
60 DEFINE_ACCESSOR( float, pos7 );
61 DEFINE_ACCESSOR( float, barys1 );
62 DEFINE_ACCESSOR( float, wtots1 );
63 DEFINE_ACCESSOR( float, emins1 );
64 DEFINE_ACCESSOR( float, emaxs1 );
65 DEFINE_ACCESSOR( float, r33over37allcalo );
66 DEFINE_ACCESSOR( float, ecore );
67 DEFINE_ACCESSOR( float, Reta );
68 DEFINE_ACCESSOR( float, Rphi );
69 DEFINE_ACCESSOR( float, Eratio );
70 DEFINE_ACCESSOR( float, Rhad );
71 DEFINE_ACCESSOR( float, Rhad1 );
72 DEFINE_ACCESSOR( float, DeltaE );
73 default:
74 std::cerr << "xAOD::Egamma ERROR Unknown float ShowerShapeType ("
75 << type << ") requested" << std::endl;
76 return nullptr;
77 }
78
79 }
80
81
82} // 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 > * showerShapeAccessorV1(xAOD::EgammaParameters::ShowerShapeType type)
Explicit Instantiation of Template.
setEt setPhi setE277 weta2
setEt setPhi setE277 setWeta2 setEta1 e2tsts1
setEt setPhi e277