From 5e37dbbfa8fa445302e5acf83f94a880fcf85fbe Mon Sep 17 00:00:00 2001 From: Paolo Andreetto Date: Fri, 21 Apr 2023 15:09:32 +0200 Subject: [PATCH] Shortcut for zero hit --- src/MuonCVXDRealDigitiser.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MuonCVXDRealDigitiser.cc b/src/MuonCVXDRealDigitiser.cc index 74d6900..ae17258 100644 --- a/src/MuonCVXDRealDigitiser.cc +++ b/src/MuonCVXDRealDigitiser.cc @@ -327,7 +327,9 @@ void MuonCVXDRealDigitiser::processEvent(LCEvent * evt) if (STHcol == nullptr or STHcol->getNumberOfElements() == 0) { streamlog_out(MESSAGE) << "Number of produced hits: " << THcol->getNumberOfElements() << std::endl; + return; } + std::string encoder_str { STHcol->getParameters().getStringVal(lcio::LCIO::CellIDEncoding) }; CellIDDecoder cellid_decoder { encoder_str };