@@ -87,7 +87,7 @@ enum ParsingErrors {
8787 FEEIDBadSector, // RDH is in error, the FEEID.supermodule is not a valid value.
8888 DigitHCHeaderPreTriggerPhaseOOB, // pretrigger phase in Digit HC header has to be less than 12, it is not.
8989 HalfCRUBadBC, // saw a bc below the L0 trigger
90- LastParsingError
90+ TRDLastParsingError // This is to keep QC happy until we can change it there as well.
9191};
9292
9393static std::unordered_map<int , std::string> ParsingErrorsString = {
@@ -146,7 +146,7 @@ static std::unordered_map<int, std::string> ParsingErrorsString = {
146146 {FEEIDBadSector, " FEEID Sector is not valid" },
147147 {DigitHCHeaderPreTriggerPhaseOOB, " Digit Half Chamber Header PreTriggerPhase is out of bounds" },
148148 {HalfCRUBadBC, " HalfCRU has a bad bunchcrossing" },
149- {LastParsingError , " Last Parsing Error" }};
149+ {TRDLastParsingError , " Last Parsing Error" }};
150150
151151// enumerations for the options, saves on having a long parameter list.
152152enum OptionBits {
@@ -189,8 +189,8 @@ class TRDDataCountersPerTimeFrame
189189 std::array<uint16_t , o2::trd::constants::NSECTOR * 60 > mLinkWords {}; // units of 256bits, read from the cru half chamber header
190190 std::array<uint16_t , o2::trd::constants::NSECTOR * 60 > mLinkWordsRead {}; // units of 32 bits the data words read before dumping or finishing
191191 std::array<uint16_t , o2::trd::constants::NSECTOR * 60 > mLinkWordsRejected {}; // units of 32 bits the data dumped due to some or other error
192- std::array<uint16_t , LastParsingError > mParsingErrors {}; // errors in parsing, indexed by enum above of ParsingErrors
193- std::array<uint32_t , o2::trd::constants::NSECTOR * 60 * LastParsingError + LastParsingError > mParsingErrorsByLink {}; // errors in parsing, indexed by enum above of ParsingErrors
192+ std::array<uint16_t , TRDLastParsingError > mParsingErrors {}; // errors in parsing, indexed by enum above of ParsingErrors
193+ std::array<uint32_t , o2::trd::constants::NSECTOR * 60 * TRDLastParsingError + TRDLastParsingError > mParsingErrorsByLink {}; // errors in parsing, indexed by enum above of ParsingErrors
194194 uint16_t mDigitsPerEvent ; // average digits found per event in this timeframe, ignoring the no digit events where there is no calibration trigger.
195195 uint16_t mTrackletsPerEvent ; // average tracklets found per event in this timeframe
196196 double mTimeTaken ; // time taken to process the entire timeframe [ms].
0 commit comments