12#ifndef ALICEO2_TRD_HELPERMETHODS_HH
13#define ALICEO2_TRD_HELPERMETHODS_HH
18#include <fmt/format.h>
62 std::string
side = (hcid % 2 == 0) ?
"A" :
"B";
119 int side = (hcid % 2 == 0) ? 0 : 1;
120 bool isAside =
false;
196 int stack, chamberIndex;
GLenum GLuint GLint GLint layer
constexpr int NMCMROBINCOL
the number of MCMs per ROB in column direction
constexpr int NROBC1
the number of ROBs per C1 chamber
constexpr int NCHANNELSC1
the number of readout channels per C1 chamber
constexpr int NLAYER
the number of layers
constexpr int NCHANNELSC0
the number of readout channels per C0 chamber
constexpr int NCOLUMN
the number of pad columns for each chamber
constexpr int NCHANNELSPERSECTOR
then number of readout channels per sector
constexpr int NLINKSPERCRU
the number of links per CRU (two CRUs serve one supermodule)
constexpr int NSTACK
the number of stacks per sector
constexpr int NMCMROBINROW
the number of MCMs per ROB in row direction
constexpr int NADCMCM
the number of ADC channels per MCM
constexpr int NHCPERSEC
the number of half-chambers per sector
constexpr int NCOLMCM
the number of pads per MCM
constexpr int NCHAMBERPERSEC
the number of chambers per sector
constexpr int NROWC1
the number of pad rows for chambers of type C1 (installed in stacks 0, 1, 3 and 4)
constexpr int NCHANNELSPERLAYER
then number of readout channels per layer
constexpr int NCHANNELSPERROW
the number of readout channels per pad row
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...
static int getGlobalChannelIndex(int det, int rob, int mcm, int channel)
static int getROBfromPad(int irow, int icol)
static void getPositionFromGlobalChannelIndex(int idx, int &det, int &rob, int &mcm, int &channel)
static void printSectorStackLayerSide(int hcid)
static std::string getSectorStackLayerSide(int hcid)
static int getColSide(int icol)
static int getDetector(int sector, int stack, int layer)
static int getPadRowFromMCM(int irob, int imcm)
static int getLinkIDfromHCID(int hcid)
static int getStack(int det)
static void printSectorStackLayer(int det)
static int getPadColFromADC(int irob, int imcm, int iadc)
static int getHCIDFromLinkID(int link)
static int getLayer(int det)
static int getSector(int det)
static int getMCMfromPad(int irow, int icol)
static int getROBSide(int irob)
static int getORIinSuperModule(int hcid)
static int getChannelIndexInColumn(int rob, int mcm, int channel)