Skip to content

Commit f4a478c

Browse files
authored
DPL: keep codechecker happy (#14270)
1 parent b0414ad commit f4a478c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

Detectors/CTP/reconstruction/src/RawDataDecoder.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -615,8 +615,9 @@ int RawDataDecoder::checkReadoutConsistentncy(o2::pmr::vector<CTPDigit>& digits,
615615
continue;
616616
}
617617
mClassCountersA[i]++;
618-
if (cls->descriptor == nullptr)
618+
if (cls->descriptor == nullptr) {
619619
continue;
620+
}
620621
uint64_t clsinpmask = cls->descriptor->getInputsMask();
621622
uint64_t diginpmask = digit.CTPInputMask.to_ullong();
622623
if (!((clsinpmask & diginpmask) == clsinpmask)) {
@@ -632,8 +633,9 @@ int RawDataDecoder::checkReadoutConsistentncy(o2::pmr::vector<CTPDigit>& digits,
632633
// if inps => class mask
633634
for (auto const& cls : mCTPConfig.getCTPClasses()) {
634635
// cls.printStream(std::cout);
635-
if (cls.descriptor == nullptr)
636+
if (cls.descriptor == nullptr) {
636637
continue;
638+
}
637639
uint64_t clsinpmask = cls.descriptor->getInputsMask(); // class definition
638640
uint64_t diginpmask = digit.CTPInputMask.to_ullong();
639641
uint64_t digclsmask = digit.CTPClassMask.to_ullong();

Detectors/CTP/workflow/src/RawDecoderSpec.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,19 @@ void RawDecoderSpec::endOfStream(framework::EndOfStreamContext& ec)
7171
std::cout << std::endl;
7272
LOG(info) << " Lost due to the shift:" << mDecoder.getLostDueToShift();
7373
LOG(info) << "Number of missing TF:" << nmiss << std::endl;
74-
if (mDecoder.getErrorIR() || mDecoder.getErrorTCR())
74+
if (mDecoder.getErrorIR() || mDecoder.getErrorTCR()) {
7575
LOG(error) << "# of IR errors:" << mDecoder.getErrorIR() << " TCR errors:" << mDecoder.getErrorTCR() << std::endl;
76+
}
7677
std::array<uint64_t, o2::ctp::CTP_NCLASSES> clsA = mDecoder.getClassCountersA();
7778
std::array<uint64_t, o2::ctp::CTP_NCLASSES> clsB = mDecoder.getClassCountersB();
7879
std::array<uint64_t, o2::ctp::CTP_NCLASSES> clsEA = mDecoder.getClassErrorsA();
7980
std::array<uint64_t, o2::ctp::CTP_NCLASSES> clsEB = mDecoder.getClassErrorsB();
8081

8182
for (int i = 0; i < o2::ctp::CTP_NCLASSES; i++) {
8283
bool print = clsA[i] > 0 || clsB[i] > 0 || clsEA[i] > 0 || clsEB[i] > 0;
83-
if (clsEA[i])
84+
if (clsEA[i]) {
8485
LOG(error) << " Class without inputs:";
86+
}
8587
LOG(important) << "CLASS:" << i << " Cls=>Inp:" << clsA[i] << " Inp=>Cls:" << clsB[i] << " ErrorsCls=>Inps:" << clsEA[i] << " MissingInps=>Cls:" << clsEB[i];
8688
}
8789
}

0 commit comments

Comments
 (0)