16#ifndef ALICEO2_BRACKET_H
17#define ALICEO2_BRACKET_H
22#ifndef GPUCA_GPUCODE_DEVICE
34template <
typename T =
float>
81#ifndef GPUCA_GPUCODE_DEVICE
112 return *
this <
other.mMin;
118 return *
this >
other.mMax;
124 return mMin ==
rhs.mMin && mMax ==
rhs.mMax;
130 return !(*
this ==
rhs);
179 return (mMin + mMax) / 2;
235 return t.mMax < mMin ? Below : (t.mMin > mMax ? Above : Inside);
242 return t + tErr < mMin ? Below : (t - tErr > mMax ? Above : Inside);
249 return t < mMin ? Below : (t > mMax ? Above : Inside);
252#ifndef GPUCA_GPUCODE_DEVICE
256 std::stringstream tmp;
257 tmp <<
"[" << getMin() <<
":" << getMax() <<
"]";
bool operator<(const Bracket< T > &other) const
bool operator<(T other) const
Bracket(const Bracket< T > &src)=default
Bracket getOverlap(const Bracket< T > &other) const
bool isZeroLength() const
void setMax(T v) GPUnoexcept()
Relation isOutside(T t) const
Relation isOutside(T t, T tErr) const
Bracket & operator=(Bracket< T > &&src)=default
bool operator!=(const Bracket< T > &other) const
Bracket & operator=(const Bracket< T > &src)=default
bool operator==(const Bracket< T > &other) const
Relation isOutside(const Bracket< T > &t) const
Bracket(Bracket< T > &&src)=default
std::string asString() const
bool operator>(T other) const
bool operator>(const Bracket< T > &other) const
void set(T minv, T maxv) GPUnoexcept()
void setMin(T v) GPUnoexcept()
D const SVectorGPU< T, D > & rhs
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other