ATLAS Offline Software
Public Member Functions | List of all members
InDet::EmulatedDefects< T_ModuleHelper >::greater Class Reference

Special greater operator which ignores the column group flag in the comparison. More...

#include <EmulatedDefects.h>

Collaboration diagram for InDet::EmulatedDefects< T_ModuleHelper >::greater:

Public Member Functions

bool operator() (KEY_TYPE key_a, KEY_TYPE key_b)
 

Detailed Description

template<class T_ModuleHelper>
class InDet::EmulatedDefects< T_ModuleHelper >::greater

Special greater operator which ignores the column group flag in the comparison.

Definition at line 39 of file EmulatedDefects.h.

Member Function Documentation

◆ operator()()

template<class T_ModuleHelper >
bool InDet::EmulatedDefects< T_ModuleHelper >::greater::operator() ( KEY_TYPE  key_a,
KEY_TYPE  key_b 
)
inline

Definition at line 41 of file EmulatedDefects.h.

41  {
42  if constexpr(s_needMasking) {
43  return (key_a & MASK_FOR_COMPARISON)
44  > (key_b & MASK_FOR_COMPARISON);
45  }
46  else {
47  return key_a
48  > key_b;
49  }
50  }

The documentation for this class was generated from the following file:
InDet::EmulatedDefects::s_needMasking
static constexpr bool s_needMasking
Definition: EmulatedDefects.h:27
InDet::EmulatedDefects::MASK_FOR_COMPARISON
static constexpr unsigned int MASK_FOR_COMPARISON
Definition: EmulatedDefects.h:28