From a65974c590195ff233437622b54b9fd7a3920717 Mon Sep 17 00:00:00 2001 From: Alberto Caliva Date: Wed, 29 Nov 2023 10:21:53 +0100 Subject: [PATCH] (try to) fix the track index --- PWGLF/Tasks/nuclei_in_jets.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/PWGLF/Tasks/nuclei_in_jets.cxx b/PWGLF/Tasks/nuclei_in_jets.cxx index 41ce3dd2284..5bddadc987b 100644 --- a/PWGLF/Tasks/nuclei_in_jets.cxx +++ b/PWGLF/Tasks/nuclei_in_jets.cxx @@ -262,9 +262,15 @@ struct nuclei_in_jets { bool containsParticleOfInterest(false); float pt_max(0); + // Track Index Initialization + int i = -1; + // Loop over Reconstructed Tracks for (auto track : tracks) { + // Track Index + i++; + // Track Selection for Jet if (!passedMinimalTrackSelection(track)) continue; @@ -274,7 +280,7 @@ struct nuclei_in_jets { continue; // Track Index - int i = track.globalIndex(); + // int i = track.globalIndex(); // Trigger: Particle of Interest if (isParticleOfInterest(track))