PandaRoot
PndFtsTrackFinder::PndFtsUtility Namespace Reference

Functions

template<typename T >
PlusIfNotMax (T accu, T curr)
 
template<typename T >
bool IfNotMax (const T x)
 

Function Documentation

◆ IfNotMax()

template<typename T >
bool PndFtsTrackFinder::PndFtsUtility::IfNotMax ( const T  x)

Definition at line 31 of file PndFtsUtility.h.

References max().

32 {
34 }
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:37

◆ PlusIfNotMax()

template<typename T >
T PndFtsTrackFinder::PndFtsUtility::PlusIfNotMax ( accu,
curr 
)

Definition at line 22 of file PndFtsUtility.h.

References max().

23 {
24  if (curr < std::numeric_limits<T>::max()) {
25  return accu + curr;
26  }
27  return accu;
28 }
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:37