Skip to content

Comments

[PWGHF] Task to identify various sources of single muons and the Axe calculation#15112

Merged
jpxrk merged 7 commits intoAliceO2Group:masterfrom
mislam17:singleMuonMult
Feb 23, 2026
Merged

[PWGHF] Task to identify various sources of single muons and the Axe calculation#15112
jpxrk merged 7 commits intoAliceO2Group:masterfrom
mislam17:singleMuonMult

Conversation

@mislam17
Copy link
Contributor

A new Task used to identify various sources of single muons and to calculate the Axe in Monte Carlo simulation.

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.
@github-actions github-actions bot added the pwghf PWG-HF label Feb 23, 2026
@github-actions github-actions bot changed the title Task to identify various sources of single muons and the Axe calculation [PWGHF] Task to identify various sources of single muons and the Axe calculation Feb 23, 2026
@jpxrk jpxrk enabled auto-merge (squash) February 23, 2026 07:11
}

// particle has an associated MC particle
bool isIdentified(const uint16_t& mask)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you pass reference?

SETBIT(mask, IsMuon);

while (mcPart.has_mothers()) {
mcPart = *(mcPart.mothers_first_as<aod::McParticles>());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you dereference the mcPart?

}
}

void process(McGenCollisions::iterator const& mccollision, McMuons const& muons, aod::McParticles const&, McRecCollisions const& collisions)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One argument per line.

}
}

void processResTrack(McGenCollisions::iterator const& mccollision, McRecCollisions const& collisions, aod::McParticles const& particles, MyTracks const& tracks)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One argument per line.

registry.fill(HIST("hTrackResponse"), nP, nTrk);
}
}
PROCESS_SWITCH(HfTaskSingleMuonMultMc, processResTrack, "Process Track Reconstruction/Generation", true);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure you want this switch to be on by default?

@jpxrk jpxrk merged commit a9a2fa8 into AliceO2Group:master Feb 23, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pwghf PWG-HF

Development

Successfully merging this pull request may close these issues.

3 participants