From b501c1a0bffda0510abeb9101da45ebc3cbe08ed Mon Sep 17 00:00:00 2001 From: Gyula Bencedi Date: Fri, 11 Jul 2025 18:45:34 +0200 Subject: [PATCH 1/3] Added configurable for IR selection --- PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx index 2ae0df0c707..d6ba2893711 100644 --- a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx +++ b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx @@ -126,7 +126,8 @@ struct DndetaMFTPbPb { Configurable minOccupancy{ "minOccupancy", -1, "minimum occupancy from neighbouring collisions"}; Configurable maxOccupancy{ - "maxOccupancy", -1, "maximum occupancy from neighbouring collisions"}; + "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 (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 (cfgSelInteractionRate) { + if (!isIRSelected(bc, true)) { + return; + } } auto z = collision.posZ(); From a00fa00aa766f2d0bac3439d96031132312cae3c Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 11 Jul 2025 16:47:43 +0000 Subject: [PATCH 2/3] Please consider the following formatting changes --- PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx index d6ba2893711..cc1078cae7b 100644 --- a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx +++ b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx @@ -126,7 +126,7 @@ struct DndetaMFTPbPb { Configurable minOccupancy{ "minOccupancy", -1, "minimum occupancy from neighbouring collisions"}; Configurable maxOccupancy{ - "maxOccupancy", -1, "maximum occupancy from neighbouring collisions"}; + "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"}; From 24b50debb9b27ebfacdcbd9fb3e531b25bf77fa7 Mon Sep 17 00:00:00 2001 From: Gyula Bencedi Date: Fri, 11 Jul 2025 19:27:38 +0200 Subject: [PATCH 3/3] Update dndetaMFTPbPb.cxx --- PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx index cc1078cae7b..4cc9a98d524 100644 --- a/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx +++ b/PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx @@ -1123,7 +1123,7 @@ struct DndetaMFTPbPb { if (!isGoodEvent(collision)) { return; } - if (cfgSelInteractionRate) { + if (eventCuts.cfgSelInteractionRate) { if (!isIRSelected(bc, true)) { return; } @@ -1174,7 +1174,7 @@ struct DndetaMFTPbPb { if (!isGoodEvent(collision)) { return; } - if (cfgSelInteractionRate) { + if (eventCuts.cfgSelInteractionRate) { if (!isIRSelected(bc, true)) { return; }