From 931c1012f5e3e815d33465e3b110a2803107f197 Mon Sep 17 00:00:00 2001 From: Stephen Fegan Date: Tue, 24 Sep 2024 15:38:51 +0200 Subject: [PATCH] Fix error on lookup of module index --- src/iact_data/nectarcam_acada_event_decoder_r1v1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iact_data/nectarcam_acada_event_decoder_r1v1.cpp b/src/iact_data/nectarcam_acada_event_decoder_r1v1.cpp index 6482bb49..c6d9fc78 100644 --- a/src/iact_data/nectarcam_acada_event_decoder_r1v1.cpp +++ b/src/iact_data/nectarcam_acada_event_decoder_r1v1.cpp @@ -172,7 +172,7 @@ bool NectarCam_ACADACameraEventDecoder_R1v1::decode( { const auto* mod_data_struct = reinterpret_cast(mod_data_string); - if(imod < static_cast(calin_event->module_index_size()) and + if(imod >= static_cast(calin_event->module_index_size()) or calin_event->module_index(imod) == -1)continue; auto* module_counters = calin_event->add_module_counter();