We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b763b94 commit 28c85c0Copy full SHA for 28c85c0
Detectors/EMCAL/reconstruction/src/AltroDecoder.cxx
@@ -81,7 +81,7 @@ void AltroDecoder::readChannels()
81
82
// decode bunches
83
int currentsample = 0;
84
- while (currentsample < currentchannel.getPayloadSize() && bunchwords.size() > currentsample) {
+ while (currentsample < currentchannel.getPayloadSize() && bunchwords.size() > currentsample + 2) {
85
int bunchlength = bunchwords[currentsample] - 2, // remove words for bunchlength and starttime
86
starttime = bunchwords[currentsample + 1];
87
auto& currentbunch = currentchannel.createBunch(bunchlength, starttime);
0 commit comments