Skip to content

Commit a1d1852

Browse files
committed
FIX
Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
1 parent f673850 commit a1d1852

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Detectors/ITSMFT/ITS/tracking/src/TrackingInterface.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,12 @@ void ITSTrackingInterface::run(framework::ProcessingContext& pc)
331331
const int iSrc = 0; // take only events from collision generator
332332
const auto eveId2colId = dc->getCollisionIndicesForSource(iSrc);
333333
for (int iEve{0}; iEve < mcReader.getNEvents(iSrc); ++iEve) {
334-
const auto& ir = irs[eveId2colId[iEve]];
334+
const auto colId = eveId2colId.find(iEve);
335+
if (colId == eveId2colId.end()) {
336+
mcReader.releaseTracksForSourceAndEvent(iSrc, iEve);
337+
continue;
338+
}
339+
const auto& ir = irs[colId->second];
335340
if (!ir.isDummy()) {
336341
const auto bc = (ir - irFirstTF).toLong() - roFrameBiasInBC;
337342
if (bc >= 0 && upcPassRanForBC(bc)) {

0 commit comments

Comments
 (0)