6#include "GaudiKernel/IDataProviderSvc.h"
7#include "GaudiKernel/SmartDataPtr.h"
39 ATH_MSG_INFO(
"Creating TBDetDescrManager in DetectorStore" );
47 std::vector<TBElement>
vec;
62 ATH_MSG_ERROR(
"failed to register TBDetDescrManager in Detector Store" );
79 if (
sc != StatusCode::SUCCESS) {
80 ATH_MSG_INFO(
"unable to fill address for " << (*addr->par())
81 <<
" with CLID " << addr->clID()
82 <<
" and storage type " << addr->svcType()
83 <<
" to detector store " );
86 unsigned int st = addr->svcType();
88 <<
" with CLID " << addr->clID()
89 <<
" and storage type " << st
90 <<
" to detector store " );
96 ATH_MSG_INFO(
"Retrieving TBDetDescrManager from DetectorStore" );
100 ATH_MSG_ERROR(
"Unable to retrieve TBDetDescrManager from DetectorStore" );
103 return StatusCode::RECOVERABLE;
109 return StatusCode::SUCCESS;
141 c_TBDDM->getAll(pTBElementContainer);
146 ATH_MSG_FATAL(
"failed to register the TBElementContainer" );
147 return StatusCode::FAILURE;
168 m_TBDDM->initialize(pContainer);
178 return StatusCode::SUCCESS;
184 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
std::vector< size_t > vec
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
ServiceHandle< StoreGateSvc > & evtStore()
const ServiceHandle< StoreGateSvc > & detStore() const
Simple smart pointer for Gaudi-style refcounted objects.
virtual StatusCode finalize() override
std::string m_TBElementContainer
const TBDetDescrManager * c_TBDDM
virtual StatusCode initialize() override
TBDetDescrLoader(const std::string &name, ISvcLocator *pSvcLocator)
virtual StatusCode execute() override
std::string m_TBDetDescrManager
TBDetDescrManager * m_TBDDM
virtual ~TBDetDescrLoader()