Skip to content

Commit a247a10

Browse files
committed
Check daughter track pdg
1 parent 70fbeba commit a247a10

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PWGLF/TableProducer/Strangeness/phiStrangeCorrelator.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,17 @@ struct PhiMesonCandProducer {
238238
if (!track1.has_mcParticle())
239239
continue;
240240
const auto track1McParticle = mcParticles.rawIteratorAt(track1.mcParticleId());
241+
if (track1McParticle.pdgCode() != PDG_t::kKPlus || !track1McParticle.isPhysicalPrimary())
242+
continue;
241243

242244
for (const auto& track2 : negThisColl) {
243245
if (!selectionTrackResonance(track2) || !selectionPIDKaonpTdependent(track2))
244246
continue;
245247
if (!track2.has_mcParticle())
246248
continue;
247249
const auto track2McParticle = mcParticles.rawIteratorAt(track2.mcParticleId());
250+
if (track2McParticle.pdgCode() != PDG_t::kKMinus || !track2McParticle.isPhysicalPrimary())
251+
continue;
248252

249253
ROOT::Math::PxPyPzMVector recPhi = recMother(track1, track2, massKa, massKa);
250254

0 commit comments

Comments
 (0)