Commit 3c1ae43
committed
Skip ambiguous tracks with an empty BC slice in the event selection QA
This fixes a crash of the event selection QA task on MC AODs.
- An ambiguous track can carry the BC slice (-1, -1), which means it has no
associated BC at all.
- The existing guard only rejected slices at or beyond the end of the BC table,
so (-1, -1) passed it and bc_as().begin().globalIndex() was called on an empty
slice, which segfaults.
- The guard now uses has_bc(), which tests both slice ends for being negative,
as CollisionAssociation.h already does, and checks the upper end as well.
- Reproduced on LHC26a5a_gp_2025_v10 with O2Physics daily-20260729-0000-1, where
the task exits 128; with this change the same file is processed and the QA
histograms are filled.1 parent bb18c43 commit 3c1ae43
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1009 | 1009 | | |
1010 | 1010 | | |
1011 | 1011 | | |
1012 | | - | |
1013 | | - | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
1014 | 1018 | | |
1015 | 1019 | | |
1016 | 1020 | | |
| |||
0 commit comments