From 63dadb6e73ae817bd272bc69eb730d7570568410 Mon Sep 17 00:00:00 2001 From: yuanzhe Date: Wed, 13 Aug 2025 20:54:32 +0200 Subject: [PATCH] Avoid initialize unused parameters while running over reduced hypertrition 3body candidates --- PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) {