|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/MsgStream.h"
36 MsgStream
log(
msgSvc(),
"ZdcIDDetDescrCnv");
40 log << MSG::ERROR <<
"DetDescrConverter::initialize failed" <<
endmsg;
59 return StatusCode::SUCCESS;
67 MsgStream
log(
msgSvc(),
"ZdcIDDetDescrCnv");
70 return StatusCode::SUCCESS;
79 MsgStream
log(
msgSvc(),
"ZdcIDDetDescrCnv");
80 log << MSG::INFO <<
"in createObj: creating a ZdcID helper object in the detector store" <<
endmsg;
88 return StatusCode::FAILURE;
92 std::string helperKey = *( ddAddr->par() );
93 if (
"" == helperKey) {
105 return StatusCode::FAILURE;
113 return StatusCode::FAILURE;
122 bool initHelper =
false;
127 std::string inDetIDTag =
mgr->tag();
130 bool doChecks =
mgr->do_checks();
135 <<
"unable to find idDict for InnerDetector"
137 return StatusCode::FAILURE;
141 std::string inDetIDFileName = dict->
file_name();
144 std::string inDetIdDictTag = dict->
dict_tag();
161 << inDetIDFileName <<
endmsg;
188 log << MSG::ERROR <<
"Unable to initialize ZdcID" <<
endmsg;
189 return StatusCode::FAILURE;
201 return StatusCode::SUCCESS;
virtual void setMessageSvc(IMessageSvc *msgSvc) override
const long DetDescr_StorageType
std::vector< Identifier > ID
static const CLID & classID()
ZdcID * m_zdcId
The helper - only will create it once.
DataObject * asStorable(T *pObject)
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
static const CLID & ID()
the CLID of T
std::string m_inDetIDTag
Internal InDet id tag.
The Athena Transient Store API.
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
Default, invalid implementation of ClassID_traits.
virtual long int repSvcType() const
virtual StatusCode initialize()
std::string dict_tag(void) const
Access to the dictionary tag.
int initializeHelper(IdHelper &helper) const
Return value: 0 OK, >0 error.
uint32_t CLID
The Class ID type.
IdDictManager is the interface to identifier dictionaries.
std::string m_inDetIdDictTag
Tag of RDB record for InDet ids.
static long storageType()
std::string file_name(void) const
Access to file name.
const IdDictMgr * manager(void) const
ZdcIDDetDescrCnv(ISvcLocator *svcloc)
bool m_doChecks
Whether or not.
std::string m_inDetIDFileName
File to be read for InDet ids.
virtual StatusCode finalize()