Skip to content

Commit 021dc61

Browse files
authored
(try to) fix the track index (#4019)
1 parent bd6d679 commit 021dc61

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

PWGLF/Tasks/nuclei_in_jets.cxx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,9 +262,15 @@ struct nuclei_in_jets {
262262
bool containsParticleOfInterest(false);
263263
float pt_max(0);
264264

265+
// Track Index Initialization
266+
int i = -1;
267+
265268
// Loop over Reconstructed Tracks
266269
for (auto track : tracks) {
267270

271+
// Track Index
272+
i++;
273+
268274
// Track Selection for Jet
269275
if (!passedMinimalTrackSelection(track))
270276
continue;
@@ -274,7 +280,7 @@ struct nuclei_in_jets {
274280
continue;
275281

276282
// Track Index
277-
int i = track.globalIndex();
283+
// int i = track.globalIndex();
278284

279285
// Trigger: Particle of Interest
280286
if (isParticleOfInterest(track))

0 commit comments

Comments
 (0)