Skip to content

Commit 3893a89

Browse files
authored
[PWGCF] Non-prompt flag for the filter2prong (#15747)
1 parent 4086fc0 commit 3893a89

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

PWGCF/DataModel/CorrelationsDerived.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,10 @@ namespace cf2prongmcpart
195195
DECLARE_SOA_INDEX_COLUMN_FULL(CFParticleDaugh0, cfParticleDaugh0, int, CFMcParticles, "_0"); //! Index to prong 1 CFMcParticle
196196
DECLARE_SOA_INDEX_COLUMN_FULL(CFParticleDaugh1, cfParticleDaugh1, int, CFMcParticles, "_1"); //! Index to prong 2 CFMcParticle
197197
DECLARE_SOA_COLUMN(Decay, decay, uint8_t); //! Particle decay and flags
198-
DECLARE_SOA_DYNAMIC_COLUMN(McDecay, mcDecay, [](uint8_t decay) -> uint8_t { return decay & 0x7f; }); //! MC particle decay
198+
DECLARE_SOA_DYNAMIC_COLUMN(McDecay, mcDecay, [](uint8_t decay) -> uint8_t { return decay & 0x3f; }); //! MC particle decay
199199
enum ParticleDecayFlags {
200-
Prompt = 0x80
200+
Prompt = 0x40,
201+
NonPrompt = 0x80
201202
};
202203
} // namespace cf2prongmcpart
203204
DECLARE_SOA_TABLE(CF2ProngMcParts, "AOD", "CF2PRONGMCPART", //! Table for the daughter particles of a 2-prong particle, to be joined with CFMcParticles

PWGCF/TableProducer/filter2Prong.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,10 @@ struct Filter2Prong {
294294
}
295295
}
296296
}
297+
uint8_t pcode =
298+
(mcParticle.originMcGen() == RecoDecay::OriginType::Prompt) ? aod::cf2prongmcpart::Prompt : ((mcParticle.originMcGen() == RecoDecay::OriginType::NonPrompt) ? aod::cf2prongmcpart::NonPrompt : 0);
297299
output2ProngMcParts(prongCFId[0], prongCFId[1],
298-
(mcParticle.pdgCode() >= 0 ? aod::cf2prongtrack::D0ToPiK : aod::cf2prongtrack::D0barToKPiExclusive) | ((mcParticle.originMcGen() == RecoDecay::OriginType::Prompt) ? aod::cf2prongmcpart::Prompt : 0));
300+
(mcParticle.pdgCode() >= 0 ? aod::cf2prongtrack::D0ToPiK : aod::cf2prongtrack::D0barToKPiExclusive) | pcode);
299301
}
300302
}
301303
PROCESS_SWITCH(Filter2Prong, processMC, "Process MC 2-prong daughters", false);

0 commit comments

Comments
 (0)