![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
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"
37 void **ppvInterface) {
38 if (riid == IConversionSvc::interfaceID()) {
39 *ppvInterface =
dynamic_cast<IConversionSvc *
>(
this);
40 }
else if (riid == IDetDescrCnvSvc::interfaceID()) {
43 return ConversionSvc::queryInterface(riid, ppvInterface);
46 return StatusCode::SUCCESS;
119 return StatusCode::SUCCESS;
128 const std::string * ,
129 const unsigned long * ,
130 IOpaqueAddress *&refpAddress) {
131 refpAddress =
nullptr;
132 return StatusCode::FAILURE;
138 const std::string &refAddress,
139 IOpaqueAddress *&refpAddress) {
147 return StatusCode::FAILURE;
149 if (ddAddr->
fromString(refAddress).isFailure()) {
151 log <<
MSG::FATAL <<
"Could not assign address " << refAddress
153 return StatusCode::FAILURE;
158 return (refpAddress != 0) ? StatusCode::SUCCESS : StatusCode::FAILURE;
164 std::string &refAddress) {
168 return StatusCode::FAILURE;
175 const std::string &
name)
const {
184 ATH_MSG_INFO(
" filling address for " << (*addr->par()) <<
" with CLID "
185 << addr->clID() <<
" and storage type "
187 <<
" to detector store ");
188 return StatusCode::SUCCESS;
StatusCode toString(std::string &refString) const
write technology-specific part of address to string
virtual StatusCode initialize()
Initialize the service.
BooleanProperty m_hasSTGC
virtual StatusCode convertAddress(const IOpaqueAddress *pAddress, std::string &refAddress)
Convert address to string form.
BooleanProperty m_hasCSC
Switch on/off the muon detectors.
StoreGateSvc * m_detStore
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
AthROOTErrorHandlerSvc * svc
virtual ~DetDescrCnvSvc()
Standard Destructor.
uint32_t CLID
The Class ID type.
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvInterface)
Identify interfaces to which this service is responsive.
StatusCode recordAddress(const std::string &skey, IOpaqueAddress *pAddress, bool clearAddressFlag=true)
Create a proxy object using an IOpaqueAddress and a transient key.
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.
constexpr long DetDescr_StorageType
virtual StatusCode addToDetStore(const CLID &clid, const std::string &name) const
Add new address to the Detector Store.
StatusCode fromString(const std::string &stringifiedIOA)
initialize technology-specific part of IOA from stringifiedIOA