BOSS 8.0.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 24 of file InjSigTimeSvc.cxx.

25 : base_class( name, svcloc ) {}

Referenced by InjSigTimeSvc().

◆ ~InjSigTimeSvc()

InjSigTimeSvc::~InjSigTimeSvc ( )

Definition at line 27 of file InjSigTimeSvc.cxx.

27{}

Member Function Documentation

◆ finalize()

StatusCode InjSigTimeSvc::finalize ( )
virtual

Definition at line 49 of file InjSigTimeSvc.cxx.

49 {
50 MsgStream log( msgSvc(), name() );
51 log << MSG::INFO << "InjSigTimeSvc::finalize()" << endmsg;
52
53 m_npar = 0;
54 m_IST.clear();
55 m_flag.clear();
56
57 return StatusCode::SUCCESS;
58}
IMessageSvc * msgSvc()

◆ 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 60 of file InjSigTimeSvc.cxx.

60 {
61 MsgStream log( msgSvc(), name() );
62 log << MSG::DEBUG << "handle: " << inc.type() << endmsg;
63
64 if ( inc.type() == "NewRun" )
65 {
66 log << MSG::DEBUG << "NewRun" << endmsg;
67
68 if ( !initCalibConst() )
69 { log << MSG::ERROR << "can not initilize InjSigTime Constants" << endmsg; }
70 }
71}

◆ initialize()

StatusCode InjSigTimeSvc::initialize ( )
virtual

Definition at line 29 of file InjSigTimeSvc.cxx.

29 {
30 MsgStream log( msgSvc(), name() );
31 log << MSG::INFO << "InjSigTimeSvc::initialize()" << endmsg;
32
33 StatusCode sc = Service::initialize();
34 if ( sc.isFailure() ) return sc;
35
36 IIncidentSvc* incsvc;
37 sc = service( "IncidentSvc", incsvc );
38 int priority = 100;
39 if ( sc.isSuccess() ) { incsvc->addListener( this, "NewRun", priority ); }
40
41 sc = service( "CalibDataSvc", m_pCalDataSvc, true );
42 if ( sc == StatusCode::SUCCESS )
43 { log << MSG::INFO << "Retrieve IDataProviderSvc" << endmsg; }
44 else { log << MSG::FATAL << "can not get IDataProviderSvc" << endmsg; }
45
46 return StatusCode::SUCCESS;
47}

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