ATLAS Offline Software
Public Member Functions | Private Types | Private Attributes | List of all members
InDetGNNHardScatterSelection::internal::VertexVarGetterNoDefault< T > Class Template Reference

#include <DataPrepUtilities.h>

Collaboration diagram for InDetGNNHardScatterSelection::internal::VertexVarGetterNoDefault< T >:

Public Member Functions

 VertexVarGetterNoDefault (const std::string &name)
 
NamedVar operator() (const SG::AuxElement &btag) const
 

Private Types

typedef SG::AuxElement AE
 

Private Attributes

AE::ConstAccessor< T > m_getter
 
std::string m_name
 

Detailed Description

template<typename T>
class InDetGNNHardScatterSelection::internal::VertexVarGetterNoDefault< T >

Definition at line 87 of file InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/DataPrepUtilities.h.

Member Typedef Documentation

◆ AE

Constructor & Destructor Documentation

◆ VertexVarGetterNoDefault()

template<typename T >
InDetGNNHardScatterSelection::internal::VertexVarGetterNoDefault< T >::VertexVarGetterNoDefault ( const std::string &  name)
inline

Member Function Documentation

◆ operator()()

template<typename T >
NamedVar InDetGNNHardScatterSelection::internal::VertexVarGetterNoDefault< T >::operator() ( const SG::AuxElement btag) const
inline

Definition at line 98 of file InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/DataPrepUtilities.h.

98  {
99  T ret_value = m_getter(btag);
100  if constexpr (std::is_floating_point<T>::value) {
101  if (std::isnan(ret_value)) {
102  throw std::runtime_error(
103  "Found NAN value for '" + m_name + "'.");
104  }
105  }
106  return {m_name, ret_value};
107  }

Member Data Documentation

◆ m_getter

◆ m_name

template<typename T >
std::string InDetGNNHardScatterSelection::internal::VertexVarGetterNoDefault< T >::m_name
private

The documentation for this class was generated from the following file:
athena.value
value
Definition: athena.py:124
InDetGNNHardScatterSelection::internal::VertexVarGetterNoDefault::m_name
std::string m_name
Definition: InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/DataPrepUtilities.h:91
InDetGNNHardScatterSelection::internal::VertexVarGetterNoDefault::m_getter
AE::ConstAccessor< T > m_getter
Definition: InnerDetector/InDetRecTools/InDetGNNHardScatterSelection/InDetGNNHardScatterSelection/DataPrepUtilities.h:90
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35