BOSS 8.0.0
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)
 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 ()
 RawDataProviderBase ()

Protected Attributes

ISvcLocator * m_svcLocator
IMessageSvc * m_msgSvc
std::string m_name

Detailed Description

Constructor & Destructor Documentation

◆ RawDataProviderBase() [1/6]

◆ ~RawDataProviderBase() [1/3]

virtual RawDataProviderBase::~RawDataProviderBase ( )
inlinevirtual

◆ RawDataProviderBase() [2/6]

RawDataProviderBase::RawDataProviderBase ( )
protected

Definition at line 13 of file RawDataProviderBase.cxx.

13: m_svcLocator( 0 ), m_msgSvc( 0 ), m_name() {}

◆ RawDataProviderBase() [3/6]

RawDataProviderBase::RawDataProviderBase ( const char * name)

◆ ~RawDataProviderBase() [2/3]

virtual RawDataProviderBase::~RawDataProviderBase ( )
inlinevirtual

◆ RawDataProviderBase() [4/6]

RawDataProviderBase::RawDataProviderBase ( )
protected

◆ RawDataProviderBase() [5/6]

RawDataProviderBase::RawDataProviderBase ( const char * name)

◆ ~RawDataProviderBase() [3/3]

virtual RawDataProviderBase::~RawDataProviderBase ( )
inlinevirtual

◆ RawDataProviderBase() [6/6]

RawDataProviderBase::RawDataProviderBase ( )
protected

Member Function Documentation

◆ initialize() [1/3]

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

Definition at line 18 of file RawDataProviderBase.cxx.

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

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

◆ initialize() [2/3]

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

◆ initialize() [3/3]

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

◆ setMsgName() [1/3]

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

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

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

◆ setMsgName() [2/3]

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

Definition at line 29 of file InstallArea/x86_64-el9-gcc13-dbg/include/RawDataProviderSvc/RawDataProviderBase.h.

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

◆ setMsgName() [3/3]

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

Definition at line 29 of file InstallArea/x86_64-el9-gcc13-opt/include/RawDataProviderSvc/RawDataProviderBase.h.

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

◆ setMsgSvc() [1/3]

void RawDataProviderBase::setMsgSvc ( IMessageSvc * svc)
inline

◆ setMsgSvc() [2/3]

void RawDataProviderBase::setMsgSvc ( IMessageSvc * svc)
inline

◆ setMsgSvc() [3/3]

void RawDataProviderBase::setMsgSvc ( IMessageSvc * svc)
inline

◆ setSvcLocator() [1/3]

void RawDataProviderBase::setSvcLocator ( ISvcLocator * svcLoc)
inline

◆ setSvcLocator() [2/3]

void RawDataProviderBase::setSvcLocator ( ISvcLocator * svcLoc)
inline

◆ setSvcLocator() [3/3]

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: