@@ -180,9 +180,10 @@ void o2::pid::tof::TOFResponseImpl::initSetup(o2::ccdb::BasicCCDBManager* ccdb,
180180 LOG (info) << " Initializing the time shift for " << (isPositive ? " positive" : " negative" )
181181 << " from ccdb '" << nameShift << " ' and timestamp " << mTimestamp
182182 << " and pass '" << mReconstructionPass << " '" ;
183+ bool fatalWhenNull = mCcdb ->getFatalWhenNull ();
183184 mCcdb ->setFatalWhenNull (false );
184185 parameters.setTimeShiftParameters (mCcdb ->getSpecific <TGraph>(nameShift, mTimestamp , metadata), isPositive);
185- mCcdb ->setFatalWhenNull (true );
186+ mCcdb ->setFatalWhenNull (fatalWhenNull );
186187 }
187188 LOG (info) << " test getTimeShift at 0 " << (isPositive ? " pos" : " neg" ) << " : "
188189 << parameters.getTimeShift (0 , isPositive);
@@ -269,9 +270,10 @@ void o2::pid::tof::TOFResponseImpl::processSetup(const int runNumber, const int6
269270 LOG (info) << " Updating the time shift for " << (isPositive ? " positive" : " negative" )
270271 << " from ccdb '" << nameShift << " ' and timestamp " << mTimestamp
271272 << " and pass '" << mReconstructionPass << " '" ;
273+ bool fatalWhenNull = mCcdb ->getFatalWhenNull ();
272274 mCcdb ->setFatalWhenNull (false );
273275 parameters.setTimeShiftParameters (mCcdb ->getSpecific <TGraph>(nameShift, mTimestamp , metadata), isPositive);
274- mCcdb ->setFatalWhenNull (true );
276+ mCcdb ->setFatalWhenNull (fatalWhenNull );
275277 LOG (info) << " test getTimeShift at 0 " << (isPositive ? " pos" : " neg" ) << " : "
276278 << parameters.getTimeShift (0 , isPositive);
277279 };
0 commit comments