We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f2af81 commit 407a399Copy full SHA for 407a399
1 file changed
PWGLF/Utils/strangenessBuilderModule.h
@@ -2227,10 +2227,10 @@ class BuilderModule
2227
if (mcParticle.has_daughters()) {
2228
auto const& daughters = mcParticle.template daughters_as<aod::McParticles>();
2229
for (const auto& dau : daughters) {
2230
- if (dau.getProcess() != 4) // check whether the daughter comes from a decay
+ if (dau.getProcess() != TMCProcess::kPDecay) // check whether the daughter comes from a decay
2231
continue;
2232
2233
- if (std::abs(dau.pdgCode()) == 211 || std::abs(dau.pdgCode()) == 321) {
+ if (std::abs(dau.pdgCode()) == PDG_t::kPiPlus || std::abs(dau.pdgCode()) == PDG_t::kKPlus) {
2234
thisCascInfo.pdgCodeBachelor = dau.pdgCode();
2235
thisCascInfo.bachP[0] = dau.px();
2236
thisCascInfo.bachP[1] = dau.py();
0 commit comments