Skip to content

Commit ea20137

Browse files
committed
[MCH] removed check of digits time in DataDecoder
This is because the corresponding "Bad digit time" error type has been removed, because it is redundant. The digit time can be checked offline with `digit.getTime() != DataDecoder::tfTimeInvalid`
1 parent 35d9c0f commit ea20137

3 files changed

Lines changed: 0 additions & 17 deletions

File tree

Detectors/MUON/MCH/Raw/Decoder/include/MCHRawDecoder/DataDecoder.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ class DataDecoder
176176
/// Compute the time of all the digits that have been decoded in the current TimeFrame
177177
void computeDigitsTimeBCRst();
178178
void computeDigitsTime();
179-
void checkDigitsTime();
180179

181180
/// Get the vector of digits that have been decoded in the current TimeFrame
182181
const RawDigitVector& getDigits() const { return mDigits; }

Detectors/MUON/MCH/Raw/Decoder/src/DataDecoder.cxx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -812,21 +812,6 @@ void DataDecoder::computeDigitsTimeBCRst()
812812

813813
//_________________________________________________________________________________________________
814814

815-
void DataDecoder::checkDigitsTime()
816-
{
817-
for (auto& digit : mDigits) {
818-
auto& d = digit.digit;
819-
auto& info = digit.info;
820-
auto tfTime = d.getTime();
821-
if (tfTime == DataDecoder::tfTimeInvalid) {
822-
// add invalid digit time error
823-
mErrors.emplace_back(o2::mch::DecoderError(info.solar, info.ds, info.chip, ErrorInvalidDigitTime));
824-
}
825-
}
826-
}
827-
828-
//_________________________________________________________________________________________________
829-
830815
void DataDecoder::computeDigitsTime()
831816
{
832817
switch (mTimeRecoMode) {

Detectors/MUON/MCH/Workflow/src/DataDecoderSpec.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ class DataDecoderTask
243243
}
244244
}
245245
mDecoder->computeDigitsTime();
246-
mDecoder->checkDigitsTime();
247246
auto tEnd = std::chrono::high_resolution_clock::now();
248247
mTimeDecoding += tEnd - tStart;
249248

0 commit comments

Comments
 (0)