Skip to content

Commit ece9f30

Browse files
authored
[EMCAL-767] change timestamps from current to trigger (#2500)
1 parent 3c73db8 commit ece9f30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/EMCAL/src/CalibMonitoringTask.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ void CalibMonitoringTask::update(Trigger t, framework::ServiceRegistryRef)
268268
reset();
269269
for (const auto& obj : mCalibObjects) {
270270
if (obj == "BadChannelMap") {
271-
mBadChannelMap = mCalibDB->readBadChannelMap(o2::ccdb::getCurrentTimestamp(), metadata);
271+
mBadChannelMap = mCalibDB->readBadChannelMap(t.timestamp, metadata);
272272
if (!mBadChannelMap) {
273273
ILOG(Info, Support) << "No Bad Channel Map object " << ENDM;
274274
continue;
@@ -310,7 +310,7 @@ void CalibMonitoringTask::update(Trigger t, framework::ServiceRegistryRef)
310310
}
311311

312312
if (obj == "TimeCalibParams") {
313-
mTimeCalib = mCalibDB->readTimeCalibParam(o2::ccdb::getCurrentTimestamp(), metadata);
313+
mTimeCalib = mCalibDB->readTimeCalibParam(t.timestamp, metadata);
314314
if (!mTimeCalib) {
315315
ILOG(Info, Support) << " No Time Calib object " << ENDM;
316316
continue;
@@ -324,7 +324,7 @@ void CalibMonitoringTask::update(Trigger t, framework::ServiceRegistryRef)
324324
}
325325
}
326326
if (obj == "FeeDCS") {
327-
mFeeDCS = mCalibDB->readFeeDCSData(o2::ccdb::getCurrentTimestamp(), metadata);
327+
mFeeDCS = mCalibDB->readFeeDCSData(t.timestamp, metadata);
328328
if (!mFeeDCS) {
329329
ILOG(Info, Support) << " No FEE DCS object " << ENDM;
330330
continue;

0 commit comments

Comments
 (0)