ATLAS Offline Software
Loading...
Searching...
No Matches
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
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

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 {
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()

const 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 285 of file JetAccessors.h.

285{ return getAttribute(p); }
const TYPE * getAttribute(const SG::AuxElement &p) const

◆ 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

Definition at line 289 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: