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"
105 return StatusCode::SUCCESS;
114 const std::string * ,
115 const unsigned long * ,
116 IOpaqueAddress *&refpAddress) {
117 refpAddress =
nullptr;
118 return StatusCode::FAILURE;
124 const std::string &refAddress,
125 IOpaqueAddress *&refpAddress) {
131 MsgStream log(msgSvc(), name());
132 log << MSG::FATAL <<
"Could not cast to DetDescrAddress." <<
endmsg;
133 return StatusCode::FAILURE;
135 if (ddAddr->
fromString(refAddress).isFailure()) {
136 MsgStream log(msgSvc(), name());
137 log << MSG::FATAL <<
"Could not assign address " << refAddress
139 return StatusCode::FAILURE;
144 return (refpAddress != 0) ? StatusCode::SUCCESS : StatusCode::FAILURE;
150 std::string &refAddress) {
154 return StatusCode::FAILURE;
161 const std::string &name)
const {
170 ATH_MSG_INFO(
" filling address for " << (*addr->par()) <<
" with CLID "
171 << addr->clID() <<
" and storage type "
173 <<
" to detector store ");
175 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.
virtual StatusCode convertAddress(const IOpaqueAddress *pAddress, std::string &refAddress)
Convert address to string form.