Skip to content

Commit 6456ba2

Browse files
committed
path for LHCphase ccdb configurable
1 parent 96e2f45 commit 6456ba2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Detectors/TOF/calibration/include/TOFCalibration/LHCClockCalibrator.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class LHCClockCalibrator final : public o2::calibration::TimeSlotCalibration<o2:
9999

100100
void setCalibTOFapi(CalibTOFapi* api) { mCalibTOFapi = api; }
101101
CalibTOFapi* getCalibTOFapi() const { return mCalibTOFapi; }
102+
const char* getPath() const { return mPath.Data(); }
102103

103104
private:
104105
int mMinEntries = 0;
@@ -107,6 +108,7 @@ class LHCClockCalibrator final : public o2::calibration::TimeSlotCalibration<o2:
107108
CalibTOFapi* mCalibTOFapi = nullptr;
108109
CcdbObjectInfoVector mInfoVector; // vector of CCDB Infos , each element is filled with the CCDB description of the accompanying LHCPhase
109110
LHCphaseVector mLHCphaseVector; // vector of LhcPhase, each element is filled in "process" when we finalize one slot (multiple can be finalized during the same "process", which is why we have a vector. Each element is to be considered the output of the device, and will go to the CCDB
111+
TString mPath = "TOF/Calib/LHCphaseSync";
110112

111113
#ifdef DEBUGGING
112114
int mNslot = 0;

Detectors/TOF/calibration/src/LHCClockCalibrator.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void LHCClockCalibrator::finalizeSlot(Slot& slot)
158158
l.setStartValidity(starting);
159159
l.setEndValidity(stopping);
160160

161-
mInfoVector.emplace_back("TOF/Calib/LHCphase", clName, flName, md, starting, stopping);
161+
mInfoVector.emplace_back(mPath.Data(), clName, flName, md, starting, stopping);
162162
mLHCphaseVector.emplace_back(l);
163163

164164
slot.print();

0 commit comments

Comments
 (0)