Skip to content

Commit e807d54

Browse files
authored
[PWGLF] Make sure that B field is updated when necessary (#12777)
1 parent 049437f commit e807d54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

PWGLF/TableProducer/Nuspex/decay3bodybuilder.cxx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,8 @@ struct decay3bodyBuilder {
501501

502502
auto timestamp = bc.timestamp();
503503
o2::parameters::GRPMagField* grpmag = 0x0;
504-
grpmag = ccdb->getForTimeStamp<o2::parameters::GRPMagField>(ccdbConfigurations.grpmagPath, timestamp);
504+
ccdb->clearCache(ccdbConfigurations.grpmagPath);
505+
grpmag = ccdb->getSpecific<o2::parameters::GRPMagField>(ccdbConfigurations.grpmagPath, timestamp);
505506
if (!grpmag) {
506507
LOG(fatal) << "Got nullptr from CCDB for path " << ccdbConfigurations.grpmagPath << " of object GRPMagField for timestamp " << timestamp;
507508
}

0 commit comments

Comments
 (0)