 |
ATLAS Offline Software
|
Go to the documentation of this file.
12 m_hvmapTool(
"LArHVMapTool",this)
27 return StatusCode::SUCCESS;
34 if (writeHandle.isValid()) {
36 return StatusCode::SUCCESS;
41 if(!calodetdescrmgr) {
43 return StatusCode::FAILURE;
49 return StatusCode::FAILURE;
54 writeHandle.addDependency(hvCabling);
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) {
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;
def retrieve(aClass, aKey=None)
SG::WriteCondHandleKey< LArHVNMap > m_mapKey
ToolHandle< ILArHVMapTool > m_hvmapTool
SG::ReadCondHandleKey< LArHVIdMapping > m_hvCablingKey
void incHVline(unsigned hvHash)
#define ATH_MSG_VERBOSE(x)
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
std::vector< Identifier >::const_iterator id_iterator
Type for iterators over identifiers.
const ServiceHandle< StoreGateSvc > & detStore() const
The standard StoreGateSvc/DetectorStore Returns (kind of) a pointer to the StoreGateSvc.
An algorithm that can be simultaneously executed in multiple threads.
id_iterator cell_begin() const
begin iterator over full set of Identifiers (LAr + Tiles)
This class initializes the Calo (LAr and Tile) offline identifiers.
virtual StatusCode execute(const EventContext &ctx) const override final
virtual StatusCode initialize() override final
::StatusCode StatusCode
StatusCode definition for legacy code.
id_iterator cell_end() const
end iterator over full set of Identifiers (LAr + Tiles)
const CaloCell_ID * m_caloHelper
StatusCode initialize(bool used=true)
LArHVlineMapAlg(const std::string &name, ISvcLocator *pSvcLocator)
This class provides the client interface for accessing the detector description information common to...
#define ATH_MSG_WARNING(x)
const LArHVLineID * m_hvlineHelper
size_type hvlineHashMax() const
Define hash tables max size.
SG::ReadCondHandleKey< CaloDetDescrManager > m_caloDetDescrMgrKey
IdentifierHash hvlineHash(HWIdentifier hvline_id) const
Create an HighVoltage line hash identifiers from identifiers.