16#ifndef AliceO2_TRD_Constants_H
17#define AliceO2_TRD_Constants_H
constexpr unsigned int CRUPADDING32
padding word used in the cru.
constexpr int NBITSTRKLSLOPE
number of bits for slope in tracklet64 word
constexpr int NMCMROBINCOL
the number of MCMs per ROB in column direction
constexpr int TRACKLETENDMARKER
marker for the end of tracklets in raw data, 2 of these.
constexpr int NROBC0
the number of ROBs per C0 chamber
constexpr int NFLP
the number of FLP we have.
constexpr int FIRSTROW[NSTACK]
first pad row for each stack
constexpr int NROBC1
the number of ROBs per C1 chamber
constexpr int NCHANNELSC1
the number of readout channels per C1 chamber
constexpr int NCRUPERFLP
the number of CRU per FLP
constexpr int MAXDATAPERLINK256
max number of linkwords per cru link. (256bit words)
constexpr int MAXEVENTCOUNTERSEPERATION
how far apart can subsequent mcmheader event counters be before we flag for concern,...
constexpr int DIGITENDMARKER
marker for the end of digits in raw data, 2 of these
constexpr int NLAYER
the number of layers
constexpr float MPVDEDXDEFAULT
default Most Probable Value of TRD dEdx
constexpr int NSECTOR
the number of sectors
constexpr float T0DEFAULT
default value for t0
constexpr unsigned int ETYPECALIBRATIONTRIGGER
CRU Half Chamber header eventtype definition.
constexpr int NHALFCRU
the number of half cru (link bundles)
constexpr int TIMEBINS
the number of time bins
constexpr int MAXMCMCOUNT
at most mcm count maxchamber x nrobc1 nmcmrob
constexpr int NCHANNELSC0
the number of readout channels per C0 chamber
constexpr int NCOLUMN
the number of pad columns for each chamber
constexpr int ADCBASELINE
baseline in ADC units
constexpr int HBFBUFFERMAX
max buffer size for data read from a half cru, (all events)
constexpr double EXBDEFAULT
default value for LorentzAngle
constexpr int TRDLINKID
hard coded link id, specific to TRD
constexpr int NCHANNELSPERSECTOR
then number of readout channels per sector
constexpr int NMCMROB
the number of MCMs per ROB
constexpr int MAXPARSEERRORHISTOGRAMS
size of the array holding the parsing error plots from the raw reader
constexpr float GRANULARITYTRKLSLOPE
granularity of slope in tracklet64 word in pads/timebin
constexpr int NCPU
the number of CPUs inside the TRAP chip
constexpr int NLINKSPERCRU
the number of links per CRU (two CRUs serve one supermodule)
constexpr int MAXLINKERRORHISTOGRAMS
size of the array holding the link error plots from the raw reader
constexpr int NOTRACKLETFIT
this value is assigned to the fit pointer in case no tracklet is available
constexpr int NBITSTRKLPOS
number of bits for position in tracklet64 word
constexpr int PADGRANULARITYTRKLSLOPE
tracklet deflection is stored in units of 1/128 pad per time bin
constexpr int NSTACK
the number of stacks per sector
constexpr int PADGRANULARITYTRKLPOS
tracklet position is stored in units of 1/40 pad
constexpr int NMCMROBINROW
the number of MCMs per ROB in row direction
constexpr int NLINKSPERHALFCRU
the number of links per half cru or cru end point.
constexpr unsigned int ETYPEPHYSICSTRIGGER
CRU Half Chamber header eventtype definition.
constexpr int NROWC0
the number of pad rows for chambers of type C0 (installed in stack 2)
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 ADDBITSHIFTSLOPE
in the TRAP the slope is shifted by 3 additional bits compared to the position
constexpr int PADDINGWORD
half-CRU links will be padded with this words to get an even number of 256bit words
constexpr int MAXCHAMBER
the maximum number of installed chambers
constexpr int NCHAMBERPERSEC
the number of chambers per sector
constexpr int INVALIDPRETRIGGERPHASE
Invalid value for phase, used to signify there is no hcheader.
constexpr int NCHAMBER
the number of chambers actually installed
constexpr int NCHANNELSTOTAL
the total number of readout channels for TRD
constexpr int MAXDATAPERLINK32
max number of 32 bit words per link ((21x12+2+4)*64) 64 mcm, 21 channels, 10 words per channel 2 head...
constexpr float GRANULARITYTRKLPOS
granularity of position in tracklet64 word in pad-widths
constexpr int MAXHALFCHAMBER
the maximum number of installed half-chambers
constexpr double VDRIFTDEFAULT
default value for vDrift
constexpr int NROWC1
the number of pad rows for chambers of type C1 (installed in stacks 0, 1, 3 and 4)
constexpr int NCHARGES
the number of charges per tracklet (Q0/1/2)
constexpr int NCHANNELSPERLAYER
then number of readout channels per layer
constexpr int MAXCRUERRORVALUE
Max possible value for a CRU Halfchamber link error. As of may 2022, can only be 0x0,...
constexpr int NBINSANGLEDIFF
the number of bins for the track angle used for the vDrift and ExB calibration based on the tracking
constexpr float MAXIMPACTANGLE
the maximum impact angle for tracks relative to the TRD detector plane to be considered for vDrift an...
constexpr int NMCMHCMAX
the maximum number of MCMs for one half chamber (C1 type)
constexpr int NCRU
the number of CRU we have
constexpr int NBINSGAINCALIB
number of bins in the charge (Q0+Q1+Q2) histogram for gain calibration
constexpr int NCHANNELSPERROW
the number of readout channels per pad row
constexpr int CHANNELNRNOTRKLT
this marks channels in the ADC mask which don't contribute to a tracklet
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...