You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TRD: CalibratorVdExB: Clang-format on all touched files
This is just a minor patch on all files the previous patches touched.
Mostly comment alignment which IMHO are nicer.
Also some minor touch-ups on comments to allow doxygen to pickup as
proper documentation.
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
Copy file name to clipboardExpand all lines: DataFormats/Detectors/TRD/include/DataFormatsTRD/Constants.h
+59-59Lines changed: 59 additions & 59 deletions
Original file line number
Diff line number
Diff line change
@@ -22,75 +22,75 @@ namespace trd
22
22
{
23
23
namespaceconstants
24
24
{
25
-
constexprintNSECTOR = 18; // the number of sectors
26
-
constexprintNSTACK = 5; // the number of stacks per sector
27
-
constexprintNLAYER = 6; // the number of layers
28
-
constexprintNCHAMBERPERSEC = 30; // the number of chambers per sector
29
-
constexprintNHCPERSEC = 60; // the number of half-chambers per sector
30
-
constexprintMAXCHAMBER = 540; // the maximum number of installed chambers
31
-
constexprintMAXHALFCHAMBER = 1080; // the maximum number of installed half-chambers
32
-
constexprintNCHAMBER = 521; // the number of chambers actually installed
33
-
constexprintNHALFCRU = 72; // the number of half cru (link bundles)
34
-
constexprintNLINKSPERHALFCRU = 15; // the number of links per half cru or cru end point.
35
-
constexprintNLINKSPERCRU = 30; // the number of links per CRU (two CRUs serve one supermodule)
36
-
constexprintNCRU = 36; // the number of CRU we have
37
-
constexprintNFLP = 12; // the number of FLP we have.
38
-
constexprintNCRUPERFLP = 3; // the number of CRU per FLP
39
-
constexprintTRDLINKID = 15; // hard coded link id, specific to TRD
25
+
constexprintNSECTOR = 18; ///< the number of sectors
26
+
constexprintNSTACK = 5; ///< the number of stacks per sector
27
+
constexprintNLAYER = 6; ///< the number of layers
28
+
constexprintNCHAMBERPERSEC = 30; ///< the number of chambers per sector
29
+
constexprintNHCPERSEC = 60; ///< the number of half-chambers per sector
30
+
constexprintMAXCHAMBER = 540; ///< the maximum number of installed chambers
31
+
constexprintMAXHALFCHAMBER = 1080; ///< the maximum number of installed half-chambers
32
+
constexprintNCHAMBER = 521; ///< the number of chambers actually installed
33
+
constexprintNHALFCRU = 72; ///< the number of half cru (link bundles)
34
+
constexprintNLINKSPERHALFCRU = 15; ///< the number of links per half cru or cru end point.
35
+
constexprintNLINKSPERCRU = 30; ///< the number of links per CRU (two CRUs serve one supermodule)
36
+
constexprintNCRU = 36; ///< the number of CRU we have
37
+
constexprintNFLP = 12; ///< the number of FLP we have.
38
+
constexprintNCRUPERFLP = 3; ///< the number of CRU per FLP
39
+
constexprintTRDLINKID = 15; ///< hard coded link id, specific to TRD
40
40
41
-
constexprintNCOLUMN = 144; // the number of pad columns for each chamber
42
-
constexprintNROWC0 = 12; // the number of pad rows for chambers of type C0 (installed stack 0,1,3 and 4)
43
-
constexprintNROWC1 = 16; // the number of pad rows for chambers of type C1 (installed in stack 2)
41
+
constexprintNCOLUMN = 144; ///< the number of pad columns for each chamber
42
+
constexprintNROWC0 = 12; ///< the number of pad rows for chambers of type C0 (installed stack 0,1,3 and 4)
43
+
constexprintNROWC1 = 16; ///< the number of pad rows for chambers of type C1 (installed in stack 2)
44
44
45
-
constexprintNMCMROB = 16; // the number of MCMs per ROB
46
-
constexprintNMCMHCMAX = 64; // the maximum number of MCMs for one half chamber (C1 type)
47
-
constexprintNMCMROBINROW = 4; // the number of MCMs per ROB in row direction
48
-
constexprintNMCMROBINCOL = 4; // the number of MCMs per ROB in column direction
49
-
constexprintNROBC0 = 6; // the number of ROBs per C0 chamber
50
-
constexprintNROBC1 = 8; // the number of ROBs per C1 chamber
51
-
constexprintNADCMCM = 21; // the number of ADC channels per MCM
52
-
constexprintNCOLMCM = 18; // the number of pads per MCM
53
-
constexprintNCPU = 4; // the number of CPUs inside the TRAP chip
54
-
constexprintNCHARGES = 3; // the number of charges per tracklet (Q0/1/2)
45
+
constexprintNMCMROB = 16; ///< the number of MCMs per ROB
46
+
constexprintNMCMHCMAX = 64; ///< the maximum number of MCMs for one half chamber (C1 type)
47
+
constexprintNMCMROBINROW = 4; ///< the number of MCMs per ROB in row direction
48
+
constexprintNMCMROBINCOL = 4; ///< the number of MCMs per ROB in column direction
49
+
constexprintNROBC0 = 6; ///< the number of ROBs per C0 chamber
50
+
constexprintNROBC1 = 8; ///< the number of ROBs per C1 chamber
51
+
constexprintNADCMCM = 21; ///< the number of ADC channels per MCM
52
+
constexprintNCOLMCM = 18; ///< the number of pads per MCM
53
+
constexprintNCPU = 4; ///< the number of CPUs inside the TRAP chip
54
+
constexprintNCHARGES = 3; ///< the number of charges per tracklet (Q0/1/2)
55
55
56
56
// the values below should come out of the TRAP config in the future
57
-
constexprintNBITSTRKLPOS = 11; // number of bits for position in tracklet64 word
58
-
constexprintNBITSTRKLSLOPE = 8; // number of bits for slope in tracklet64 word
59
-
constexprintADDBITSHIFTSLOPE = 1 << 3; // in the TRAP the slope is shifted by 3 additional bits compared to the position
60
-
constexprintPADGRANULARITYTRKLPOS = 40; // tracklet position is stored in units of 1/40 pad
61
-
constexprintPADGRANULARITYTRKLSLOPE = 128; // tracklet deflection is stored in units of 1/128 pad per time bin
62
-
constexprfloatGRANULARITYTRKLPOS = 1.f / PADGRANULARITYTRKLPOS; // granularity of position in tracklet64 word in pad-widths
63
-
constexprfloatGRANULARITYTRKLSLOPE = 1.f / PADGRANULARITYTRKLSLOPE; // granularity of slope in tracklet64 word in pads/timebin
64
-
constexprintADCBASELINE = 10; // baseline in ADC units
57
+
constexprintNBITSTRKLPOS = 11; ///< number of bits for position in tracklet64 word
58
+
constexprintNBITSTRKLSLOPE = 8; ///< number of bits for slope in tracklet64 word
59
+
constexprintADDBITSHIFTSLOPE = 1 << 3; ///< in the TRAP the slope is shifted by 3 additional bits compared to the position
60
+
constexprintPADGRANULARITYTRKLPOS = 40; ///< tracklet position is stored in units of 1/40 pad
61
+
constexprintPADGRANULARITYTRKLSLOPE = 128; ///< tracklet deflection is stored in units of 1/128 pad per time bin
62
+
constexprfloatGRANULARITYTRKLPOS = 1.f / PADGRANULARITYTRKLPOS; ///< granularity of position in tracklet64 word in pad-widths
63
+
constexprfloatGRANULARITYTRKLSLOPE = 1.f / PADGRANULARITYTRKLSLOPE; ///< granularity of slope in tracklet64 word in pads/timebin
64
+
constexprintADCBASELINE = 10; ///< baseline in ADC units
65
65
66
66
// OS: Should this not be flexible for example in case of Kr calib?
67
-
constexprintTIMEBINS = 30; // the number of time bins
68
-
constexprfloatMAXIMPACTANGLE = 25.f; // the maximum impact angle for tracks relative to the TRD detector plane to be considered for vDrift and ExB calibration
69
-
constexprintNBINSANGLEDIFF = 25; // the number of bins for the track angle used for the vDrift and ExB calibration based on the tracking
70
-
constexprdoubleANODEPLANE = 0.0335; // distance of the TRD anode plane from the drift cathodes in [m]
67
+
constexprintTIMEBINS = 30; ///< the number of time bins
68
+
constexprfloatMAXIMPACTANGLE = 25.f; ///< the maximum impact angle for tracks relative to the TRD detector plane to be considered for vDrift and ExB calibration
69
+
constexprintNBINSANGLEDIFF = 25; ///< the number of bins for the track angle used for the vDrift and ExB calibration based on the tracking
70
+
constexprdoubleANODEPLANE = 0.0335; ///< distance of the TRD anode plane from the drift cathodes in [m]
71
71
72
72
// Trigger parameters
73
-
constexprdoubleREADOUT_TIME = 3000; // the time the readout takes, as 30 TB = 3 micro-s.
constexprdoubleBUSY_TIME = READOUT_TIME + DEAD_TIME; ///< the time for which no new trigger can be received in nanoseconds
76
76
77
77
// array size to store incoming half cru payload.
78
-
constexprintHBFBUFFERMAX = 1048576; // max buffer size for data read from a half cru, (all events)
79
-
constexprunsignedintCRUPADDING32 = 0xeeeeeeee; // padding word used in the cru.
80
-
constexprintCHANNELNRNOTRKLT = 23; // this marks channels in the ADC mask which don't contribute to a tracklet
81
-
constexprintNOTRACKLETFIT = 31; // this value is assigned to the fit pointer in case no tracklet is available
82
-
constexprintTRACKLETENDMARKER = 0x10001000; // marker for the end of tracklets in raw data, 2 of these.
83
-
constexprintPADDINGWORD = 0xeeeeeeee; // half-CRU links will be padded with this words to get an even number of 256bit words
84
-
constexprintDIGITENDMARKER = 0x0; // marker for the end of digits in raw data, 2 of these
85
-
constexprintMAXDATAPERLINK32 = 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.
86
-
constexprintMAXDATAPERLINK256 = 1728; // max number of linkwords per cru link. (256bit words)
87
-
constexprintMAXEVENTCOUNTERSEPERATION = 200; // how far apart can subsequent mcmheader event counters be before we flag for concern, used as a sanity check in rawreader.
88
-
constexprintMAXMCMCOUNT = 69120; // at most mcm count maxchamber x nrobc1 nmcmrob
89
-
constexprintMAXLINKERRORHISTOGRAMS = 10; // size of the array holding the link error plots from the raw reader
90
-
constexprintMAXPARSEERRORHISTOGRAMS = 60; // size of the array holding the parsing error plots from the raw reader
constexprintMAXCRUERRORVALUE = 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).
78
+
constexprintHBFBUFFERMAX = 1048576; ///< max buffer size for data read from a half cru, (all events)
79
+
constexprunsignedintCRUPADDING32 = 0xeeeeeeee; ///< padding word used in the cru.
80
+
constexprintCHANNELNRNOTRKLT = 23; ///< this marks channels in the ADC mask which don't contribute to a tracklet
81
+
constexprintNOTRACKLETFIT = 31; ///< this value is assigned to the fit pointer in case no tracklet is available
82
+
constexprintTRACKLETENDMARKER = 0x10001000; ///< marker for the end of tracklets in raw data, 2 of these.
83
+
constexprintPADDINGWORD = 0xeeeeeeee; ///< half-CRU links will be padded with this words to get an even number of 256bit words
84
+
constexprintDIGITENDMARKER = 0x0; ///< marker for the end of digits in raw data, 2 of these
85
+
constexprintMAXDATAPERLINK32 = 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.
86
+
constexprintMAXDATAPERLINK256 = 1728; ///< max number of linkwords per cru link. (256bit words)
87
+
constexprintMAXEVENTCOUNTERSEPERATION = 200; ///< how far apart can subsequent mcmheader event counters be before we flag for concern, used as a sanity check in rawreader.
88
+
constexprintMAXMCMCOUNT = 69120; ///< at most mcm count maxchamber x nrobc1 nmcmrob
89
+
constexprintMAXLINKERRORHISTOGRAMS = 10; ///< size of the array holding the link error plots from the raw reader
90
+
constexprintMAXPARSEERRORHISTOGRAMS = 60; ///< size of the array holding the parsing error plots from the raw reader
constexprintMAXCRUERRORVALUE = 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).
boolmInitDone{false}; ///< flag to avoid creating the TProfiles multiple times
76
-
size_tmMinEntriesTotal; ///< minimum total number of angular deviations (on average ~3 entries per bin for each TRD chamber)
77
-
size_tmMinEntriesChamber; ///< minimum number of angular deviations per chamber for accepting refitted value (~3 per bin)
78
-
boolmEnableOutput; //< enable output of calibration fits and tprofiles in a root file instead of the ccdb
79
-
FitFunctor mFitFunctor; ///< used for minimization procedure
75
+
boolmInitDone{false}; ///< flag to avoid creating the TProfiles multiple times
76
+
size_tmMinEntriesTotal; ///< minimum total number of angular deviations (on average ~3 entries per bin for each TRD chamber)
77
+
size_tmMinEntriesChamber; ///< minimum number of angular deviations per chamber for accepting refitted value (~3 per bin)
78
+
boolmEnableOutput; //< enable output of calibration fits and tprofiles in a root file instead of the ccdb
79
+
FitFunctor mFitFunctor; ///< used for minimization procedure
80
80
std::vector<o2::ccdb::CcdbObjectInfo> mInfoVector; ///< vector of CCDB infos; each element is filled with CCDB description of accompanying CCDB calibration object
81
81
std::vector<o2::trd::CalVdriftExB> mObjectVector; ///< vector of CCDB calibration objects; the extracted vDrift and ExB per chamber for given slot
{"enable-root-output", VariantType::Bool, false, {"output tprofiles and fits to root file"}},
149
149
{"min-entries-chamber", VariantType::Int, 75, {"minimum number of entries per chamber to fit single time slot"}},
150
150
{"min-entries-total", VariantType::Int, 40'500, {"total minimum number of entries to fit single time slot"}}}}; // around 3 entries per bin per chamber
0 commit comments