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

#include <OfflineEvtFilterSvc.h>

+ Inheritance diagram for OfflineEvtFilterSvc:

Public Member Functions

 OfflineEvtFilterSvc (const std::string &name, ISvcLocator *svcloc)
 
 ~OfflineEvtFilterSvc ()
 
virtual StatusCode initialize ()
 
virtual StatusCode finalize ()
 
void handle (const Incident &)
 
int getRunFrom () const
 
int getRunTo () const
 
int getEventFrom () const
 
int getEventTo () const
 
int getNpar () const
 
int getFlag (unsigned int parId) const
 
double getTBegin (unsigned int parId) const
 
double getTEnd (unsigned int parId) const
 

Detailed Description

Definition at line 17 of file OfflineEvtFilterSvc.h.

Constructor & Destructor Documentation

◆ OfflineEvtFilterSvc()

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

Definition at line 26 of file OfflineEvtFilterSvc.cxx.

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

◆ ~OfflineEvtFilterSvc()

OfflineEvtFilterSvc::~OfflineEvtFilterSvc ( )

Definition at line 30 of file OfflineEvtFilterSvc.cxx.

30 {
31}

Member Function Documentation

◆ finalize()

StatusCode OfflineEvtFilterSvc::finalize ( )
virtual

Definition at line 66 of file OfflineEvtFilterSvc.cxx.

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

◆ getEventFrom()

int OfflineEvtFilterSvc::getEventFrom ( ) const
inline

Definition at line 33 of file OfflineEvtFilterSvc.h.

33{return m_eventFrom;}

◆ getEventTo()

int OfflineEvtFilterSvc::getEventTo ( ) const
inline

Definition at line 34 of file OfflineEvtFilterSvc.h.

34{return m_eventTo;}

◆ getFlag()

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

Definition at line 36 of file OfflineEvtFilterSvc.h.

36{return m_flag[parId];}

◆ getNpar()

int OfflineEvtFilterSvc::getNpar ( ) const
inline

Definition at line 35 of file OfflineEvtFilterSvc.h.

35{return m_npar;}

◆ getRunFrom()

int OfflineEvtFilterSvc::getRunFrom ( ) const
inline

Definition at line 31 of file OfflineEvtFilterSvc.h.

31{return m_runFrom;}

◆ getRunTo()

int OfflineEvtFilterSvc::getRunTo ( ) const
inline

Definition at line 32 of file OfflineEvtFilterSvc.h.

32{return m_runTo;}

◆ getTBegin()

double OfflineEvtFilterSvc::getTBegin ( unsigned int  parId) const
inline

Definition at line 37 of file OfflineEvtFilterSvc.h.

37{return m_tBegin[parId];}

◆ getTEnd()

double OfflineEvtFilterSvc::getTEnd ( unsigned int  parId) const
inline

Definition at line 38 of file OfflineEvtFilterSvc.h.

38{return m_tEnd[parId];}

◆ handle()

void OfflineEvtFilterSvc::handle ( const Incident &  inc)

Definition at line 78 of file OfflineEvtFilterSvc.cxx.

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

◆ initialize()

StatusCode OfflineEvtFilterSvc::initialize ( )
virtual

Definition at line 42 of file OfflineEvtFilterSvc.cxx.

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