12#ifndef ALICEO2_PHOS_GEOMETRY_H_
13#define ALICEO2_PHOS_GEOMETRY_H_
19#include <RStringView.h>
20#include <TGeoMatrix.h>
100 static short relToAbsId(
char moduleNumber,
int strip,
int cell);
108 static void relPosToRelId(
short module,
float x,
float z,
char* relId);
114 static short relPosToTruId(
char mod,
float x,
float z,
short trigType);
117 static void relPosToAbsId(
char module,
float x,
float z,
short& absId);
120 void local2Global(
char module,
float x,
float z, TVector3& globaPos)
const;
123 bool impactOnPHOS(
const TVector3& vtx,
const TVector3& p,
124 short& module,
float&
z,
float&
x)
const;
132 const std::string&
GetName()
const {
return mGeoName; }
137 static constexpr float CELLSTEP = 2.25;
140 std::array<TGeoHMatrix, 5> mPHOS;
142 std::string mGeoName;
static Geometry * GetInstance(const std::string_view name)
static short relPosToTruId(char mod, float x, float z, short trigType)
const TGeoHMatrix * getAlignmentMatrix(int mod) const
static int getTotalNCells()
static void relPosToAbsId(char module, float x, float z, short &absId)
static void relPosToRelId(short module, float x, float z, char *relId)
void local2Global(char module, float x, float z, TVector3 &globaPos) const
bool impactOnPHOS(const TVector3 &vtx, const TVector3 &p, short &module, float &z, float &x) const
const std::string & GetName() const
static char absIdToModule(short absId)
static int areNeighbours(short absId1, short absId2)
static short truRelToAbsNumbering(const char *relId, short trigType)
static void absIdToRelPosInModule(short absId, float &x, float &z)
static bool relToAbsNumbering(const char *RelId, short &AbsId)
static short relToAbsId(char moduleNumber, int strip, int cell)
Geometry(const Geometry &geom)
Geometry & operator=(const Geometry &rvalue)
static bool truAbsToRelNumbering(short truId, short trigType, char *relid)
static bool absToRelNumbering(short absId, char *relid)
static bool isCellExists(short absId)
static Geometry * GetInstance()
GLuint const GLchar * name
GLdouble GLdouble GLdouble z
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...