Skip to content

Commit dcdd7e6

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

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,15 @@ class LHCClockCalibrator final : public o2::calibration::TimeSlotCalibration<o2:
9999

100100
void setCalibTOFapi(CalibTOFapi* api) { mCalibTOFapi = api; }
101101
CalibTOFapi* getCalibTOFapi() const { return mCalibTOFapi; }
102-
102+
const char* getPath() const { return mPath.Data(); }
103103
private:
104104
int mMinEntries = 0;
105105
int mNBins = 0;
106106
float mRange = 0.;
107107
CalibTOFapi* mCalibTOFapi = nullptr;
108108
CcdbObjectInfoVector mInfoVector; // vector of CCDB Infos , each element is filled with the CCDB description of the accompanying LHCPhase
109109
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
110+
TString mPath = "TOF/Calib/LHCphaseSync";
110111

111112
#ifdef DEBUGGING
112113
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)