ATLAS Offline Software
Loading...
Searching...
No Matches
xAOD::JetAttributeAccessor Namespace Reference

Classes

struct  AccessorMap_v1
 Define a template struct. More...
class  AccessorWrapper
class  AccessorWrapper< double >
 Double accessor specialization : internally stored as float. More...
class  AccessorWrapper< Dummy >
class  AccessorWrapper< IParticle::FourMom_t >
 Specialiazed accessor for FourMom_t : internally stores the FourMom_t as 4 floats in the Aux Store. More...
class  AccessorWrapper< JetFourMom_t >
 Specialiazed accessor for JetFourMom_t : internally stores the JetFourMom_t as 4 floats in the Aux Store. More...
class  AccessorWrapper< std::vector< double > >
 specialization : internally stored as float More...
class  FourMomAccessor
 A base class holding accessors for 4 floats of a 4-vector. More...
struct  Named
struct  ObjectAccessorMap_v1
class  ObjectAccessorWrapper
class  ObjectAccessorWrapper< Dummy >
class  ObjectAccessorWrapper< std::vector< const TYPE * > >
 Accessor wrapper for vector< AuxElement> objects. More...

Functions

std::string name_v1 (xAOD::JetAttribute::AttributeID id)
 Returns a name given the AttributeID.
std::string assoName_v1 (xAOD::JetAttribute::AssoParticlesID id)
 Returns a name given the AssoParticlesID.
template<class T>
const AccessorWrapper< T > * accessor (xAOD::JetAttribute::AttributeID id)
 Returns an attribute accessor corresponding to an AttributeID.
std::string name (xAOD::JetAttribute::AttributeID id)

Function Documentation

◆ accessor()

template<class T>
const AccessorWrapper< T > * xAOD::JetAttributeAccessor::accessor ( xAOD::JetAttribute::AttributeID id)

Returns an attribute accessor corresponding to an AttributeID.

returns null if invalid AttributeID.

Definition at line 26 of file JetAccessorMap.h.

26 {
28 }
static const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID moment)

◆ assoName_v1()

std::string xAOD::JetAttributeAccessor::assoName_v1 ( xAOD::JetAttribute::AssoParticlesID id)

Returns a name given the AssoParticlesID.

Definition at line 41 of file JetAccessorMap_v1.cxx.

41 {
42 // no specialization for now. Use dummy to avoid any conflict
44 if(acc) return acc->name();
45 return "UknownAssoObject";
46 }
static const SG::AuxElement::Accessor< ElementLink< IParticleContainer > > acc("originalObjectLink")
Object used for setting/getting the dynamic decoration in question.
static const ObjectAccessorWrapper< T > * accessor(xAOD::JetAttribute::AssoParticlesID id)

◆ name()

std::string xAOD::JetAttributeAccessor::name ( xAOD::JetAttribute::AttributeID id)
inline

Definition at line 30 of file JetAccessorMap.h.

30 {
31 return name_v1(id);
32 }
std::string name_v1(xAOD::JetAttribute::AttributeID id)
Returns a name given the AttributeID.

◆ name_v1()

std::string xAOD::JetAttributeAccessor::name_v1 ( xAOD::JetAttribute::AttributeID id)

Returns a name given the AttributeID.

Definition at line 27 of file JetAccessorMap_v1.cxx.

27 {
28 // no specialization for now. Use dummy to avoid any conflict
30 if(acc) return acc->name();
31 return "UknownAttribute";
32 }