27#ifndef AliceO2_TPC_Sector_H
28#define AliceO2_TPC_Sector_H
85 operator int()
const {
return int(mSector); }
98 bool looped()
const {
return mLoop; }
106 template <
typename T>
109 static const T invangle(
static_cast<T
>(180) /
static_cast<T
>(M_PI * 20.));
111 auto s = (std::atan2(-
y, -
x) +
static_cast<T
>(M_PI)) * invangle;
113 if (
z <
static_cast<T
>(0.)) {
125 template <
typename T>
129 constexpr T invangle{180. / (M_PI * 20.)};
130 constexpr T
offset{M_PI + M_PI / 180. * 10.};
132 auto s =
static_cast<int>((std::atan2(-
y, -
x) +
offset) * invangle) % 18;
134 if (
z <
static_cast<T
>(0.)) {
141 unsigned char mSector{};
Sector & operator=(int sector)
assignment operator with int
static int ToShiftedSector(T x, T y, T z)
unsigned char getSector() const
static Sector getLeft(const Sector s)
bool operator<(const Sector &other) const
smaller operator
bool operator!=(const Sector &other) const
unequal operator
static Sector getRight(const Sector s)
Sector()=default
constructor
static int ToSector(T x, T y, T z)
static constexpr int MAXSECTOR
Sector(unsigned char sec)
bool operator==(const Sector &other) const
comparison operator
GLdouble GLdouble GLdouble z
constexpr double SECPHIWIDTH
constexpr unsigned char SECTORSPERSIDE
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other