ATLAS Offline Software
Static Public Member Functions | List of all members
ExpressionParsing::ScalarHelper Class Reference

Auxiliary class to handle scalar like containers (AuxElement). More...

#include <GenAccessor.h>

Collaboration diagram for ExpressionParsing::ScalarHelper:

Static Public Member Functions

template<class T_Dest , class T_Cont , class T_Helper >
static void fillVector (T_Helper &helper, SG::ReadHandle< T_Cont > &handle, std::vector< T_Dest > &result)
 
template<class T_Dest , class T_Cont , class T_Helper >
static T_Dest getScalar (T_Helper &helper, SG::ReadHandle< T_Cont > &handle, const T_Dest &dummy)
 

Detailed Description

Auxiliary class to handle scalar like containers (AuxElement).

Definition at line 19 of file GenAccessor.h.

Member Function Documentation

◆ fillVector()

template<class T_Dest , class T_Cont , class T_Helper >
static void ExpressionParsing::ScalarHelper::fillVector ( T_Helper &  helper,
SG::ReadHandle< T_Cont > &  handle,
std::vector< T_Dest > &  result 
)
inlinestatic

Definition at line 22 of file GenAccessor.h.

22  {
23  result.reserve(1);
24  result.push_back( static_cast<T_Dest>( helper.get( *handle ) ));
25  }

◆ getScalar()

template<class T_Dest , class T_Cont , class T_Helper >
static T_Dest ExpressionParsing::ScalarHelper::getScalar ( T_Helper &  helper,
SG::ReadHandle< T_Cont > &  handle,
const T_Dest &  dummy 
)
inlinestatic

Definition at line 28 of file GenAccessor.h.

28  {
29  (void) dummy;
30  return static_cast<T_Dest>( helper.get( *handle ) );
31  }

The documentation for this class was generated from the following file:
get_generator_info.result
result
Definition: get_generator_info.py:21
runBeamSpotCalibration.helper
helper
Definition: runBeamSpotCalibration.py:112
python.xAODType.dummy
dummy
Definition: xAODType.py:4