Skip to content

Commit 407a399

Browse files
committed
Further PDG, TMCProcess
1 parent 0f2af81 commit 407a399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGLF/Utils/strangenessBuilderModule.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,10 +2227,10 @@ class BuilderModule
22272227
if (mcParticle.has_daughters()) {
22282228
auto const& daughters = mcParticle.template daughters_as<aod::McParticles>();
22292229
for (const auto& dau : daughters) {
2230-
if (dau.getProcess() != 4) // check whether the daughter comes from a decay
2230+
if (dau.getProcess() != TMCProcess::kPDecay) // check whether the daughter comes from a decay
22312231
continue;
22322232

2233-
if (std::abs(dau.pdgCode()) == 211 || std::abs(dau.pdgCode()) == 321) {
2233+
if (std::abs(dau.pdgCode()) == PDG_t::kPiPlus || std::abs(dau.pdgCode()) == PDG_t::kKPlus) {
22342234
thisCascInfo.pdgCodeBachelor = dau.pdgCode();
22352235
thisCascInfo.bachP[0] = dau.px();
22362236
thisCascInfo.bachP[1] = dau.py();

0 commit comments

Comments
 (0)