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

#include <JetAccessors.h>

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

Public Types

typedef SG::AuxElement::Accessor< TYPEAccessorType
 

Public Member Functions

 AccessorWrapper (const std::string &n)
 
void setAttribute (SG::AuxElement &p, const TYPE &v) const
 
void getAttribute (const SG::AuxElement &p, TYPE &v) const
 
const TYPEgetAttribute (const SG::AuxElement &p) const
 
bool isAvailable (const SG::AuxElement &p) const
 
const TYPEoperator() (const SG::AuxElement &p) const
 
TYPEoperator() (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::AccessorWrapper< TYPE >

Definition at line 49 of file JetAccessors.h.

Member Typedef Documentation

◆ AccessorType

Definition at line 51 of file JetAccessors.h.

Constructor & Destructor Documentation

◆ AccessorWrapper()

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

Definition at line 52 of file JetAccessors.h.

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

Member Function Documentation

◆ getAttribute() [1/2]

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

Definition at line 62 of file JetAccessors.h.

62  {
63  return m_a(p);
64  }

◆ getAttribute() [2/2]

template<class TYPE >
void xAOD::JetAttributeAccessor::AccessorWrapper< TYPE >::getAttribute ( const SG::AuxElement p,
TYPE v 
) const
inline

Definition at line 58 of file JetAccessors.h.

58  {
59  v = m_a(p);
60  }

◆ isAvailable()

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

Definition at line 66 of file JetAccessors.h.

66 { 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()() [1/2]

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

Definition at line 69 of file JetAccessors.h.

69 { return m_a(p);}

◆ operator()() [2/2]

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

Definition at line 70 of file JetAccessors.h.

70 { return m_a(p);}

◆ setAttribute()

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

Definition at line 54 of file JetAccessors.h.

54  {
55  m_a(p) = v;
56  }

Member Data Documentation

◆ m_a

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

Definition at line 73 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
xAOD::JetAttributeAccessor::AccessorWrapper::m_a
AccessorType m_a
Definition: JetAccessors.h:73
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
beamspotman.n
n
Definition: beamspotman.py:731
python.PyAthena.v
v
Definition: PyAthena.py:154
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