From 28ff600219969c978855bd11414c9cfbbccc1033 Mon Sep 17 00:00:00 2001 From: Maximiliano Puccio Date: Thu, 28 Aug 2025 15:37:21 +0200 Subject: [PATCH] Make sure that B field is updated when necessary --- PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx b/PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx index bcd914b3df3..633dd9dbb96 100644 --- a/PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx +++ b/PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx @@ -501,7 +501,8 @@ struct decay3bodyBuilder { auto timestamp = bc.timestamp(); o2::parameters::GRPMagField* grpmag = 0x0; - grpmag = ccdb->getForTimeStamp(ccdbConfigurations.grpmagPath, timestamp); + ccdb->clearCache(ccdbConfigurations.grpmagPath); + grpmag = ccdb->getSpecific(ccdbConfigurations.grpmagPath, timestamp); if (!grpmag) { LOG(fatal) << "Got nullptr from CCDB for path " << ccdbConfigurations.grpmagPath << " of object GRPMagField for timestamp " << timestamp; }