Skip to content

Commit ca0a1dd

Browse files
committed
Fix in filling empty ROFs 1st entry
1 parent afcf287 commit ca0a1dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Detectors/ITSMFT/common/workflow/src/ClustererSpec.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,12 +165,12 @@ void ClustererDPL<N>::run(ProcessingContext& pc)
165165
}
166166
}
167167
}
168-
int prevFirst{0};
168+
int prevLast{0};
169169
for (auto& rof : expClusRofVec) {
170170
if (rof.getFirstEntry() < 0) {
171-
rof.setFirstEntry(prevFirst);
171+
rof.setFirstEntry(prevLast);
172172
}
173-
prevFirst = rof.getFirstEntry();
173+
prevLast = rof.getFirstEntry() + rof.getNEntries();
174174
}
175175
nROFs = expClusRofVec.size();
176176
pc.outputs().snapshot(Output{Origin, "CLUSTERSROF", iLayer}, expClusRofVec);

0 commit comments

Comments
 (0)