1#include "GaudiKernel/MsgStream.h"
2#include "GaudiKernel/Bootstrap.h"
4#include "GaudiKernel/Service.h"
5#include "GaudiKernel/DataSvc.h"
9#include "GaudiKernel/ThreadGaudi.h"
30 std::string evtDataSvc_name(
"EventDataSvc");
31 if(isGaudiThreaded(
m_name)){
32 evtDataSvc_name += getGaudiThreadIDfromName(
m_name);
33 std::cout <<
"---------------------------------- " << evtDataSvc_name << std::endl;
36 IDataProviderSvc* evtSvc;
37 StatusCode sc = pSvcLoc->service(evtDataSvc_name.c_str(),evtSvc,
true);
39 std::cout <<
"RawDataProviderBase::initialize() ERROR Could not load EventDataSvc" << std::endl;
40 return StatusCode::FAILURE;
49 MsgStream log(pMsg,
m_name);
50 log << MSG::INFO <<
"RawDataProviderBase::initialize() Test..." << endreq;
55 if (!sc.isSuccess())
throw SvcDisable(
"MessageSvc");
59 std::cout <<
"RawDataProviderBase::initialize() ERROR Could not get MessageSvc" << std::endl;
62 return StatusCode::SUCCESS;
StatusCode initialize(ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
ISvcLocator * m_svcLocator