Skip to content

Commit 953d897

Browse files
authored
Fix partition problem (#525)
1 parent 7855c6d commit 953d897

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

PWGCF/FemtoDream/femtoDreamPairTaskTrackTrack.cxx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,19 @@ struct femtoDreamPairTaskTrackTrack {
234234
eventHisto.fillQA(col);
235235
/// Histogramming same event
236236
for (auto& part : groupPartsOne) {
237+
if (part.pt() > cfgCutTable->get("PartOne", "MaxPt")) {
238+
continue;
239+
}
237240
if (!isFullPIDSelected(part.pidcut(), part.p(), cfgCutTable->get("PartOne", "PIDthr"), vPIDPartOne, cfgCutTable->get("PartOne", "nSigmaTPC"), cfgCutTable->get("PartOne", "nSigmaTPCTOF"))) {
238241
continue;
239242
}
240243
trackHistoPartOne.fillQA(part);
241244
}
242245
if (!ConfIsSame) {
243246
for (auto& part : groupPartsTwo) {
247+
if (part.pt() > cfgCutTable->get("PartTwo", "MaxPt")) {
248+
continue;
249+
}
244250
if (!isFullPIDSelected(part.pidcut(), part.p(), cfgCutTable->get("PartTwo", "PIDthr"), vPIDPartTwo, cfgCutTable->get("PartTwo", "nSigmaTPC"), cfgCutTable->get("PartTwo", "nSigmaTPCTOF"))) {
245251
continue;
246252
}
@@ -249,6 +255,9 @@ struct femtoDreamPairTaskTrackTrack {
249255
}
250256
/// Now build the combinations
251257
for (auto& [p1, p2] : combinations(groupPartsOne, groupPartsTwo)) {
258+
if (p1.pt() > cfgCutTable->get("PartOne", "MaxPt") || p2.pt() > cfgCutTable->get("PartTwo", "MaxPt")) {
259+
continue;
260+
}
252261
if (!isFullPIDSelected(p1.pidcut(), p1.p(), cfgCutTable->get("PartOne", "PIDthr"), vPIDPartOne, cfgCutTable->get("PartOne", "nSigmaTPC"), cfgCutTable->get("PartOne", "nSigmaTPCTOF")) || !isFullPIDSelected(p2.pidcut(), p2.p(), cfgCutTable->get("PartTwo", "PIDthr"), vPIDPartTwo, cfgCutTable->get("PartTwo", "nSigmaTPC"), cfgCutTable->get("PartTwo", "nSigmaTPCTOF"))) {
253262
continue;
254263
}
@@ -298,6 +307,9 @@ struct femtoDreamPairTaskTrackTrack {
298307
// if (partsOne.size() == 0 || nPart2Evt1 == 0 || nPart1Evt2 == 0 || partsTwo.size() == 0 ) continue;
299308

300309
for (auto& [p1, p2] : combinations(CombinationsFullIndexPolicy(groupPartsOne, groupPartsTwo))) {
310+
if (p1.pt() > cfgCutTable->get("PartOne", "MaxPt") || p2.pt() > cfgCutTable->get("PartTwo", "MaxPt")) {
311+
continue;
312+
}
301313
if (!isFullPIDSelected(p1.pidcut(), p1.p(), cfgCutTable->get("PartOne", "PIDthr"), vPIDPartOne, cfgCutTable->get("PartOne", "nSigmaTPC"), cfgCutTable->get("PartOne", "nSigmaTPCTOF")) || !isFullPIDSelected(p2.pidcut(), p2.p(), cfgCutTable->get("PartTwo", "PIDthr"), vPIDPartTwo, cfgCutTable->get("PartTwo", "nSigmaTPC"), cfgCutTable->get("PartTwo", "nSigmaTPCTOF"))) {
302314
continue;
303315
}

0 commit comments

Comments
 (0)