Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 40 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 42 of file EmulatedDefects.h.

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

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