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 };