Skip to content

Commit 4103b57

Browse files
author
Shirajum Monira
committed
implemented fix based on the new definition of lambda invM check
1 parent 2b5bcd1 commit 4103b57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackV0Extended.cxx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,9 +1545,9 @@ struct FemtoUniversePairTaskTrackV0Extended {
15451545
const auto& mcpart = mcparts.iteratorAt(mcPartId);
15461546
//
15471547
if (part.partType() == aod::femtouniverseparticle::ParticleType::kV0) {
1548-
if (!invMLambda(part.mLambda(), part.mAntiLambda()))
1549-
continue;
15501548
if (mcpart.pdgMCTruth() == kLambda0) {
1549+
if (!invMLambda(part.mLambda(), part.mAntiLambda(), 0))
1550+
continue;
15511551
const auto& posChild = parts.iteratorAt(part.globalIndex() - 2 - parts.begin().globalIndex());
15521552
const auto& negChild = parts.iteratorAt(part.globalIndex() - 1 - parts.begin().globalIndex());
15531553
if constexpr (std::experimental::is_detected<hasSigma, typename PartType::iterator>::value) {
@@ -1573,6 +1573,8 @@ struct FemtoUniversePairTaskTrackV0Extended {
15731573
registryMCreco.fill(HIST("plus/MCrecoLambda"), mcpart.pt(), mcpart.eta()); // lambda
15741574

15751575
} else if (mcpart.pdgMCTruth() == kLambda0Bar) {
1576+
if (!invMLambda(part.mLambda(), part.mAntiLambda(), 1))
1577+
continue;
15761578
const auto& posChild = parts.iteratorAt(part.globalIndex() - 2 - parts.begin().globalIndex());
15771579
const auto& negChild = parts.iteratorAt(part.globalIndex() - 1 - parts.begin().globalIndex());
15781580
if constexpr (std::experimental::is_detected<hasSigma, typename PartType::iterator>::value) {

0 commit comments

Comments
 (0)