Skip to content

Commit b501c1a

Browse files
authored
Added configurable for IR selection
1 parent 189d6e5 commit b501c1a

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

PWGMM/Mult/Tasks/dndetaMFTPbPb.cxx

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ struct DndetaMFTPbPb {
126126
Configurable<float> minOccupancy{
127127
"minOccupancy", -1, "minimum occupancy from neighbouring collisions"};
128128
Configurable<float> maxOccupancy{
129-
"maxOccupancy", -1, "maximum occupancy from neighbouring collisions"};
129+
"maxOccupancy", -1, "maximum occupancy from neighbouring collisions"};
130+
Configurable<bool> cfgSelInteractionRate{"cfgSelInteractionRate", false, " Get Interaction rate from CCDB"};
130131
Configurable<float> minIR{"minIR", -1, "minimum IR (kHz) collisions"};
131132
Configurable<float> maxIR{"maxIR", -1, "maximum IR (kHz) collisions"};
132133
} eventCuts;
@@ -1122,8 +1123,10 @@ struct DndetaMFTPbPb {
11221123
if (!isGoodEvent<true>(collision)) {
11231124
return;
11241125
}
1125-
if (!isIRSelected(bc, true)) {
1126-
return;
1126+
if (cfgSelInteractionRate) {
1127+
if (!isIRSelected(bc, true)) {
1128+
return;
1129+
}
11271130
}
11281131

11291132
auto z = collision.posZ();
@@ -1171,8 +1174,10 @@ struct DndetaMFTPbPb {
11711174
if (!isGoodEvent<false>(collision)) {
11721175
return;
11731176
}
1174-
if (!isIRSelected(bc, true)) {
1175-
return;
1177+
if (cfgSelInteractionRate) {
1178+
if (!isIRSelected(bc, true)) {
1179+
return;
1180+
}
11761181
}
11771182

11781183
auto z = collision.posZ();

0 commit comments

Comments
 (0)