ATLAS Offline Software
Classes | Public Member Functions | Private Attributes | List of all members
ExpressionParsing::AccessorHelper< T_Cont, T_src > Class Template Reference

Auxiliary class to handle xAOD accessor based xAOD object content access. More...

#include <xAODAccessor.h>

Collaboration diagram for ExpressionParsing::AccessorHelper< T_Cont, T_src >:

Classes

class  Kit
 Auxiliary class to create the corresponding auxiliary helper object. More...
 

Public Member Functions

 AccessorHelper (SG::auxid_t auxid)
 
std::size_t size (const T_Cont &cont) const
 
T_src get (const T_Cont &cont) const
 Get the scalar provided by the container. More...
 
T_src get (const T_Cont &cont, std::size_t idx) const
 Get the specified element of the vector provided by the container. More...
 

Private Attributes

SG::AuxElement::ConstAccessor< T_src > m_accessor
 

Detailed Description

template<class T_Cont, typename T_src>
class ExpressionParsing::AccessorHelper< T_Cont, T_src >

Auxiliary class to handle xAOD accessor based xAOD object content access.

Definition at line 27 of file xAODAccessor.h.

Constructor & Destructor Documentation

◆ AccessorHelper()

template<class T_Cont , typename T_src >
ExpressionParsing::AccessorHelper< T_Cont, T_src >::AccessorHelper ( SG::auxid_t  auxid)
inline

Definition at line 29 of file xAODAccessor.h.

Member Function Documentation

◆ get() [1/2]

template<class T_Cont , typename T_src >
T_src ExpressionParsing::AccessorHelper< T_Cont, T_src >::get ( const T_Cont &  cont) const
inline

Get the scalar provided by the container.

Definition at line 38 of file xAODAccessor.h.

38  {
39  return m_accessor( cont );
40  }

◆ get() [2/2]

template<class T_Cont , typename T_src >
T_src ExpressionParsing::AccessorHelper< T_Cont, T_src >::get ( const T_Cont &  cont,
std::size_t  idx 
) const
inline

Get the specified element of the vector provided by the container.

Definition at line 43 of file xAODAccessor.h.

43  {
44  return m_accessor( cont,idx );
45  }

◆ size()

template<class T_Cont , typename T_src >
std::size_t ExpressionParsing::AccessorHelper< T_Cont, T_src >::size ( const T_Cont &  cont) const
inline

Definition at line 33 of file xAODAccessor.h.

33  {
34  return getContainerSize(cont);
35  }

Member Data Documentation

◆ m_accessor

template<class T_Cont , typename T_src >
SG::AuxElement::ConstAccessor<T_src> ExpressionParsing::AccessorHelper< T_Cont, T_src >::m_accessor
private

Definition at line 64 of file xAODAccessor.h.


The documentation for this class was generated from the following file:
SG::AuxTypeRegistry::instance
static AuxTypeRegistry & instance()
Return the singleton registry instance.
Definition: AuxTypeRegistry.cxx:640
dumpTruth.getName
getName
Definition: dumpTruth.py:34
ExpressionParsing::getContainerSize
std::size_t getContainerSize(const T &cont)
Definition: PhysicsAnalysis/CommonTools/ExpressionEvaluation/src/Utils.h:73
LArNewCalib_DelayDump_OFC_Cali.idx
idx
Definition: LArNewCalib_DelayDump_OFC_Cali.py:69
ExpressionParsing::AccessorHelper::m_accessor
SG::AuxElement::ConstAccessor< T_src > m_accessor
Definition: xAODAccessor.h:64