7#include "CoralBase/Blob.h"
26 return StatusCode::SUCCESS;
37 return StatusCode::SUCCESS;
45 ATH_MSG_WARNING(
" Cannot find /LAR/IdentifierOfl/HVLineToElectrodeMap from database, Use ASCII file indeed !!!");
57 std::unique_ptr<LArHVIdMapping> HVIdMap = std::make_unique<LArHVIdMapping>(calocellID, hvlineID, electrodeID);
58 std::map<HWIdentifier,HWIdentifier> &elecLineMap = HVIdMap->m_electrode_hvline_map;
59 std::map<HWIdentifier,std::vector<HWIdentifier> > &lineElecMap = HVIdMap->m_hvline_electrode_map;
69 if(writeHandle.
record(std::move(HVIdMap)).isFailure()) {
70 ATH_MSG_ERROR(
"Could not record LArCalibLineMapping object with "
72 <<
" with EventRange " << writeHandle.
getRange()
73 <<
" into Conditions Store");
74 return StatusCode::FAILURE;
77 ATH_MSG_INFO(
"recorded new " << writeHandle.
key() <<
" with range " << writeHandle.
getRange() <<
" into Conditions Store");
80 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
Helper to read HV ID mapping data from a file or conditions.
const ServiceHandle< StoreGateSvc > & detStore() const
An AttributeList represents a logical row of attributes in a metadata table.
Helper class for offline cell identifiers.
Helper for the Liquid Argon Calorimeter cell at the electrode level.
SG::WriteCondHandleKey< LArHVIdMapping > m_writeKey
SG::ReadCondHandleKey< AthenaAttributeList > m_readKey
virtual StatusCode execute(const EventContext &ctx) const override
virtual StatusCode initialize() override
Helper to read HV ID mapping data from a file or conditions.
Helper for the Liquid Argon Calorimeter High-Voltage identifiers.
const std::string & key() const
void addDependency(const EventIDRange &range)
const EventIDRange & getRange() const
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED