Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common/Core: add check in getCharmHadronOrigin to reject in case of first mother parton #7074

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

fgrosa
Copy link
Collaborator

@fgrosa fgrosa commented Jul 30, 2024

This PR adds a check in RecoDecay::getCharmHadronOrigin that returns immediately if a parton is found as first mother in case of searchUpToQuark == false. In fact, no beauty hadron can decay to a parton, so if a parton is found as mother it means that the charm hadron doesn't come from a beauty-hadron decay. If it comes from a beauty-hadron decays in fact, the function will return before finding the first parton mother.

This is very important for the analysis of Pb-Pb MCs, since the analysis code is very slow otherwise.

@ddobrigk ddobrigk enabled auto-merge (squash) July 30, 2024 15:43
@ddobrigk ddobrigk merged commit 09cda74 into AliceO2Group:master Jul 30, 2024
10 of 11 checks passed
MaximVirta pushed a commit to MaximVirta/O2Physics that referenced this pull request Aug 5, 2024
Luca610 pushed a commit to Luca610/O2Physics that referenced this pull request Aug 13, 2024
joonsukbae pushed a commit to joonsukbae/O2Physics that referenced this pull request Aug 27, 2024
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.

2 participants