27 return StatusCode::SUCCESS;
36 return StatusCode::SUCCESS;
41 if(!calodetdescrmgr) {
43 return StatusCode::FAILURE;
49 return StatusCode::FAILURE;
60 CaloCell_Base_ID ::id_iterator itb =
m_caloHelper->cell_begin();
61 CaloCell_Base_ID ::id_iterator ite =
m_caloHelper->cell_end();
63 for(; itb<ite; ++itb) {
66 std::vector<HWIdentifier> linevec;
67 m_hvmapTool->GetHVLines(*itb, calodetdescrmgr, linevec);
69 for(
unsigned int i=0; i<linevec.size(); ++i) {
71 hvmap->incHVline(lhash);
72 ATH_MSG_VERBOSE(
"Adding cell: "<<itb->get_identifier32().get_compact() <<
" to a line: "<<linevec[i].get_identifier32().get_compact());
75 ATH_MSG_WARNING(
"Why do not have HVlines for the cell: " << itb->get_identifier32().get_compact());
79 if(writeHandle.
record(std::move(hvmap)).isFailure()) {
80 ATH_MSG_ERROR(
"Could not record LArHVNMap object with " << writeHandle.
key());
81 return StatusCode::FAILURE;
86 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
#define ATH_MSG_WARNING(x)
const ServiceHandle< StoreGateSvc > & detStore() const
An algorithm that can be simultaneously executed in multiple threads.
This class provides the client interface for accessing the detector description information common to...
This class initializes the Calo (LAr and Tile) offline identifiers.
LArHVlineMapAlg(const std::string &name, ISvcLocator *pSvcLocator)
ToolHandle< ILArHVMapTool > m_hvmapTool
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
SG::WriteCondHandleKey< LArHVNMap > m_mapKey
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
const CaloCell_ID * m_caloHelper
const LArHVLineID * m_hvlineHelper
virtual StatusCode initialize() override final
virtual StatusCode execute(const EventContext &ctx) const override final
const std::string & key() const
void addDependency(const EventIDRange &range)
StatusCode record(const EventIDRange &range, T *t)
record handle, with explicit range DEPRECATED