Skip to content

Commit 86139cb

Browse files
authored
[PWGHF] utilsEvSelHf: add nPvContributorsMax configurable (#18514)
1 parent 984c88c commit 86139cb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎PWGHF/Utils/utilsEvSelHf.h‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
197197
o2::framework::Configurable<int> occupancyMax{"occupancyMax", 1000000, "Maximum occupancy"};
198198
o2::framework::Configurable<bool> requireINEL0{"requireINEL0", false, "Require INEL > 0"};
199199
o2::framework::Configurable<int> nPvContributorsMin{"nPvContributorsMin", 0, "Minimum number of PV contributors"};
200+
o2::framework::Configurable<int> nPvContributorsMax{"nPvContributorsMax", 1000000, "Maximum number of PV contributors"};
200201
o2::framework::Configurable<float> chi2PvMax{"chi2PvMax", -1.f, "Maximum PV chi2"};
201202
o2::framework::Configurable<float> zPvPosMin{"zPvPosMin", -10.f, "Minimum PV posZ (cm)"};
202203
o2::framework::Configurable<float> zPvPosMax{"zPvPosMax", 10.f, "Maximum PV posZ (cm)"};
@@ -410,7 +411,7 @@ struct HfEventSelection : o2::framework::ConfigurableGroup {
410411
}
411412

412413
/// number of PV contributors
413-
if (collision.numContrib() < nPvContributorsMin) {
414+
if (collision.numContrib() < nPvContributorsMin || collision.numContrib() > nPvContributorsMax) {
414415
SETBIT(rejectionMask, EventRejection::NContrib);
415416
}
416417

0 commit comments

Comments
 (0)