ATLAS Offline Software
Public Types | Public Member Functions | Protected Attributes | List of all members
xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE > Class Template Reference

#include <JetAccessors.h>

Inheritance diagram for xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >:
Collaboration diagram for xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >:

Public Types

typedef InternalTypes< TYPE, std::is_base_of< IParticle, TYPE >::value > InternalType
 
typedef InternalType::ContainerType ContainerType
 
typedef InternalType::LinkType LinkType
 
typedef InternalType::AccessorType AccessorType
 

Public Member Functions

 ObjectAccessorWrapper (const std::string &n)
 
void setAttribute (SG::AuxElement &p, const TYPE *o) const
 
const TYPEgetAttribute (const SG::AuxElement &p) const
 
void getAttribute (const SG::AuxElement &p, const TYPE *&att) const
 
bool isAvailable (const SG::AuxElement &p) const
 
const TYPEoperator() (const SG::AuxElement &p) const
 
std::string name () const
 

Protected Attributes

AccessorType m_a
 
std::string m_name
 

Detailed Description

template<class TYPE>
class xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >

Definition at line 258 of file JetAccessors.h.

Member Typedef Documentation

◆ AccessorType

Definition at line 263 of file JetAccessors.h.

◆ ContainerType

Definition at line 261 of file JetAccessors.h.

◆ InternalType

template<class TYPE >
typedef InternalTypes<TYPE, std::is_base_of<IParticle, TYPE>::value> xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >::InternalType

Definition at line 260 of file JetAccessors.h.

◆ LinkType

Definition at line 262 of file JetAccessors.h.

Constructor & Destructor Documentation

◆ ObjectAccessorWrapper()

template<class TYPE >
xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >::ObjectAccessorWrapper ( const std::string &  n)
inline

Definition at line 265 of file JetAccessors.h.

265 : Named(n), m_a(n) {}

Member Function Documentation

◆ getAttribute() [1/2]

template<class TYPE >
const TYPE* xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >::getAttribute ( const SG::AuxElement p) const
inline

Definition at line 274 of file JetAccessors.h.

274  {
275  return InternalType::fromEL( m_a(p) );
276  }

◆ getAttribute() [2/2]

template<class TYPE >
void xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >::getAttribute ( const SG::AuxElement p,
const TYPE *&  att 
) const
inline

Definition at line 278 of file JetAccessors.h.

278  {
279  att= InternalType::fromEL( m_a(p) );
280  }

◆ isAvailable()

template<class TYPE >
bool xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >::isAvailable ( const SG::AuxElement p) const
inline

Definition at line 282 of file JetAccessors.h.

282 { return m_a.isAvailable(p);}

◆ name()

std::string xAOD::JetAttributeAccessor::Named::name ( ) const
inlineinherited

Definition at line 43 of file JetAccessors.h.

43 {return m_name;}

◆ operator()()

template<class TYPE >
const TYPE* xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >::operator() ( const SG::AuxElement p) const
inline

Definition at line 286 of file JetAccessors.h.

286 { return getAttribute(p); }

◆ setAttribute()

template<class TYPE >
void xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >::setAttribute ( SG::AuxElement p,
const TYPE o 
) const
inline

Definition at line 267 of file JetAccessors.h.

267  {
268  LinkType &el = m_a(p);
269  el.toIndexedElement( *( dynamic_cast< const ContainerType* >( o->container() ) ), o->index() );
270  el.toPersistent();
271  }

Member Data Documentation

◆ m_a

template<class TYPE >
AccessorType xAOD::JetAttributeAccessor::ObjectAccessorWrapper< TYPE >::m_a
protected

Definition at line 290 of file JetAccessors.h.

◆ m_name

std::string xAOD::JetAttributeAccessor::Named::m_name
protectedinherited

Definition at line 45 of file JetAccessors.h.


The documentation for this class was generated from the following file:
xAOD::JetAttributeAccessor::Named::m_name
std::string m_name
Definition: JetAccessors.h:45
python.PerfMonSerializer.p
def p
Definition: PerfMonSerializer.py:743
xAOD::JetAttributeAccessor::ObjectAccessorWrapper::m_a
AccessorType m_a
Definition: JetAccessors.h:290
xAOD::JetAttributeAccessor::ObjectAccessorWrapper::ContainerType
InternalType::ContainerType ContainerType
Definition: JetAccessors.h:261
xAOD::JetAttributeAccessor::ObjectAccessorWrapper::LinkType
InternalType::LinkType LinkType
Definition: JetAccessors.h:262
xAOD::JetAttributeAccessor::ObjectAccessorWrapper::getAttribute
const TYPE * getAttribute(const SG::AuxElement &p) const
Definition: JetAccessors.h:274
beamspotman.n
n
Definition: beamspotman.py:731
plotIsoValidation.el
el
Definition: plotIsoValidation.py:197
SG::ConstAccessor::isAvailable
bool isAvailable(const ELT &e) const
Test to see if this variable exists in the store.
xAOD::JetAttributeAccessor::Named::Named
Named(const std::string &n)
Definition: JetAccessors.h:42