diff --git a/PWGLF/TableProducer/Resonances/resonanceMergeDF.cxx b/PWGLF/TableProducer/Resonances/resonanceMergeDF.cxx index 50315d864cd..d5a178ed844 100644 --- a/PWGLF/TableProducer/Resonances/resonanceMergeDF.cxx +++ b/PWGLF/TableProducer/Resonances/resonanceMergeDF.cxx @@ -63,6 +63,7 @@ using namespace o2::soa; struct ResonanceMergeDF { // SliceCache cache; Configurable nDF{"nDF", 1, "no of combination of collision"}; + Configurable isLoggingEnabled{"isLoggingEnabled", 0, "print log"}; Configurable cpidCut{"cpidCut", 0, "pid cut"}; Configurable crejtpc{"crejtpc", 0, "reject electron pion"}; Configurable crejtof{"crejtof", 0, "reject electron pion tof"}; @@ -175,7 +176,8 @@ struct ResonanceMergeDF { vecOfVecOfTuples.push_back(innerVector); innerVector.clear(); df++; - LOGF(info, "collisions: df = %i", df); + if (isLoggingEnabled) + LOGF(info, "collisions: df = %i", df); if (df < nCollisions) return; df = 0;