48 const EventContext& ctx = Gaudi::Hive::currentContext();
66 coral::AttributeListSpecification* spec =
new coral::AttributeListSpecification;
67 spec->extend(
"HVScaleCorr",
"blob");
68 spec->extend<
unsigned>(
"version");
69 auto coll = std::make_unique<CondAttrListCollection>(
true);
70 coral::AttributeList attrList(*spec);
72 attrList[
"version"].setValue(0U);
73 coral::Blob& blob=attrList[
"HVScaleCorr"].data<coral::Blob>();
74 blob.resize(hashMax*
sizeof(
float));
75 float* pblob=
static_cast<float*
>(blob.startingAddress());
77 for (
unsigned hs=0;hs<hashMax;++hs) {
79 if (cabling->isOnlineConnectedFromHash(hs)) {
80 const Identifier id=cabling->cnvToIdentifierFromHash(hs);
81 const HWIdentifier hwid = cabling->createSignalChannelID (
id);
82 ATH_MSG_VERBOSE(
"Filling value for id " <<
id.get_identifier32().get_compact());
83 value=scaleCorr->HVScaleCorr(hwid);
89 coll->add(0,attrList);
91 coll->add(1,attrList);
95 return StatusCode::SUCCESS;