Skip to content

Commit 5901752

Browse files
Dmitri Peresunkoshahor02
authored andcommitted
Dont send CCDB if not calculated
1 parent 7225bc1 commit 5901752

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Detectors/PHOS/calib/src/PHOSL1phaseCalibDevice.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ void PHOSL1phaseCalibDevice::endOfStream(o2::framework::EndOfStreamContext& ec)
4848
mCalibrator->checkSlotsToFinalize(o2::calibration::INFINITE_TF);
4949
mCalibrator->endOfStream();
5050

51+
if (mRunStartTime == 0 || mCalibrator->getCalibration() == 0) { // run not started || calibration was not produced
52+
return; // do not create CCDB object
53+
}
54+
5155
std::vector<int> l1phase{mCalibrator->getCalibration()};
5256
LOG(info) << "End of stream reached, sending output to CCDB";
5357
// prepare all info to be sent to CCDB

0 commit comments

Comments
 (0)