diff --git a/PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx b/PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx index 7757cbc72a1..bcd914b3df3 100644 --- a/PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx +++ b/PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx @@ -284,9 +284,11 @@ struct decay3bodyBuilder { ccdb->setFatalWhenNull(false); // TOF PID parameters initialization - mTOFCalibConfig.metadataInfo = metadataInfo; - mTOFCalibConfig.inheritFromBaseTask(initContext); - mTOFCalibConfig.initSetup(mRespParamsV3, ccdb); + if (doprocessRealData == true || doprocessMonteCarlo == true) { + mTOFCalibConfig.metadataInfo = metadataInfo; + mTOFCalibConfig.inheritFromBaseTask(initContext); + mTOFCalibConfig.initSetup(mRespParamsV3, ccdb); + } // Set material correction if (useMatCorrType == 1) {