File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -832,20 +832,22 @@ struct Omega2012Analysis {
832832 if (!casctopCut (xi))
833833 continue ;
834834
835- // Add xi daughter track IDs (proton, pion, bachelor pion)
836- usedTrackIds.insert (xi.posTrackId ());
837- usedTrackIds.insert (xi.negTrackId ());
838- usedTrackIds.insert (xi.bachTrackId ());
835+ // Add xi daughter track IDs from cascadeIndices array (ordered: positive, negative, bachelor)
836+ auto cascIndices = xi.cascadeIndices ();
837+ usedTrackIds.insert (cascIndices[0 ]); // positive track
838+ usedTrackIds.insert (cascIndices[1 ]); // negative track
839+ usedTrackIds.insert (cascIndices[2 ]); // bachelor track
839840 }
840841
841842 // Collect track IDs from v0s
842843 for (const auto & v0 : v0s) {
843844 if (!v0CutEnhanced (collision, v0))
844845 continue ;
845846
846- // Add v0 daughter track IDs (positive and negative tracks)
847- usedTrackIds.insert (v0.posTrackId ());
848- usedTrackIds.insert (v0.negTrackId ());
847+ // Add v0 daughter track IDs from indices array
848+ auto v0Indices = v0.indices ();
849+ usedTrackIds.insert (v0Indices[0 ]); // positive track
850+ usedTrackIds.insert (v0Indices[1 ]); // negative track
849851 }
850852
851853 // First loop: xi + pion to check xi1530 mass window
You can’t perform that action at this time.
0 commit comments