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 19 of file PndFtsUtility.h.

References max().

20 {
22 }
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:25

◆ PlusIfNotMax()

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

Definition at line 10 of file PndFtsUtility.h.

References max().

11 {
12  if (curr < std::numeric_limits<T>::max()) {
13  return accu + curr;
14  }
15  return accu;
16 }
friend F32vec4 max(const F32vec4 &a, const F32vec4 &b)
Definition: P4_F32vec4.h:25