BOSS 7.1.2
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 initialize ()
 
virtual StatusCode finalize ()
 
void handle (const Incident &)
 
int getTInterval () const
 

Detailed Description

Definition at line 16 of file InjSigIntervalSvc.h.

Constructor & Destructor Documentation

◆ InjSigIntervalSvc()

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

Definition at line 26 of file InjSigIntervalSvc.cxx.

26 :
27 base_class (name, svcloc) {
28}

◆ ~InjSigIntervalSvc()

InjSigIntervalSvc::~InjSigIntervalSvc ( )

Definition at line 30 of file InjSigIntervalSvc.cxx.

30 {
31}

Member Function Documentation

◆ finalize()

StatusCode InjSigIntervalSvc::finalize ( )
virtual

Definition at line 66 of file InjSigIntervalSvc.cxx.

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

◆ getTInterval()

int InjSigIntervalSvc::getTInterval ( ) const
inline

Definition at line 30 of file InjSigIntervalSvc.h.

30{return m_tInterval;}

◆ handle()

void InjSigIntervalSvc::handle ( const Incident & inc)

Definition at line 74 of file InjSigIntervalSvc.cxx.

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

◆ initialize()

StatusCode InjSigIntervalSvc::initialize ( )
virtual

Definition at line 42 of file InjSigIntervalSvc.cxx.

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

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