Skip to content

Commit 8c033d9

Browse files
dstoccoaphecetche
authored andcommitted
Fix timestamp validity for MID calibration objects
1 parent d3c9ed3 commit 8c033d9

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

Detectors/MUON/MID/Calibration/include/MIDCalibration/ChannelCalibrator.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,13 @@ class ChannelCalibrator final : public o2::calibration::TimeSlotCalibration<Colu
8787
/// Returns the bad channels
8888
const std::vector<ColumnData>& getBadChannels() const { return mBadChannels; }
8989

90-
/// Returns the TF end
91-
TFType getTFEnd() { return mTFEnd; }
92-
9390
/// Returns mask as string
9491
std::string getMasksAsString() { return mMasksString; }
9592

9693
/// Sets reference masks
9794
void setReferenceMasks(const std::vector<ColumnData>& refMasks) { mRefMasks = refMasks; }
9895

9996
private:
100-
TFType mTFEnd = 0; /// Ending TF
101-
10297
std::vector<ColumnData> mBadChannels; /// List of bad channels
10398
std::vector<ColumnData> mRefMasks; /// Reference masks
10499
std::string mMasksString; /// Masks as string

Detectors/MUON/MID/Calibration/src/ChannelCalibrator.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ void ChannelCalibrator::finalizeSlot(Slot& slot)
7777
LOG(info) << "Finalize slot " << slot.getTFStart() << " <= TF <= " << slot.getTFEnd();
7878

7979
// Keep track of last TimeFrame, since the masks will be valid from now on
80-
mTFEnd = slot.getTFEnd();
81-
8280
mBadChannels = makeBadChannels(noiseData->getScalers(), mEventsCounter, mThreshold);
8381

8482
// Get the masks for the electronics

Detectors/MUON/MID/Workflow/src/ChannelCalibratorSpec.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class ChannelCalibratorDeviceDPL
119119
{
120120
o2::ccdb::CcdbObjectInfo info;
121121
std::map<std::string, std::string> md;
122-
o2::calibration::Utils::prepareCCDBobjectInfo(payload, info, path, md, mCalibrator.getTFEnd(), o2::ccdb::CcdbObjectInfo::INFINITE_TIMESTAMP);
122+
o2::calibration::Utils::prepareCCDBobjectInfo(payload, info, path, md, mCalibrator.getCurrentTFInfo().creation, mCalibrator.getCurrentTFInfo().creation + 5 * o2::ccdb::CcdbObjectInfo::DAY);
123123
auto image = o2::ccdb::CcdbApi::createObjectImage(&payload, &info);
124124
LOG(info) << "Sending object " << info.getPath() << "/" << info.getFileName() << " of size " << image->size()
125125
<< " bytes, valid for " << info.getStartValidityTimestamp() << " : " << info.getEndValidityTimestamp();

0 commit comments

Comments
 (0)