Skip to content

Commit

Permalink
[PWGLF] nonPromptCascade task: fixed check on cascades from HF (#8944)
Browse files Browse the repository at this point in the history
  • Loading branch information
atriolo authored Dec 11, 2024
1 parent 9df5dc2 commit ac16c80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions PWGLF/Tasks/Strangeness/nonPromptCascade.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,11 @@ struct NonPromptCascadeTask {

int pdgCodeMom = 0;
std::tuple<bool, bool> fromHF{false, false};
if (isGoodCascade && isGoodMatch) {
if (isGoodCascade) {
fromHF = isFromHF(track.mcParticle());
pdgCodeMom = track.mcParticle().has_mothers() ? track.mcParticle().mothers_as<aod::McParticles>()[0].pdgCode() : 0;
if (isGoodMatch) {
pdgCodeMom = track.mcParticle().has_mothers() ? track.mcParticle().mothers_as<aod::McParticles>()[0].pdgCode() : 0;
}
}
int itsTrackPDG = ITStrack.has_mcParticle() ? ITStrack.mcParticle().pdgCode() : 0;
float deltaPtITSCascade = std::hypot(cascadeMomentum[0], cascadeMomentum[1]) - ITStrack.pt();
Expand Down

0 comments on commit ac16c80

Please sign in to comment.