Skip to content

Add method isFromRadDecay(const int id). Checks whether particle resu… - #15470

Merged
sawenzel merged 5 commits into
AliceO2Group:devfrom
amorsch:radDecay
Aug 10, 2026
Merged

Add method isFromRadDecay(const int id). Checks whether particle resu…#15470
sawenzel merged 5 commits into
AliceO2Group:devfrom
amorsch:radDecay

Conversation

@amorsch

@amorsch amorsch commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Add method isFromRadDecay(const int id). Checks whether particle results from radioactive decay in its history.

@alibuild

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for f85bd63 at 2026-06-10 21:44:

## sw/BUILD/o2codechecker-latest/log
100% tests passed, 0 tests failed out of 1


## sw/BUILD/O2Physics-latest/log
CMake Error at /sw/slc9_x86-64/CMake/v4.1.4-2/share/cmake-4.1/Modules/CMakeTestCCompiler.cmake:67 (message):
    ninja: build stopped: subcommand failed.

Full log here.

@alibuild

alibuild commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Error while checking build/O2/fullCI_slc9 for 8e74bdf at 2026-07-31 08:40:

No log files found

Full log here.

@github-actions

Copy link
Copy Markdown
Contributor

This PR did not have any update in the last 30 days. Is it still needed? Unless further action in will be closed in 5 days.

@github-actions github-actions Bot added the stale label Jul 11, 2026
@github-actions github-actions Bot closed this Jul 17, 2026
@amorsch amorsch reopened this Jul 17, 2026
@github-actions github-actions Bot removed the stale label Jul 18, 2026
@sawenzel
sawenzel merged commit 3669c9c into AliceO2Group:dev Aug 10, 2026
16 of 17 checks passed
sawenzel added a commit to sawenzel/AliceO2 that referenced this pull request Aug 10, 2026
The query added in AliceO2Group#15470 gave two wrong answers. Primaries returned true,
because mTrackIDtoParticlesEntry is meaningless for them - primaries never
enter mParticles - so the lookup landed on an unrelated secondary. Descendants
of a radioactive decay returned false, because the `imo > 0` guard skipped
buffer entry 0, which after FinishPrimary() is the first secondary of the
current primary.

Walking trackIDs and stopping at mNumberOfPrimaryParticles removes both, and
the method becomes const, binds a reference instead of copying the MCTrack, and
drops the two includes MCTrack.h already provides. The new test case fails on
all four affected checks without this change.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
sawenzel added a commit to sawenzel/AliceO2 that referenced this pull request Aug 10, 2026
The query added in AliceO2Group#15470 gave two wrong answers. Primaries returned true,
because mTrackIDtoParticlesEntry is meaningless for them - primaries never
enter mParticles - so the lookup landed on an unrelated secondary. Descendants
of a radioactive decay returned false, because the `imo > 0` guard skipped
buffer entry 0, which after FinishPrimary() is the first secondary of the
current primary.

Walking trackIDs and stopping at mNumberOfPrimaryParticles removes both, and
the method becomes const, binds a reference instead of copying the MCTrack, and
drops the two includes MCTrack.h already provides. The new test case fails on
all four affected checks without this change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants