Skip to content

Commit c4a53fb

Browse files
committed
[MCH] skip HB decoding when not needed
1 parent ea20137 commit c4a53fb

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,10 @@ void DataDecoder::decodePage(gsl::span<const std::byte> page)
548548
uint32_t linkId;
549549

550550
auto heartBeatHandler = [&](DsElecId dsElecId, uint8_t chip, uint32_t bunchCrossing) {
551+
if (mTimeRecoMode != TimeRecoMode::HBPackets) {
552+
return;
553+
}
554+
551555
auto ds = dsElecId.elinkId();
552556
auto solar = dsElecId.solarId();
553557
uint64_t chipId = getChipId(solar, ds, chip);

0 commit comments

Comments
 (0)