27 return StatusCode::SUCCESS;
43 auto cali = std::make_unique<OnlineLumiCalibrationCondData>();
44 for (
const auto& p : *calibrationFolder.
retrieve()) {
45 unsigned int channel = p.first;
46 const coral::AttributeList& attrList = p.second;
48 if (!lc.setCalibration(attrList)) {
49 ATH_MSG_WARNING(
"error processing calibration for channel " << channel );
52 ATH_MSG_DEBUG(
"Calibration for channel " << channel <<
": " << lc );
53 cali->set (channel, std::move (lc));
60 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Produce lumi calibration data from COOL.
SG::WriteCondHandleKey< OnlineLumiCalibrationCondData > m_lumiCalibOutputKey
Output conditions object.
virtual StatusCode execute(const EventContext &ctx) const override final
Algorithm execute method.
virtual StatusCode initialize() override final
Gaudi initialize method.
SG::ReadCondHandleKey< CondAttrListCollection > m_calibrationFolderInputKey
Input conditions object.
Utility class to apply calibrations from /TDAQ/OLC/CALIBRATIONS folder.
const_pointer_type retrieve()
bool range(EventIDRange &r)
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED