BOSS 7.0.6
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 queryInterface (const InterfaceID &riid, void **ppvUnknown)
 
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
 
virtual int getNpar () const =0
 
virtual ULong64_t getIST (unsigned int parId) const =0
 
virtual int getFlag (unsigned int parId) const =0
 

Additional Inherited Members

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

Detailed Description

Definition at line 16 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 Service (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_IST.clear();
70 m_flag.clear();
71
72 return StatusCode::SUCCESS;
73}

◆ getFlag()

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

Implements IInjSigTimeSvc.

Definition at line 31 of file InjSigTimeSvc.h.

31{return m_flag[parId];}

◆ getIST()

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

Implements IInjSigTimeSvc.

Definition at line 32 of file InjSigTimeSvc.h.

32{return m_IST[parId];}

◆ getNpar()

int InjSigTimeSvc::getNpar ( ) const
inlinevirtual

Implements IInjSigTimeSvc.

Definition at line 30 of file InjSigTimeSvc.h.

30{return m_npar;}

◆ handle()

void InjSigTimeSvc::handle ( const Incident &  inc)

Definition at line 75 of file InjSigTimeSvc.cxx.

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

◆ 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}

◆ queryInterface()

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

Definition at line 32 of file InjSigTimeSvc.cxx.

32 {
33 if( IID_IInjSigTimeSvc.versionMatch(riid) ){
34 *ppvInterface = static_cast<IInjSigTimeSvc*> (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: