Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions PWGLF/Utils/mcParticle.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,14 +337,22 @@ class PIDExtended
return XiC0;
case o2::constants::physics::Pdg::kK0Star892:
return Kstar;
case -o2::constants::physics::Pdg::kK0Star892:
return Kstar;
case 323:
return KstarPM;
case -323:
return KstarPM;
Comment on lines +340 to +345
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why don't you use the named constants?

case 310:
return Kshort;
case 3324:
return Xi1530;
case -3324:
return Xi1530;
case 3124:
return Lambda1520;
case -3124:
return Lambda1520;
default:
LOG(debug) << "Cannot identify particle with PDG code " << particle.pdgCode();
break;
Expand Down
Loading