11 #ifndef SCT_MonitoringNumbers_H
12 #define SCT_MonitoringNumbers_H
26 return (becVal/2) + 1;
54 enum CategoryErrors {
MASKEDLINKALL=0,
SUMMARY,
BADERR,
LINKLEVEL,
RODLEVEL,
MASKEDCHIP,
BYTESTREAMPARSEERROR,
TIMEOUTERROR,
BCIDERROR,
LVL1IDERROR,
PREAMBLEERROR,
FORMATTERERROR,
TRAILERERROR,
TRAILEROVERFLOWERROR,
HEADERTRAILERLIMITERROR,
ABCDERROR,
RAWERROR,
MASKEDLINK,
RODCLOCKERROR,
TRUNCATEDROD,
ROBFRAGMENTERROR,
MISSINGLINKHEADERERROR,
MASKEDROD,
ABCDERROR_CHIP0,
ABCDERROR_CHIP1,
ABCDERROR_CHIP2,
ABCDERROR_CHIP3,
ABCDERROR_CHIP4,
ABCDERROR_CHIP5,
ABCDERROR_ERROR1,
ABCDERROR_ERROR2,
ABCDERROR_ERROR4,
TEMPMASKEDCHIP0,
TEMPMASKEDCHIP1,
TEMPMASKEDCHIP2,
TEMPMASKEDCHIP3,
TEMPMASKEDCHIP4,
TEMPMASKEDCHIP5,
ABCDERROR_ERROR7,
ABCDERROR_INVALID,
RODSIMULATEDDATA,
N_ERRCATEGORY};
56 static const std::vector<std::string> CategoryErrorsNames = {
"MaskedLinkALL",
"Errors",
"BadErrors",
"LinkLevelErrors",
"RODLevelErrors",
"MaskedChipALL",
"ByteStreamParseError",
"TimeOutError",
"BCIDError",
"LVL1IDError",
"PreambleError",
"FormatterError",
"TrailerError",
"TrailerOverflowError",
"HeaderTrailerLimitError",
"ABCDError",
"RawError",
"MaskedLink",
"RODClockError",
"TruncatedROD",
"ROBFragmentError",
"MissingLinkHeaderError",
"MaskedROD",
"ABCDError_Chip0",
"ABCDError_Chip1",
"ABCDError_Chip2",
"ABCDError_Chip3",
"ABCDError_Chip4",
"ABCDError_Chip5",
"ABCDError_Error1",
"ABCDError_Error2",
"ABCDError_Error4",
"TempMaskedChip0",
"TempMaskedChip1",
"TempMaskedChip2",
"TempMaskedChip3",
"TempMaskedChip4",
"TempMaskedChip5",
"ABCDError_Error7",
"ABCDError_Invalid",
"RODSimulatedData"};
80 static const std::vector<TString> layerName = {
" disk ",
" layer ",
" disk "};
81 static const std::vector<TString> subDetName = {
"Endcap C",
"Barrel",
"Endcap A",
"General"};
82 static const std::vector<TString> subDetNameShort = {
"EC",
"B",
"EA",
"ALL"};
84 static const long NBINS_LBs = 3000;
86 static const std::vector<std::string> coverageVarNames = {
89 "WithNoBadLinkLevelError",
90 "WithNoBadRODLevelError",
93 "OfLinksWithNoBadProblem"
101 if (
layer<2)
return 384;
102 else if (
layer<4)
return 480;
103 else if (
layer<6)
return 576;
104 else if (
layer<8)
return 672;
107 if (
layer<2)
return 92;
108 else if (
layer<12)
return 132;
109 else if (
layer<16)
return 92;
110 else if (
layer<18)
return 52;