|
ATLAS Offline Software
|
Go to the documentation of this file.
10 #include "CoralBase/Blob.h"
31 return StatusCode::SUCCESS;
38 return StatusCode::SUCCESS;
47 const EventContext& ctx = Gaudi::Hive::currentContext();
52 coral::AttributeListSpecification*
spec =
new coral::AttributeListSpecification;
53 spec->extend(
"HVScaleCorr",
"blob");
54 spec->extend<
unsigned>(
"version");
55 auto coll = std::make_unique<CondAttrListCollection>(
true);
58 attrList[
"version"].setValue(0U);
60 blob.resize(hashMax*
sizeof(
float));
61 float* pblob=
static_cast<float*
>(
blob.startingAddress());
63 for (
unsigned hs=0;
hs<hashMax;++
hs) {
65 if (
cabling->isOnlineConnectedFromHash(
hs)) {
68 ATH_MSG_VERBOSE(
"Filling value for id " <<
id.get_identifier32().get_compact());
73 coll->add(1,attrList);
76 return StatusCode::SUCCESS;
def retrieve(aClass, aKey=None)
This file defines the class for a collection of AttributeLists where each one is associated with a ch...
virtual StatusCode initialize() override
SG::ReadCondHandleKey< ILArHVScaleCorr > m_scaleCorrKey
#define ATH_MSG_VERBOSE(x)
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
SG::ReadCondHandleKey< LArOnOffIdMapping > m_cablingKey
::StatusCode StatusCode
StatusCode definition for legacy code.
const LArOnlineID * m_lar_on_id
size_type channelHashMax(void) const
Define channel hash tables max size.
StatusCode initialize(bool used=true)
Gaudi::Property< std::string > m_folderName
virtual const float & HVScaleCorr(const HWIdentifier &id) const =0
virtual StatusCode stop() override
virtual StatusCode execute() override
virtual ~LArHVCorrMaker()