|
ATLAS Offline Software
|
Go to the documentation of this file.
15 #include "GaudiKernel/MsgStream.h"
37 MsgStream
log(
msgSvc(),
"SCT_IDDetDescrCnv");
41 log << MSG::ERROR <<
"DetDescrConverter::initialize failed" <<
endmsg;
60 return StatusCode::SUCCESS;
68 MsgStream
log(
msgSvc(),
"SCT_IDDetDescrCnv");
71 return StatusCode::SUCCESS;
80 MsgStream
log(
msgSvc(),
"SCT_IDDetDescrCnv");
81 log << MSG::INFO <<
"in createObj: creating a SCT_ID helper object in the detector store" <<
endmsg;
89 return StatusCode::FAILURE;
93 std::string helperKey = *( ddAddr->par() );
94 if (
"" == helperKey) {
107 return StatusCode::FAILURE;
115 return StatusCode::FAILURE;
123 bool initHelper =
false;
128 std::string inDetIDTag =
mgr->tag();
131 bool doChecks =
mgr->do_checks();
136 <<
"unable to find idDict for InnerDetector"
138 return StatusCode::FAILURE;
142 std::string inDetIDFileName = dict->
file_name();
145 std::string inDetIdDictTag = dict->
dict_tag();
162 << inDetIDFileName <<
endmsg;
189 log << MSG::ERROR <<
"Unable to initialize SCT_ID" <<
endmsg;
190 return StatusCode::FAILURE;
202 return StatusCode::SUCCESS;
std::string m_inDetIdDictTag
Tag of RDB record for InDet ids.
virtual StatusCode finalize()
static long storageType()
This is an Identifier helper class for the SCT subdetector. This class is a factory for creating comp...
virtual void setMessageSvc(IMessageSvc *msgSvc) override
const long DetDescr_StorageType
std::vector< Identifier > ID
SCT_IDDetDescrCnv(ISvcLocator *svcloc)
DataObject * asStorable(T *pObject)
std::string m_inDetIDFileName
File to be read for InDet ids.
static const CLID & ID()
the CLID of T
The Athena Transient Store API.
virtual long int repSvcType() const
msgSvc
Provide convenience handles for various services.
::StatusCode StatusCode
StatusCode definition for legacy code.
Default, invalid implementation of ClassID_traits.
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.
SCT_ID * m_sctId
The helper - only will create it once.
std::string file_name(void) const
Access to file name.
std::string m_inDetIDTag
Internal InDet id tag.
const IdDictMgr * manager(void) const
static const CLID & classID()
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
bool m_doChecks
Whether or not.