19#include "GaudiKernel/IClassIDSvc.h"
20#include "GaudiKernel/MsgStream.h"
35 std::string type_name;
36 SmartIF<IClassIDSvc> clidsvc{ service (
"ClassIDSvc") };
37 CHECK( clidsvc.isValid() );
38 CHECK( clidsvc->getTypeNameOfID (objType(), type_name) );
44 return StatusCode::FAILURE;
46 std::string helperKey = *( ddAddr->par() );
47 if (helperKey.empty()) {
65 return StatusCode::FAILURE;
71 return StatusCode::SUCCESS;
Common code for creating calo ID helpers in the detector store.
a traits class that associates a CLID to a type T It also detects whether T inherits from Gaudi DataO...
Helpers for checking error return status codes and reporting errors.
#define CHECK(...)
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Called by the converter infrastructure to create an object.
virtual StatusCode createHelper(const std::string &helperKey, IdHelper *&idhelper, DataObject *&pObj)=0
Create the helper object.
virtual long int repSvcType() const
Return the service type.
CaloIDHelper_IDDetDescrCnv(const CLID &clid, ISvcLocator *svcloc)
Constructor.
static long storageType()
Storage type for all DetDescrConverters.
DetDescrConverter(const CLID &myCLID, ISvcLocator *svcloc, const char *name=nullptr)
const ServiceHandle< StoreGateSvc > & detStore() const
Handle to DetectorStore.
IdDictManager is the interface to identifier dictionaries.
int initializeHelper(IdHelper &helper) const
Return value: 0 OK, >0 error.
This is an abstract base class for helper classes that know how to convert Identifier <-> IdentifierH...