@@ -127,6 +127,7 @@ struct DndetaMFTPbPb {
127127 " minOccupancy" , -1 , " minimum occupancy from neighbouring collisions" };
128128 Configurable<float > maxOccupancy{
129129 " 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 (eventCuts.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 (eventCuts.cfgSelInteractionRate ) {
1178+ if (!isIRSelected (bc, true )) {
1179+ return ;
1180+ }
11761181 }
11771182
11781183 auto z = collision.posZ ();
0 commit comments