BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
RawDataProviderBase Class Reference

#include <RawDataProviderBase.h>

+ Inheritance diagram for RawDataProviderBase:

Public Member Functions

 RawDataProviderBase (const char *name)
 
virtual ~RawDataProviderBase ()
 
StatusCode initialize (ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
 
void setSvcLocator (ISvcLocator *svcLoc)
 
void setMsgSvc (IMessageSvc *svc)
 
void setMsgName (const char *name)
 
 RawDataProviderBase (const char *name)
 
virtual ~RawDataProviderBase ()
 
StatusCode initialize (ISvcLocator *svcLoc=0, IMessageSvc *pMsg=0)
 
void setSvcLocator (ISvcLocator *svcLoc)
 
void setMsgSvc (IMessageSvc *svc)
 
void setMsgName (const char *name)
 

Protected Member Functions

 RawDataProviderBase ()
 
 RawDataProviderBase ()
 

Protected Attributes

ISvcLocator * m_svcLocator
 
IMessageSvc * m_msgSvc
 
std::string m_name
 

Detailed Description

Constructor & Destructor Documentation

◆ RawDataProviderBase() [1/4]

◆ ~RawDataProviderBase() [1/2]

virtual RawDataProviderBase::~RawDataProviderBase ( )
inlinevirtual

◆ RawDataProviderBase() [2/4]

RawDataProviderBase::RawDataProviderBase ( )
protected

Definition at line 12 of file RawDataProviderBase.cxx.

12 :
13 m_svcLocator(0),
14 m_msgSvc(0),
15 m_name()
16{}

◆ RawDataProviderBase() [3/4]

RawDataProviderBase::RawDataProviderBase ( const char *  name)

◆ ~RawDataProviderBase() [2/2]

virtual RawDataProviderBase::~RawDataProviderBase ( )
inlinevirtual

◆ RawDataProviderBase() [4/4]

RawDataProviderBase::RawDataProviderBase ( )
protected

Member Function Documentation

◆ initialize() [1/2]

StatusCode RawDataProviderBase::initialize ( ISvcLocator *  svcLoc = 0,
IMessageSvc *  pMsg = 0 
)

Definition at line 26 of file RawDataProviderBase.cxx.

26 {
27 if(pSvcLoc!=0){
28 // test service point
29 // tianhl for mt
30 std::string evtDataSvc_name("EventDataSvc");
31 if(isGaudiThreaded(m_name)){
32 evtDataSvc_name += getGaudiThreadIDfromName(m_name);
33 std::cout << "---------------------------------- " << evtDataSvc_name << std::endl;
34 }
35 // tianhl for mt
36 IDataProviderSvc* evtSvc;
37 StatusCode sc = pSvcLoc->service(evtDataSvc_name.c_str(),evtSvc,true);
38 if (!sc.isSuccess()){
39 std::cout << "RawDataProviderBase::initialize() ERROR Could not load EventDataSvc" << std::endl;
40 return StatusCode::FAILURE;
41 }
42 m_svcLocator= pSvcLoc;
43 }
44 else {
45 m_svcLocator= Gaudi::svcLocator();
46 }
47 try{
48 if(pMsg!=0){
49 MsgStream log(pMsg, m_name);
50 log << MSG::INFO << "RawDataProviderBase::initialize() Test..." << endreq;
51 m_msgSvc=pMsg;
52 }
53 else{
54 StatusCode sc = m_svcLocator->service("MessageSvc", m_msgSvc ,true);
55 if (!sc.isSuccess()) throw SvcDisable("MessageSvc");
56 }
57 }
58 catch(...){
59 std::cout << "RawDataProviderBase::initialize() ERROR Could not get MessageSvc" << std::endl;
60 }
61
62 return StatusCode::SUCCESS;
63}

Referenced by EmcRawDataProvider::initialize(), TofRawDataProvider::initialize(), and MdcRawDataProvider::initialize().

◆ initialize() [2/2]

StatusCode RawDataProviderBase::initialize ( ISvcLocator *  svcLoc = 0,
IMessageSvc *  pMsg = 0 
)

◆ setMsgName() [1/2]

void RawDataProviderBase::setMsgName ( const char *  name)
inline

◆ setMsgName() [2/2]

void RawDataProviderBase::setMsgName ( const char *  name)
inline

Definition at line 29 of file InstallArea/include/RawDataProviderSvc/RawDataProviderSvc/RawDataProviderBase.h.

29{ m_name = std::string(name); };

◆ setMsgSvc() [1/2]

void RawDataProviderBase::setMsgSvc ( IMessageSvc *  svc)
inline

◆ setMsgSvc() [2/2]

void RawDataProviderBase::setMsgSvc ( IMessageSvc *  svc)
inline

◆ setSvcLocator() [1/2]

void RawDataProviderBase::setSvcLocator ( ISvcLocator *  svcLoc)
inline

◆ setSvcLocator() [2/2]

void RawDataProviderBase::setSvcLocator ( ISvcLocator *  svcLoc)
inline

Member Data Documentation

◆ m_msgSvc

◆ m_name

◆ m_svcLocator


The documentation for this class was generated from the following files: