32 ATH_CHECK(DetDescrConverter::initialize());
34 return StatusCode::SUCCESS;
42 ATH_MSG_INFO(
"in createObj: creating a HGTD_ID helper object in the detector store" );
50 bool initHelper =
false;
55 std::string inDetIDTag = mgr->tag();
58 bool doChecks = mgr->do_checks();
63 return StatusCode::FAILURE;
67 std::string inDetIDFileName = dict->file_name();
69 std::string inDetIdDictTag = dict->dict_tag();
77 ATH_MSG_DEBUG(
" Changed internal InDet id tag: " << inDetIDTag );
82 ATH_MSG_DEBUG(
" Changed InDetFileName:" << inDetIDFileName );
87 ATH_MSG_DEBUG(
" Changed InDetIdDictTag: " << inDetIdDictTag );
97 m_hgtdId = std::make_unique<HGTD_ID>();
99 if(dict->version() ==
"P2-RUN4"){
100 m_hgtdId->set_useNewIdentifierScheme(
true);
107 return StatusCode::FAILURE;
119 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
std::vector< Identifier > ID
const long DetDescr_StorageType
uint32_t CLID
The Class ID type.
DetDescrConverter(const CLID &myCLID, ISvcLocator *svcloc, const char *name=nullptr)
const ServiceHandle< StoreGateSvc > & detStore() const
Handle to DetectorStore.
std::string m_inDetIDFileName
File to be read for InDet ids.
static long storageType()
virtual long int repSvcType() const override final
static const CLID & classID()
std::string m_inDetIdDictTag
Tag of RDB record for InDet ids.
virtual StatusCode initialize() override final
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj) override final
std::string m_inDetIDTag
Internal InDet id tag.
HGTD_IDDetDescrCnv(ISvcLocator *svcloc)
bool m_doChecks
Whether or not.
std::unique_ptr< HGTD_ID > m_hgtdId
The helper - only will create it once.
This is an Identifier helper class for the HGTD subdetector.
IdDictManager is the interface to identifier dictionaries.
const IdDictMgr * manager(void) const
int initializeHelper(IdHelper &helper) const
Return value: 0 OK, >0 error.
DataObject * asStorable(SG::DataObjectSharedPtr< T > pObject)
Default, invalid implementation of ClassID_traits.