27#ifndef AliceO2_TPC_Sector_H
28#define AliceO2_TPC_Sector_H
44 static constexpr int MAXSECTOR = constants::MAXSECTOR;
85 operator int()
const {
return int(mSector); }
98 bool looped()
const {
return mLoop; }
100 double phi()
const {
return (mSector % SECTORSPERSIDE) * SECPHIWIDTH + SECPHIWIDTH / 2.; }
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{};
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual sector
Timeframe settings Average distance in cm of events merged into Randomize distance around average distance of merged events Simulate correct bunch interactions instead of placing only the average number of events A value[n] sets TFlen for[n] collisions in Number of bunches per trainsort Number of bunch trains Instantaneous interaction rate Do not simulate border Total number of collisions to be placed in the interior of all time Do not select random but walk over array of events in stride steps h Event generator settings h configStandalone Use CPU for GPU Force usage of the specified GPU device no CPU fallback Continue processing after an error s
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
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
VectorOfTObjectPtrs other