8#include "GaudiKernel/IClassIDSvc.h"
9#include "GaudiKernel/MsgStream.h"
14 ISvcLocator* pSvcLocator) :
27 return StatusCode::SUCCESS;
32 return StatusCode::SUCCESS;
37 for (
unsigned int iobj=0;iobj<
m_objectList.size();++iobj) {
39 std::string::size_type ihash=
m_objectList[iobj].find_first_of(
'#');
40 if (ihash==std::string::npos) {
42 return StatusCode::FAILURE;
44 std::string::size_type ihash2=
m_objectList[iobj].find_first_of(
'#',ihash+1);
45 if (ihash2 != std::string::npos) ihash2-=(1+ihash);
46 const std::string objName=
m_objectList[iobj].substr(0,ihash);
47 const std::string objKey=
m_objectList[iobj].substr(ihash+1,ihash2);
49 ATH_MSG_INFO (
"Retrieving object " << objName <<
", key " << objKey );
57 ATH_MSG_ERROR (
"Could not find proxy for object of type " << objName <<
" with key " << objKey );
58 return StatusCode::FAILURE;
61 if (proxy->accessData()!=
nullptr) {
62 ATH_MSG_INFO (
"Sucessfully retrieved object of type " << objName <<
" with key " << objKey );
65 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
uint32_t CLID
The Class ID type.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
const ServiceHandle< StoreGateSvc > & detStore() const
ForceLoadCondObj(const std::string &name, ISvcLocator *pSvcLocator)
ServiceHandle< IClassIDSvc > p_clidsvc
std::vector< std::string > m_objectList