Skip to content

Commit 8239328

Browse files
committed
Fix doULS pairs in Ds-h correlation task
1 parent fe4e6a1 commit 8239328

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PWGHF/HFC/Tasks/taskCorrelationDsHadrons.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ struct HfTaskCorrelationDsHadrons {
704704
registry.fill(HIST("hDeltaPhiPtIntMcGen"), deltaPhi);
705705
if (isDsPrompt) {
706706
registry.fill(HIST("hCorrel2DVsPtMcGenPrompt"), deltaPhi, deltaEta, std::abs(ptD), std::abs(ptHadron), poolBin);
707-
if (doULSpair) {
707+
if (doULSpai && ((ptD > 0. && ptHadron < 0.) || (ptD < 0. && ptHadron > 0.))) {
708708
registry.fill(HIST("hCorrel2DVsPtMcGenPromptULS"), deltaPhi, deltaEta, std::abs(ptD), std::abs(ptHadron), poolBin);
709709
}
710710
if (doLSpair && ((ptD > 0. && ptHadron > 0.) || (ptD < 0. && ptHadron < 0.))) {
@@ -715,7 +715,7 @@ struct HfTaskCorrelationDsHadrons {
715715
}
716716
} else {
717717
registry.fill(HIST("hCorrel2DVsPtMcGenNonPrompt"), deltaPhi, deltaEta, std::abs(ptD), std::abs(ptHadron), poolBin);
718-
if (doULSpair) {
718+
if (doULSpair && ((ptD > 0. && ptHadron < 0.) || (ptD < 0. && ptHadron > 0.))) {
719719
registry.fill(HIST("hCorrel2DVsPtMcGenNonPromptULS"), deltaPhi, deltaEta, std::abs(ptD), std::abs(ptHadron), poolBin);
720720
}
721721
if (doLSpair && ((ptD > 0. && ptHadron > 0.) || (ptD < 0. && ptHadron < 0.))) {

0 commit comments

Comments
 (0)