16#ifndef ALICEO2_BRACKET_H
17#define ALICEO2_BRACKET_H
20#ifndef GPUCA_ALIGPUCODE
32template <
typename T =
float>
58 void set(
T minv,
T maxv)
noexcept;
79#ifndef GPUCA_ALIGPUCODE
110 return *
this <
other.mMin;
116 return *
this >
other.mMax;
122 return mMin ==
rhs.mMin && mMax ==
rhs.mMax;
128 return !(*
this ==
rhs);
177 return (mMin + mMax) / 2;
233 return t.mMax < mMin ? Below : (t.mMin > mMax ? Above : Inside);
240 return t + tErr < mMin ? Below : (t - tErr > mMax ? Above : Inside);
247 return t < mMin ? Below : (t > mMax ? Above : Inside);
250#ifndef GPUCA_ALIGPUCODE
254 std::stringstream tmp;
255 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
Relation isOutside(T t) const
void set(T minv, T maxv) noexcept
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
void setMax(T v) noexcept
bool operator>(const Bracket< T > &other) const
void setMin(T v) noexcept
D const SVectorGPU< T, D > & rhs
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other