ATLAS Offline Software
Loading...
Searching...
No Matches
JetAccessorMap_v1.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3*/
4
6
7namespace xAOD {
8
10
12 // const char* JetAssoParticleAccessors_v1::s_map[] = {
13 // "GhostTracks",
14 // "GhostTruthParticles",
15 // };
16
17 // we define a dummy accessor class
18 namespace { class Dummy {}; }
19
20 template<>
21 class AccessorWrapper<Dummy> : public Named {
22 public:
23 AccessorWrapper(const std::string&n) : Named(n){}
24 };
25
26
28 // no specialization for now. Use dummy to avoid any conflict
30 if(acc) return acc->name();
31 return "UknownAttribute";
32 }
33
34
35 template<>
36 class ObjectAccessorWrapper<Dummy> : public Named {
37 public:
38 ObjectAccessorWrapper(const std::string&n) : Named(n){}
39 };
40
42 // no specialization for now. Use dummy to avoid any conflict
44 if(acc) return acc->name();
45 return "UknownAssoObject";
46 }
47
48 }
49
50
51
52}
std::string assoName_v1(xAOD::JetAttribute::AssoParticlesID id)
Returns a name given the AssoParticlesID.
std::string name_v1(xAOD::JetAttribute::AttributeID id)
Returns a name given the AttributeID.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.
static const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID moment)
Named(const std::string &n)
static const ObjectAccessorWrapper< T > * accessor(xAOD::JetAttribute::AssoParticlesID id)