Skip to content

Commit c4693b8

Browse files
authored
[PWGLF,Trigger] Fix indexing in the nucleiFilter (#10938)
1 parent efb4335 commit c4693b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EventFiltering/PWGLF/nucleiFilter.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,8 @@ struct nucleiFilter {
448448
}
449449

450450
for (const auto& v0 : v0s) {
451-
const auto& posTrack = tracks.rawIteratorAt(v0.posTrackId());
452-
const auto& negTrack = tracks.rawIteratorAt(v0.negTrackId());
451+
const auto& posTrack = v0.posTrack_as<TrackCandidates>();
452+
const auto& negTrack = v0.negTrack_as<TrackCandidates>();
453453
if ((posTrack.itsNCls() < cfgCutNclusITS || posTrack.tpcNClsFound() < cfgCutNclusTPC) &&
454454
(negTrack.itsNCls() < cfgCutNclusITS || negTrack.tpcNClsFound() < cfgCutNclusTPC)) {
455455
continue;

0 commit comments

Comments
 (0)