BOSS 7.0.6
BESIII Offline Software System
Loading...
Searching...
No Matches
InjSigIntervalSvc Class Reference

#include <InjSigIntervalSvc.h>

+ Inheritance diagram for InjSigIntervalSvc:

Public Member Functions

 InjSigIntervalSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~InjSigIntervalSvc ()
 
virtual StatusCode queryInterface (const InterfaceID &riid, void **ppvUnknown)
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
void handle (const Incident &)
 
int getTInterval () const
 
virtual int getTInterval () const =0
 

Additional Inherited Members

- Static Public Member Functions inherited from IInjSigIntervalSvc
static const InterfaceID & interfaceID ()
 

Detailed Description

Definition at line 15 of file InjSigIntervalSvc.h.

Constructor & Destructor Documentation

◆ InjSigIntervalSvc()

InjSigIntervalSvc::InjSigIntervalSvc ( const std::string &  name,
ISvcLocator *  svcloc 
)

Definition at line 25 of file InjSigIntervalSvc.cxx.

25 :
26 Service (name, svcloc) {
27}

◆ ~InjSigIntervalSvc()

InjSigIntervalSvc::~InjSigIntervalSvc ( )

Definition at line 29 of file InjSigIntervalSvc.cxx.

29 {
30}

Member Function Documentation

◆ finalize()

StatusCode InjSigIntervalSvc::finalize ( )
virtual

Definition at line 65 of file InjSigIntervalSvc.cxx.

65 {
66 MsgStream log(messageService(), name());
67 log << MSG::INFO << "InjSigIntervalSvc::finalize()" << endreq;
68
69
70 return StatusCode::SUCCESS;
71}

◆ getTInterval()

int InjSigIntervalSvc::getTInterval ( ) const
inlinevirtual

Implements IInjSigIntervalSvc.

Definition at line 29 of file InjSigIntervalSvc.h.

29{return m_tInterval;}

◆ handle()

void InjSigIntervalSvc::handle ( const Incident &  inc)

Definition at line 73 of file InjSigIntervalSvc.cxx.

73 {
74 MsgStream log( messageService(), name() );
75 log << MSG::DEBUG << "handle: " << inc.type() << endreq;
76
77 if ( inc.type() == "NewRun" ){
78 log << MSG::DEBUG << "NewRun" << endreq;
79
80 if( ! initCalibConst() ){
81 log << MSG::ERROR
82 << "can not initilize InjSigInterval Constants" << endreq;
83 }
84 }
85}

◆ initialize()

StatusCode InjSigIntervalSvc::initialize ( )
virtual

Definition at line 41 of file InjSigIntervalSvc.cxx.

41 {
42 MsgStream log(messageService(), name());
43 log << MSG::INFO << "InjSigIntervalSvc::initialize()" << endreq;
44
45 StatusCode sc = Service::initialize();
46 if( sc.isFailure() ) return sc;
47
48 IIncidentSvc* incsvc;
49 sc = service("IncidentSvc", incsvc);
50 int priority = 100;
51 if( sc.isSuccess() ){
52 incsvc -> addListener(this, "NewRun", priority);
53 }
54
55 sc = service("CalibDataSvc", m_pCalDataSvc, true);
56 if( sc == StatusCode::SUCCESS ){
57 log << MSG::INFO << "Retrieve IDataProviderSvc" << endreq;
58 }else{
59 log << MSG::FATAL << "can not get IDataProviderSvc" << endreq;
60 }
61
62 return StatusCode::SUCCESS;
63}

◆ queryInterface()

StatusCode InjSigIntervalSvc::queryInterface ( const InterfaceID &  riid,
void **  ppvUnknown 
)
virtual

Definition at line 32 of file InjSigIntervalSvc.cxx.

32 {
33 if( IID_IInjSigIntervalSvc.versionMatch(riid) ){
34 *ppvInterface = static_cast<IInjSigIntervalSvc*> (this);
35 } else{
36 return Service::queryInterface(riid, ppvInterface);
37 }
38 return StatusCode::SUCCESS;
39}

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