12#include "GaudiKernel/IConversionSvc.h"
13#include "GaudiKernel/IConverter.h"
14#include "GaudiKernel/IDataSelector.h"
15#include "GaudiKernel/IOpaqueAddress.h"
16#include "GaudiKernel/ISvcLocator.h"
108 return StatusCode::SUCCESS;
117 const std::string * ,
118 const unsigned long * ,
119 IOpaqueAddress *&refpAddress) {
120 refpAddress =
nullptr;
121 return StatusCode::FAILURE;
127 const std::string &refAddress,
128 IOpaqueAddress *&refpAddress) {
134 MsgStream log(msgSvc(), name());
135 log << MSG::FATAL <<
"Could not cast to DetDescrAddress." <<
endmsg;
136 return StatusCode::FAILURE;
138 if (ddAddr->
fromString(refAddress).isFailure()) {
139 MsgStream log(msgSvc(), name());
140 log << MSG::FATAL <<
"Could not assign address " << refAddress
142 return StatusCode::FAILURE;
147 return (refpAddress != 0) ? StatusCode::SUCCESS : StatusCode::FAILURE;
153 std::string &refAddress) {
157 return StatusCode::FAILURE;
164 const std::string &name)
const {
173 ATH_MSG_INFO(
" filling address for " << (*addr->par()) <<
" with CLID "
174 << addr->clID() <<
" and storage type "
176 <<
" to detector store ");
178 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
const long DetDescr_StorageType
uint32_t CLID
The Class ID type.
Simple smart pointer for Gaudi-style refcounted objects.
StatusCode fromString(const std::string &stringifiedIOA)
initialize technology-specific part of IOA from stringifiedIOA
StatusCode toString(std::string &refString) const
write technology-specific part of address to string
virtual StatusCode addToDetStore(const CLID &clid, const std::string &name) const
Add new address to the Detector Store.
ServiceHandle< StoreGateSvc > m_detStore
BooleanProperty m_hasCSC
Switch on/off the muon detectors.
virtual StatusCode initialize()
Initialize the service.
virtual StatusCode createAddress(long svc_type, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress)
Basic create address.
DetDescrCnvSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
BooleanProperty m_hasSTGC
virtual ~DetDescrCnvSvc()
Standard Destructor.
BooleanProperty m_hasTRT
Switch on/off the TRT.
virtual StatusCode convertAddress(const IOpaqueAddress *pAddress, std::string &refAddress)
Convert address to string form.