Skip to content

Commit b8c9f40

Browse files
EloviyoShirajum Monira
andauthored
[PWGCF] FemtoUniverse Cascade Task -- fixed a bug in MC reco process func (#16022)
Co-authored-by: Shirajum Monira <shirajum.monira@cern.ch>
1 parent 4476927 commit b8c9f40

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackCascadeExtended.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,8 +1193,9 @@ struct femtoUniversePairTaskTrackCascadeExtended {
11931193
const auto& posChild = parts.iteratorAt(part.globalIndex() - 3 - parts.begin().globalIndex());
11941194
const auto& negChild = parts.iteratorAt(part.globalIndex() - 2 - parts.begin().globalIndex());
11951195
const auto& bachelor = parts.iteratorAt(part.globalIndex() - 1 - parts.begin().globalIndex());
1196+
/// Daughters that do not pass this condition are not selected
11961197
if constexpr (std::experimental::is_detected<hasSigma, typename TableType::iterator>::value) {
1197-
if (!isParticleTPC(posChild, CascChildTable[confCascType1 + 2][0]) && !isParticleTPC(negChild, CascChildTable[confCascType1 + 2][1]) && !isParticleTPC(bachelor, CascChildTable[confCascType1 + 2][2]))
1198+
if (!isParticleTPC(posChild, CascChildTable[confCascType1 + 2][0]) || !isParticleTPC(negChild, CascChildTable[confCascType1 + 2][1]) || !isParticleTPC(bachelor, CascChildTable[confCascType1 + 2][2]))
11981199
continue;
11991200
if (!isParticleTOF(posChild, CascChildTable[confCascType1 + 2][0]) || !isParticleTOF(negChild, CascChildTable[confCascType1 + 2][1]) || !isParticleTOF(bachelor, CascChildTable[confCascType1 + 2][2]))
12001201
continue;

0 commit comments

Comments
 (0)