@@ -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