Project
Loading...
Searching...
No Matches
o2::trd::constants Namespace Reference

Variables

constexpr int NSECTOR = 18
 the number of sectors
 
constexpr int NSTACK = 5
 the number of stacks per sector
 
constexpr int NLAYER = 6
 the number of layers
 
constexpr int NCHAMBERPERSEC = 30
 the number of chambers per sector
 
constexpr int NHCPERSEC = 60
 the number of half-chambers per sector
 
constexpr int MAXCHAMBER = 540
 the maximum number of installed chambers
 
constexpr int MAXHALFCHAMBER = 1080
 the maximum number of installed half-chambers
 
constexpr int NCHAMBER = 521
 the number of chambers actually installed
 
constexpr int NHALFCRU = 72
 the number of half cru (link bundles)
 
constexpr int NLINKSPERHALFCRU = 15
 the number of links per half cru or cru end point.
 
constexpr int NLINKSPERCRU = 30
 the number of links per CRU (two CRUs serve one supermodule)
 
constexpr int NCRU = 36
 the number of CRU we have
 
constexpr int NFLP = 12
 the number of FLP we have.
 
constexpr int NCRUPERFLP = 3
 the number of CRU per FLP
 
constexpr int TRDLINKID = 15
 hard coded link id, specific to TRD
 
constexpr int NCOLUMN = 144
 the number of pad columns for each chamber
 
constexpr int NROWC0 = 12
 the number of pad rows for chambers of type C0 (installed in stack 2)
 
constexpr int NROWC1 = 16
 the number of pad rows for chambers of type C1 (installed in stacks 0, 1, 3 and 4)
 
constexpr int FIRSTROW [NSTACK] = {0, 16, 32, 44, 60}
 first pad row for each stack
 
constexpr int NMCMROB = 16
 the number of MCMs per ROB
 
constexpr int NMCMHCMAX = 64
 the maximum number of MCMs for one half chamber (C1 type)
 
constexpr int NMCMROBINROW = 4
 the number of MCMs per ROB in row direction
 
constexpr int NMCMROBINCOL = 4
 the number of MCMs per ROB in column direction
 
constexpr int NROBC0 = 6
 the number of ROBs per C0 chamber
 
constexpr int NROBC1 = 8
 the number of ROBs per C1 chamber
 
constexpr int NADCMCM = 21
 the number of ADC channels per MCM
 
constexpr int NCOLMCM = 18
 the number of pads per MCM
 
constexpr int NCHANNELSPERROW = NMCMROBINCOL * 2 * NADCMCM
 the number of readout channels per pad row
 
constexpr int NCHANNELSC0 = NROWC0 * NCHANNELSPERROW
 the number of readout channels per C0 chamber
 
constexpr int NCHANNELSC1 = NROWC1 * NCHANNELSPERROW
 the number of readout channels per C1 chamber
 
constexpr int NCHANNELSTOTAL = NSECTOR * NLAYER * (NSTACK - 1) * NCHANNELSC1 + NSECTOR * NLAYER * NCHANNELSC0
 the total number of readout channels for TRD
 
constexpr int NCHANNELSPERSECTOR = NCHANNELSTOTAL / NSECTOR
 then number of readout channels per sector
 
constexpr int NCHANNELSPERLAYER = NCHANNELSPERSECTOR / NLAYER
 then number of readout channels per layer
 
constexpr int NCPU = 4
 the number of CPUs inside the TRAP chip
 
constexpr int NCHARGES = 3
 the number of charges per tracklet (Q0/1/2)
 
constexpr int NBITSTRKLPOS = 11
 number of bits for position in tracklet64 word
 
constexpr int NBITSTRKLSLOPE = 8
 number of bits for slope in tracklet64 word
 
constexpr int ADDBITSHIFTSLOPE = 1 << 3
 in the TRAP the slope is shifted by 3 additional bits compared to the position
 
constexpr int PADGRANULARITYTRKLPOS = 40
 tracklet position is stored in units of 1/40 pad
 
constexpr int PADGRANULARITYTRKLSLOPE = 128
 tracklet deflection is stored in units of 1/128 pad per time bin
 
constexpr float GRANULARITYTRKLPOS = 1.f / PADGRANULARITYTRKLPOS
 granularity of position in tracklet64 word in pad-widths
 
constexpr float GRANULARITYTRKLSLOPE = 1.f / PADGRANULARITYTRKLSLOPE
 granularity of slope in tracklet64 word in pads/timebin
 
constexpr int ADCBASELINE = 10
 baseline in ADC units
 
constexpr int TIMEBINS = 30
 the number of time bins
 
constexpr float MAXIMPACTANGLE = 25.f
 the maximum impact angle for tracks relative to the TRD detector plane to be considered for vDrift and ExB calibration
 
constexpr int NBINSANGLEDIFF = 25
 the number of bins for the track angle used for the vDrift and ExB calibration based on the tracking
 
constexpr double VDRIFTDEFAULT = 1.546
 default value for vDrift
 
constexpr double EXBDEFAULT = 0.0
 default value for LorentzAngle
 
constexpr int NBINSGAINCALIB = 320
 number of bins in the charge (Q0+Q1+Q2) histogram for gain calibration
 
constexpr float MPVDEDXDEFAULT = 42.
 default Most Probable Value of TRD dEdx
 
constexpr float T0DEFAULT = 1.2
 default value for t0
 
constexpr int HBFBUFFERMAX = 1048576
 max buffer size for data read from a half cru, (all events)
 
constexpr unsigned int CRUPADDING32 = 0xeeeeeeee
 padding word used in the cru.
 
constexpr int CHANNELNRNOTRKLT = 23
 this marks channels in the ADC mask which don't contribute to a tracklet
 
constexpr int NOTRACKLETFIT = 31
 this value is assigned to the fit pointer in case no tracklet is available
 
constexpr int TRACKLETENDMARKER = 0x10001000
 marker for the end of tracklets in raw data, 2 of these.
 
constexpr int PADDINGWORD = 0xeeeeeeee
 half-CRU links will be padded with this words to get an even number of 256bit words
 
constexpr int DIGITENDMARKER = 0x0
 marker for the end of digits in raw data, 2 of these
 
constexpr int MAXDATAPERLINK32 = 13824
 max number of 32 bit words per link ((21x12+2+4)*64) 64 mcm, 21 channels, 10 words per channel 2 header words(DigitMCMHeader DigitMCMADCmask) 4 words for tracklets.
 
constexpr int MAXDATAPERLINK256 = 1728
 max number of linkwords per cru link. (256bit words)
 
constexpr int MAXEVENTCOUNTERSEPERATION = 200
 how far apart can subsequent mcmheader event counters be before we flag for concern, used as a sanity check in rawreader.
 
constexpr int MAXMCMCOUNT = 69120
 at most mcm count maxchamber x nrobc1 nmcmrob
 
constexpr int MAXLINKERRORHISTOGRAMS = 10
 size of the array holding the link error plots from the raw reader
 
constexpr int MAXPARSEERRORHISTOGRAMS = 60
 size of the array holding the parsing error plots from the raw reader
 
constexpr unsigned int ETYPEPHYSICSTRIGGER = 0x2
 CRU Half Chamber header eventtype definition.
 
constexpr unsigned int ETYPECALIBRATIONTRIGGER = 0x3
 CRU Half Chamber header eventtype definition.
 
constexpr int MAXCRUERRORVALUE = 0x2
 Max possible value for a CRU Halfchamber link error. As of may 2022, can only be 0x0, 0x1, and 0x2, at least that is all so far(may2022).
 
constexpr int INVALIDPRETRIGGERPHASE = 0xf
 Invalid value for phase, used to signify there is no hcheader.
 

Variable Documentation

◆ ADCBASELINE

constexpr int o2::trd::constants::ADCBASELINE = 10
constexpr

baseline in ADC units

Definition at line 71 of file Constants.h.

◆ ADDBITSHIFTSLOPE

constexpr int o2::trd::constants::ADDBITSHIFTSLOPE = 1 << 3
constexpr

in the TRAP the slope is shifted by 3 additional bits compared to the position

Definition at line 66 of file Constants.h.

◆ CHANNELNRNOTRKLT

constexpr int o2::trd::constants::CHANNELNRNOTRKLT = 23
constexpr

this marks channels in the ADC mask which don't contribute to a tracklet

Definition at line 86 of file Constants.h.

◆ CRUPADDING32

constexpr unsigned int o2::trd::constants::CRUPADDING32 = 0xeeeeeeee
constexpr

padding word used in the cru.

Definition at line 85 of file Constants.h.

◆ DIGITENDMARKER

constexpr int o2::trd::constants::DIGITENDMARKER = 0x0
constexpr

marker for the end of digits in raw data, 2 of these

Definition at line 90 of file Constants.h.

◆ ETYPECALIBRATIONTRIGGER

constexpr unsigned int o2::trd::constants::ETYPECALIBRATIONTRIGGER = 0x3
constexpr

CRU Half Chamber header eventtype definition.

Definition at line 98 of file Constants.h.

◆ ETYPEPHYSICSTRIGGER

constexpr unsigned int o2::trd::constants::ETYPEPHYSICSTRIGGER = 0x2
constexpr

CRU Half Chamber header eventtype definition.

Definition at line 97 of file Constants.h.

◆ EXBDEFAULT

constexpr double o2::trd::constants::EXBDEFAULT = 0.0
constexpr

default value for LorentzAngle

Definition at line 78 of file Constants.h.

◆ FIRSTROW

constexpr int o2::trd::constants::FIRSTROW[NSTACK] = {0, 16, 32, 44, 60}
constexpr

first pad row for each stack

Definition at line 44 of file Constants.h.

◆ GRANULARITYTRKLPOS

constexpr float o2::trd::constants::GRANULARITYTRKLPOS = 1.f / PADGRANULARITYTRKLPOS
constexpr

granularity of position in tracklet64 word in pad-widths

Definition at line 69 of file Constants.h.

◆ GRANULARITYTRKLSLOPE

constexpr float o2::trd::constants::GRANULARITYTRKLSLOPE = 1.f / PADGRANULARITYTRKLSLOPE
constexpr

granularity of slope in tracklet64 word in pads/timebin

Definition at line 70 of file Constants.h.

◆ HBFBUFFERMAX

constexpr int o2::trd::constants::HBFBUFFERMAX = 1048576
constexpr

max buffer size for data read from a half cru, (all events)

Definition at line 84 of file Constants.h.

◆ INVALIDPRETRIGGERPHASE

constexpr int o2::trd::constants::INVALIDPRETRIGGERPHASE = 0xf
constexpr

Invalid value for phase, used to signify there is no hcheader.

Definition at line 100 of file Constants.h.

◆ MAXCHAMBER

constexpr int o2::trd::constants::MAXCHAMBER = 540
constexpr

the maximum number of installed chambers

Definition at line 30 of file Constants.h.

◆ MAXCRUERRORVALUE

constexpr int o2::trd::constants::MAXCRUERRORVALUE = 0x2
constexpr

Max possible value for a CRU Halfchamber link error. As of may 2022, can only be 0x0, 0x1, and 0x2, at least that is all so far(may2022).

Definition at line 99 of file Constants.h.

◆ MAXDATAPERLINK256

constexpr int o2::trd::constants::MAXDATAPERLINK256 = 1728
constexpr

max number of linkwords per cru link. (256bit words)

Definition at line 92 of file Constants.h.

◆ MAXDATAPERLINK32

constexpr int o2::trd::constants::MAXDATAPERLINK32 = 13824
constexpr

max number of 32 bit words per link ((21x12+2+4)*64) 64 mcm, 21 channels, 10 words per channel 2 header words(DigitMCMHeader DigitMCMADCmask) 4 words for tracklets.

Definition at line 91 of file Constants.h.

◆ MAXEVENTCOUNTERSEPERATION

constexpr int o2::trd::constants::MAXEVENTCOUNTERSEPERATION = 200
constexpr

how far apart can subsequent mcmheader event counters be before we flag for concern, used as a sanity check in rawreader.

Definition at line 93 of file Constants.h.

◆ MAXHALFCHAMBER

constexpr int o2::trd::constants::MAXHALFCHAMBER = 1080
constexpr

the maximum number of installed half-chambers

Definition at line 31 of file Constants.h.

◆ MAXIMPACTANGLE

constexpr float o2::trd::constants::MAXIMPACTANGLE = 25.f
constexpr

the maximum impact angle for tracks relative to the TRD detector plane to be considered for vDrift and ExB calibration

Definition at line 75 of file Constants.h.

◆ MAXLINKERRORHISTOGRAMS

constexpr int o2::trd::constants::MAXLINKERRORHISTOGRAMS = 10
constexpr

size of the array holding the link error plots from the raw reader

Definition at line 95 of file Constants.h.

◆ MAXMCMCOUNT

constexpr int o2::trd::constants::MAXMCMCOUNT = 69120
constexpr

at most mcm count maxchamber x nrobc1 nmcmrob

Definition at line 94 of file Constants.h.

◆ MAXPARSEERRORHISTOGRAMS

constexpr int o2::trd::constants::MAXPARSEERRORHISTOGRAMS = 60
constexpr

size of the array holding the parsing error plots from the raw reader

Definition at line 96 of file Constants.h.

◆ MPVDEDXDEFAULT

constexpr float o2::trd::constants::MPVDEDXDEFAULT = 42.
constexpr

default Most Probable Value of TRD dEdx

Definition at line 80 of file Constants.h.

◆ NADCMCM

constexpr int o2::trd::constants::NADCMCM = 21
constexpr

the number of ADC channels per MCM

Definition at line 52 of file Constants.h.

◆ NBINSANGLEDIFF

constexpr int o2::trd::constants::NBINSANGLEDIFF = 25
constexpr

the number of bins for the track angle used for the vDrift and ExB calibration based on the tracking

Definition at line 76 of file Constants.h.

◆ NBINSGAINCALIB

constexpr int o2::trd::constants::NBINSGAINCALIB = 320
constexpr

number of bins in the charge (Q0+Q1+Q2) histogram for gain calibration

Definition at line 79 of file Constants.h.

◆ NBITSTRKLPOS

constexpr int o2::trd::constants::NBITSTRKLPOS = 11
constexpr

number of bits for position in tracklet64 word

Definition at line 64 of file Constants.h.

◆ NBITSTRKLSLOPE

constexpr int o2::trd::constants::NBITSTRKLSLOPE = 8
constexpr

number of bits for slope in tracklet64 word

Definition at line 65 of file Constants.h.

◆ NCHAMBER

constexpr int o2::trd::constants::NCHAMBER = 521
constexpr

the number of chambers actually installed

Definition at line 32 of file Constants.h.

◆ NCHAMBERPERSEC

constexpr int o2::trd::constants::NCHAMBERPERSEC = 30
constexpr

the number of chambers per sector

Definition at line 28 of file Constants.h.

◆ NCHANNELSC0

constexpr int o2::trd::constants::NCHANNELSC0 = NROWC0 * NCHANNELSPERROW
constexpr

the number of readout channels per C0 chamber

Definition at line 55 of file Constants.h.

◆ NCHANNELSC1

constexpr int o2::trd::constants::NCHANNELSC1 = NROWC1 * NCHANNELSPERROW
constexpr

the number of readout channels per C1 chamber

Definition at line 56 of file Constants.h.

◆ NCHANNELSPERLAYER

constexpr int o2::trd::constants::NCHANNELSPERLAYER = NCHANNELSPERSECTOR / NLAYER
constexpr

then number of readout channels per layer

Definition at line 59 of file Constants.h.

◆ NCHANNELSPERROW

constexpr int o2::trd::constants::NCHANNELSPERROW = NMCMROBINCOL * 2 * NADCMCM
constexpr

the number of readout channels per pad row

Definition at line 54 of file Constants.h.

◆ NCHANNELSPERSECTOR

constexpr int o2::trd::constants::NCHANNELSPERSECTOR = NCHANNELSTOTAL / NSECTOR
constexpr

then number of readout channels per sector

Definition at line 58 of file Constants.h.

◆ NCHANNELSTOTAL

constexpr int o2::trd::constants::NCHANNELSTOTAL = NSECTOR * NLAYER * (NSTACK - 1) * NCHANNELSC1 + NSECTOR * NLAYER * NCHANNELSC0
constexpr

the total number of readout channels for TRD

Definition at line 57 of file Constants.h.

◆ NCHARGES

constexpr int o2::trd::constants::NCHARGES = 3
constexpr

the number of charges per tracklet (Q0/1/2)

Definition at line 61 of file Constants.h.

◆ NCOLMCM

constexpr int o2::trd::constants::NCOLMCM = 18
constexpr

the number of pads per MCM

Definition at line 53 of file Constants.h.

◆ NCOLUMN

constexpr int o2::trd::constants::NCOLUMN = 144
constexpr

the number of pad columns for each chamber

Definition at line 41 of file Constants.h.

◆ NCPU

constexpr int o2::trd::constants::NCPU = 4
constexpr

the number of CPUs inside the TRAP chip

Definition at line 60 of file Constants.h.

◆ NCRU

constexpr int o2::trd::constants::NCRU = 36
constexpr

the number of CRU we have

Definition at line 36 of file Constants.h.

◆ NCRUPERFLP

constexpr int o2::trd::constants::NCRUPERFLP = 3
constexpr

the number of CRU per FLP

Definition at line 38 of file Constants.h.

◆ NFLP

constexpr int o2::trd::constants::NFLP = 12
constexpr

the number of FLP we have.

Definition at line 37 of file Constants.h.

◆ NHALFCRU

constexpr int o2::trd::constants::NHALFCRU = 72
constexpr

the number of half cru (link bundles)

Definition at line 33 of file Constants.h.

◆ NHCPERSEC

constexpr int o2::trd::constants::NHCPERSEC = 60
constexpr

the number of half-chambers per sector

Definition at line 29 of file Constants.h.

◆ NLAYER

constexpr int o2::trd::constants::NLAYER = 6
constexpr

the number of layers

Definition at line 27 of file Constants.h.

◆ NLINKSPERCRU

constexpr int o2::trd::constants::NLINKSPERCRU = 30
constexpr

the number of links per CRU (two CRUs serve one supermodule)

Definition at line 35 of file Constants.h.

◆ NLINKSPERHALFCRU

constexpr int o2::trd::constants::NLINKSPERHALFCRU = 15
constexpr

the number of links per half cru or cru end point.

Definition at line 34 of file Constants.h.

◆ NMCMHCMAX

constexpr int o2::trd::constants::NMCMHCMAX = 64
constexpr

the maximum number of MCMs for one half chamber (C1 type)

Definition at line 47 of file Constants.h.

◆ NMCMROB

constexpr int o2::trd::constants::NMCMROB = 16
constexpr

the number of MCMs per ROB

Definition at line 46 of file Constants.h.

◆ NMCMROBINCOL

constexpr int o2::trd::constants::NMCMROBINCOL = 4
constexpr

the number of MCMs per ROB in column direction

Definition at line 49 of file Constants.h.

◆ NMCMROBINROW

constexpr int o2::trd::constants::NMCMROBINROW = 4
constexpr

the number of MCMs per ROB in row direction

Definition at line 48 of file Constants.h.

◆ NOTRACKLETFIT

constexpr int o2::trd::constants::NOTRACKLETFIT = 31
constexpr

this value is assigned to the fit pointer in case no tracklet is available

Definition at line 87 of file Constants.h.

◆ NROBC0

constexpr int o2::trd::constants::NROBC0 = 6
constexpr

the number of ROBs per C0 chamber

Definition at line 50 of file Constants.h.

◆ NROBC1

constexpr int o2::trd::constants::NROBC1 = 8
constexpr

the number of ROBs per C1 chamber

Definition at line 51 of file Constants.h.

◆ NROWC0

constexpr int o2::trd::constants::NROWC0 = 12
constexpr

the number of pad rows for chambers of type C0 (installed in stack 2)

Definition at line 42 of file Constants.h.

◆ NROWC1

constexpr int o2::trd::constants::NROWC1 = 16
constexpr

the number of pad rows for chambers of type C1 (installed in stacks 0, 1, 3 and 4)

Definition at line 43 of file Constants.h.

◆ NSECTOR

constexpr int o2::trd::constants::NSECTOR = 18
constexpr

the number of sectors

Definition at line 25 of file Constants.h.

◆ NSTACK

constexpr int o2::trd::constants::NSTACK = 5
constexpr

the number of stacks per sector

Definition at line 26 of file Constants.h.

◆ PADDINGWORD

constexpr int o2::trd::constants::PADDINGWORD = 0xeeeeeeee
constexpr

half-CRU links will be padded with this words to get an even number of 256bit words

Definition at line 89 of file Constants.h.

◆ PADGRANULARITYTRKLPOS

constexpr int o2::trd::constants::PADGRANULARITYTRKLPOS = 40
constexpr

tracklet position is stored in units of 1/40 pad

Definition at line 67 of file Constants.h.

◆ PADGRANULARITYTRKLSLOPE

constexpr int o2::trd::constants::PADGRANULARITYTRKLSLOPE = 128
constexpr

tracklet deflection is stored in units of 1/128 pad per time bin

Definition at line 68 of file Constants.h.

◆ T0DEFAULT

constexpr float o2::trd::constants::T0DEFAULT = 1.2
constexpr

default value for t0

Definition at line 81 of file Constants.h.

◆ TIMEBINS

constexpr int o2::trd::constants::TIMEBINS = 30
constexpr

the number of time bins

Definition at line 74 of file Constants.h.

◆ TRACKLETENDMARKER

constexpr int o2::trd::constants::TRACKLETENDMARKER = 0x10001000
constexpr

marker for the end of tracklets in raw data, 2 of these.

Definition at line 88 of file Constants.h.

◆ TRDLINKID

constexpr int o2::trd::constants::TRDLINKID = 15
constexpr

hard coded link id, specific to TRD

Definition at line 39 of file Constants.h.

◆ VDRIFTDEFAULT

constexpr double o2::trd::constants::VDRIFTDEFAULT = 1.546
constexpr

default value for vDrift

Definition at line 77 of file Constants.h.