BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
InjSigTimeSvc Class Reference

#include <InjSigTimeSvc.h>

+ Inheritance diagram for InjSigTimeSvc:

Public Member Functions

 InjSigTimeSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~InjSigTimeSvc ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
void handle (const Incident &)
 
int getNpar () const
 
int getFlag (unsigned int parId) const
 
ULong64_t getIST (unsigned int parId) const
 

Detailed Description

Definition at line 15 of file InjSigTimeSvc.h.

Constructor & Destructor Documentation

◆ InjSigTimeSvc()

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

Definition at line 25 of file InjSigTimeSvc.cxx.

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

◆ ~InjSigTimeSvc()

InjSigTimeSvc::~InjSigTimeSvc ( )

Definition at line 29 of file InjSigTimeSvc.cxx.

29 {
30}

Member Function Documentation

◆ finalize()

StatusCode InjSigTimeSvc::finalize ( )
virtual

Definition at line 65 of file InjSigTimeSvc.cxx.

65 {
66 MsgStream log(messageService(), name());
67 log << MSG::INFO << "InjSigTimeSvc::finalize()" << endreq;
68
69 m_npar = 0;
70 m_IST.clear();
71 m_flag.clear();
72
73 return StatusCode::SUCCESS;
74}

◆ getFlag()

int InjSigTimeSvc::getFlag ( unsigned int  parId) const
inline

Definition at line 31 of file InjSigTimeSvc.h.

31{return m_flag[parId];}

◆ getIST()

ULong64_t InjSigTimeSvc::getIST ( unsigned int  parId) const
inline

Definition at line 32 of file InjSigTimeSvc.h.

32{return m_IST[parId];}

◆ getNpar()

int InjSigTimeSvc::getNpar ( ) const
inline

Definition at line 30 of file InjSigTimeSvc.h.

30{return m_npar;}

◆ handle()

void InjSigTimeSvc::handle ( const Incident &  inc)

Definition at line 76 of file InjSigTimeSvc.cxx.

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

◆ initialize()

StatusCode InjSigTimeSvc::initialize ( )
virtual

Definition at line 41 of file InjSigTimeSvc.cxx.

41 {
42 MsgStream log(messageService(), name());
43 log << MSG::INFO << "InjSigTimeSvc::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}

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