|
29 | 29 | #include "PWGLF/DataModel/LFStrangenessTables.h" |
30 | 30 | #include "PWGLF/DataModel/LFStrangenessPIDTables.h" |
31 | 31 | #include "CommonConstants/PhysicsConstants.h" |
| 32 | +#include <TPDGCode.h> |
32 | 33 |
|
33 | 34 | using namespace o2; |
34 | 35 | using namespace o2::framework; |
@@ -222,21 +223,21 @@ struct FlowEfficiencyCasc { |
222 | 223 | rectracknum = col.multNTracksGlobal(); |
223 | 224 | } |
224 | 225 | for (auto const& cascmc : cascMCs) { |
225 | | - if (std::abs(cascmc.pdgCode()) == 3312) { |
| 226 | + if (std::abs(cascmc.pdgCode()) == kXiMinus) { |
226 | 227 | if (std::fabs(cascmc.yMC()) < cfgCasc_rapidity) |
227 | 228 | registry.fill(HIST("h2DGenXi"), cascmc.ptMC(), rectracknum); |
228 | 229 | } |
229 | | - if (std::abs(cascmc.pdgCode()) == 3334) { |
| 230 | + if (std::abs(cascmc.pdgCode()) == kOmegaMinus) { |
230 | 231 | if (std::fabs(cascmc.yMC()) < cfgCasc_rapidity) |
231 | 232 | registry.fill(HIST("h2DGenOmega"), cascmc.ptMC(), rectracknum); |
232 | 233 | } |
233 | 234 | } |
234 | 235 | for (auto const& v0mc : v0MCs) { |
235 | | - if (std::abs(v0mc.pdgCode()) == 310) { |
| 236 | + if (std::abs(v0mc.pdgCode()) == kK0Short) { |
236 | 237 | if (std::fabs(v0mc.yMC()) < cfgCasc_rapidity) |
237 | 238 | registry.fill(HIST("h2DGenK0s"), v0mc.ptMC(), rectracknum); |
238 | 239 | } |
239 | | - if (std::abs(v0mc.pdgCode()) == 3122) { |
| 240 | + if (std::abs(v0mc.pdgCode()) == kLambda0) { |
240 | 241 | if (std::fabs(v0mc.yMC()) < cfgCasc_rapidity) |
241 | 242 | registry.fill(HIST("h2DGenLambda"), v0mc.ptMC(), rectracknum); |
242 | 243 | } |
|
0 commit comments