ATLAS Offline Software
Classes | Functions
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. More...
 
std::string assoName_v1 (xAOD::JetAttribute::AssoParticlesID id)
 Returns a name given the AssoParticlesID. More...
 
template<class T >
const AccessorWrapper< T > * accessor (xAOD::JetAttribute::AttributeID id)
 Returns an attribute accessor corresponding to an AttributeID. More...
 
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  {
27  return AccessorMap_v1<T>::accessor(id);
28  }

◆ 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
43  const ObjectAccessorWrapper<Dummy>* acc = ObjectAccessorMap_v1<Dummy>::accessor(id);
44  if(acc) return acc->name();
45  return "UknownAssoObject";
46  }

◆ 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  }

◆ 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
29  const AccessorWrapper<Dummy>* acc = AccessorMap_v1<Dummy>::accessor(id);
30  if(acc) return acc->name();
31  return "UknownAttribute";
32  }
AthenaPoolTestRead.acc
acc
Definition: AthenaPoolTestRead.py:16
xAOD::JetAttributeAccessor::accessor
const AccessorWrapper< T > * accessor(xAOD::JetAttribute::AttributeID id)
Returns an attribute accessor corresponding to an AttributeID.
Definition: JetAccessorMap.h:26
xAOD::JetAttributeAccessor::name_v1
std::string name_v1(xAOD::JetAttribute::AttributeID id)
Returns a name given the AttributeID.
Definition: JetAccessorMap_v1.cxx:27