Skip to content

Commit 87b4aa9

Browse files
author
Shirajum Monira
committed
fixed misplaced brackets
1 parent fe7988c commit 87b4aa9

1 file changed

Lines changed: 16 additions & 17 deletions

File tree

PWGCF/FemtoUniverse/Tasks/femtoUniversePairTaskTrackCascadeExtended.cxx

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,24 +1268,23 @@ struct femtoUniversePairTaskTrackCascadeExtended {
12681268
continue;
12691269

12701270
cascQAHistos.fillQA<false, false>(part);
1271+
}
1272+
auto pairProcessFunc = [&](auto& p1, auto& p2) -> void {
1273+
int pdgCodeCasc1 = static_cast<int>(p1.pidCut());
1274+
if ((confCascType1 == 0 && pdgCodeCasc1 != kOmegaMinus) || (confCascType1 == 2 && pdgCodeCasc1 != kOmegaPlusBar) || (confCascType1 == 1 && pdgCodeCasc1 != kXiMinus) || (confCascType1 == 3 && pdgCodeCasc1 != kXiPlusBar))
1275+
return;
1276+
int pdgCodeCasc2 = static_cast<int>(p2.pidCut());
1277+
if ((confCascType2 == 0 && pdgCodeCasc2 != kOmegaMinus) || (confCascType2 == 2 && pdgCodeCasc2 != kOmegaPlusBar) || (confCascType2 == 1 && pdgCodeCasc2 != kXiMinus) || (confCascType2 == 3 && pdgCodeCasc2 != kXiPlusBar))
1278+
return;
1279+
sameEventCont.setPair<false>(p1, p2, multCol, confUse3D, 1.0f);
1280+
};
12711281

1272-
auto pairProcessFunc = [&](auto& p1, auto& p2) -> void {
1273-
int pdgCodeCasc1 = static_cast<int>(p1.pidCut());
1274-
if ((confCascType1 == 0 && pdgCodeCasc1 != kOmegaMinus) || (confCascType1 == 2 && pdgCodeCasc1 != kOmegaPlusBar) || (confCascType1 == 1 && pdgCodeCasc1 != kXiMinus) || (confCascType1 == 3 && pdgCodeCasc1 != kXiPlusBar))
1275-
return;
1276-
int pdgCodeCasc2 = static_cast<int>(p2.pidCut());
1277-
if ((confCascType2 == 0 && pdgCodeCasc2 != kOmegaMinus) || (confCascType2 == 2 && pdgCodeCasc2 != kOmegaPlusBar) || (confCascType2 == 1 && pdgCodeCasc2 != kXiMinus) || (confCascType2 == 3 && pdgCodeCasc2 != kXiPlusBar))
1278-
return;
1279-
sameEventCont.setPair<false>(p1, p2, multCol, confUse3D, 1.0f);
1280-
};
1281-
1282-
if (confCascType1 == confCascType2) {
1283-
for (const auto& [p1, p2] : combinations(CombinationsStrictlyUpperIndexPolicy(groupPartsTwo, groupPartsTwo)))
1284-
pairProcessFunc(p1, p2);
1285-
} else {
1286-
for (const auto& [p1, p2] : combinations(CombinationsFullIndexPolicy(groupPartsTwo, groupPartsTwo)))
1287-
pairProcessFunc(p1, p2);
1288-
}
1282+
if (confCascType1 == confCascType2) {
1283+
for (const auto& [p1, p2] : combinations(CombinationsStrictlyUpperIndexPolicy(groupPartsTwo, groupPartsTwo)))
1284+
pairProcessFunc(p1, p2);
1285+
} else {
1286+
for (const auto& [p1, p2] : combinations(CombinationsFullIndexPolicy(groupPartsTwo, groupPartsTwo)))
1287+
pairProcessFunc(p1, p2);
12891288
}
12901289
}
12911290
PROCESS_SWITCH(femtoUniversePairTaskTrackCascadeExtended, processSameEventCascMCgen, "Enable processing same event MC truth for cascade - cascade", false);

0 commit comments

Comments
 (0)