Skip to content

Commit b6ec9de

Browse files
committed
[PWGHF] Add configurable to set the max pt to remove ambiguous candidates in correlatorDMesonPairs
1 parent 6500938 commit b6ec9de

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

PWGHF/HFC/TableProducer/correlatorDMesonPairs.cxx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ struct HfCorrelatorDMesonPairs {
7575
Configurable<float> massCut{"massCut", 0.05, "Maximum deviation from PDG peak allowed for signal region"};
7676
Configurable<bool> daughterTracksCutFlag{"daughterTracksCutFlag", false, "Flag to add cut on daughter tracks"};
7777
Configurable<bool> removeAmbiguous{"removeAmbiguous", false, "Flag to remove ambiguous candidates"};
78+
Configurable<float> ptMaxRemoveAmbiguous{"ptMaxRemoveAmbiguous", 5.0, "Max. pT to remove the ambiguous candidates"};
7879

7980
// ML inference
8081
Configurable<bool> applyMl{"applyMl", false, "Flag to apply ML selections"};
@@ -612,7 +613,7 @@ struct HfCorrelatorDMesonPairs {
612613
}
613614

614615
// Remove ambiguous D0 candidates if flag is true
615-
if (removeAmbiguous && (isDCand1 && isDbarCand1)) {
616+
if (removeAmbiguous && (isDCand1 && isDbarCand1) && candidate1.pt() < ptMaxRemoveAmbiguous) {
616617
continue;
617618
}
618619

@@ -687,7 +688,7 @@ struct HfCorrelatorDMesonPairs {
687688
}
688689

689690
// Remove ambiguous D0 candidates if flag is true
690-
if (removeAmbiguous && (isDCand2 && isDbarCand2)) {
691+
if (removeAmbiguous && (isDCand2 && isDbarCand2) && candidate2.pt() < ptMaxRemoveAmbiguous) {
691692
continue;
692693
}
693694

@@ -776,7 +777,7 @@ struct HfCorrelatorDMesonPairs {
776777
}
777778

778779
// Remove ambiguous D0 candidates if flag is true
779-
if (removeAmbiguous && (isDCand1 && isDbarCand1)) {
780+
if (removeAmbiguous && (isDCand1 && isDbarCand1) && candidate1.pt() < ptMaxRemoveAmbiguous) {
780781
continue;
781782
}
782783

@@ -893,7 +894,7 @@ struct HfCorrelatorDMesonPairs {
893894
}
894895

895896
// Remove ambiguous D0 candidates if flag is true
896-
if (removeAmbiguous && (isDCand2 && isDbarCand2)) {
897+
if (removeAmbiguous && (isDCand2 && isDbarCand2) && candidate2.pt() < ptMaxRemoveAmbiguous) {
897898
continue;
898899
}
899900

0 commit comments

Comments
 (0)