diff --git a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx index 2ae0df0c707..4cc9a98d524 100644 --- a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx +++ b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx @@ -127,6 +127,7 @@ struct DndetaMFTPbPb { "minOccupancy", -1, "minimum occupancy from neighbouring collisions"}; Configurable maxOccupancy{ "maxOccupancy", -1, "maximum occupancy from neighbouring collisions"}; + Configurable cfgSelInteractionRate{"cfgSelInteractionRate", false, " Get Interaction rate from CCDB"}; Configurable minIR{"minIR", -1, "minimum IR (kHz) collisions"}; Configurable maxIR{"maxIR", -1, "maximum IR (kHz) collisions"}; } eventCuts; @@ -1122,8 +1123,10 @@ struct DndetaMFTPbPb { if (!isGoodEvent(collision)) { return; } - if (!isIRSelected(bc, true)) { - return; + if (eventCuts.cfgSelInteractionRate) { + if (!isIRSelected(bc, true)) { + return; + } } auto z = collision.posZ(); @@ -1171,8 +1174,10 @@ struct DndetaMFTPbPb { if (!isGoodEvent(collision)) { return; } - if (!isIRSelected(bc, true)) { - return; + if (eventCuts.cfgSelInteractionRate) { + if (!isIRSelected(bc, true)) { + return; + } } auto z = collision.posZ();