|
ATLAS Offline Software
|
Go to the documentation of this file.
21 #include "GaudiKernel/IClassIDSvc.h"
22 #include "GaudiKernel/MsgStream.h"
37 std::string type_name;
40 CHECK(
clidsvc->getTypeNameOfID (objType(), type_name) );
42 MsgStream
log(
msgSvc(),
"CaloIDHelper_IDDetDescrCnv");
43 log << MSG::INFO <<
"in createObj: creating a " << type_name
44 <<
" helper object in the detector store" <<
endmsg;
51 return StatusCode::FAILURE;
53 std::string helperKey = *( ddAddr->par() );
54 if (
"" == helperKey) {
76 log << MSG::ERROR <<
"Unable to initialize " << type_name <<
endmsg;
77 return StatusCode::FAILURE;
83 return StatusCode::SUCCESS;
virtual StatusCode createHelper(const std::string &helperKey, IdHelper *&idhelper, DataObject *&pObj)=0
Create the helper object.
CaloIDHelper_IDDetDescrCnv(const CLID &clid, ISvcLocator *svcloc)
Constructor.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Called by the converter infrastructure to create an object.
The Athena Transient Store API.
msgSvc
Provide convenience handles for various services.
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
::StatusCode StatusCode
StatusCode definition for legacy code.
#define CHECK(...)
Evaluate an expression and check for errors.
int initializeHelper(IdHelper &helper) const
Return value: 0 OK, >0 error.
uint32_t CLID
The Class ID type.
virtual void setMessageSvc(IMessageSvc *msgSvc)=0
IdDictManager is the interface to identifier dictionaries.
Helpers for checking error return status codes and reporting errors.
Common code for creating calo ID helpers in the detector store.
static long storageType()
Storage type for all DetDescrConverters.
virtual long int repSvcType() const
Return the service type.