[PWGHF] Task to identify various sources of single muons and the Axe calculation#15112
Merged
jpxrk merged 7 commits intoAliceO2Group:masterfrom Feb 23, 2026
Merged
[PWGHF] Task to identify various sources of single muons and the Axe calculation#15112jpxrk merged 7 commits intoAliceO2Group:masterfrom
jpxrk merged 7 commits intoAliceO2Group:masterfrom
Conversation
The variables in "hMuDeltaPtBeforeAccCuts" and hMuDeltaPtAfterAccCuts" are updated
This file implements a task for identifying various sources of single muons and Axe calculation in Monte Carlo simulations.
…of Axe A new Task used to identify various sources of single muons and to calculate Axe in Monte Carlo simulation.
jpxrk
approved these changes
Feb 23, 2026
vkucera
reviewed
Feb 23, 2026
| } | ||
|
|
||
| // particle has an associated MC particle | ||
| bool isIdentified(const uint16_t& mask) |
Collaborator
There was a problem hiding this comment.
Why do you pass reference?
vkucera
reviewed
Feb 23, 2026
| SETBIT(mask, IsMuon); | ||
|
|
||
| while (mcPart.has_mothers()) { | ||
| mcPart = *(mcPart.mothers_first_as<aod::McParticles>()); |
Collaborator
There was a problem hiding this comment.
Why do you dereference the mcPart?
vkucera
reviewed
Feb 23, 2026
| } | ||
| } | ||
|
|
||
| void process(McGenCollisions::iterator const& mccollision, McMuons const& muons, aod::McParticles const&, McRecCollisions const& collisions) |
vkucera
reviewed
Feb 23, 2026
| } | ||
| } | ||
|
|
||
| void processResTrack(McGenCollisions::iterator const& mccollision, McRecCollisions const& collisions, aod::McParticles const& particles, MyTracks const& tracks) |
vkucera
reviewed
Feb 23, 2026
| registry.fill(HIST("hTrackResponse"), nP, nTrk); | ||
| } | ||
| } | ||
| PROCESS_SWITCH(HfTaskSingleMuonMultMc, processResTrack, "Process Track Reconstruction/Generation", true); |
Collaborator
There was a problem hiding this comment.
Are you sure you want this switch to be on by default?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A new Task used to identify various sources of single muons and to calculate the Axe in Monte Carlo simulation.