BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
OfflineEvtFilterSvc.h
Go to the documentation of this file.
1#ifndef OFFLINEEVTFILTERSVC_H_
2#define OFFLINEEVTFILTERSVC_H_
3
4#include "GaudiKernel/IInterface.h"
5#include "GaudiKernel/Kernel.h"
6#include "GaudiKernel/Service.h"
7#include "GaudiKernel/IIncidentListener.h"
8
9#include "GaudiKernel/IDataProviderSvc.h"
11
13
14#include <vector>
15
16//class OfflineEvtFilterSvc: public Service, virtual public IOfflineEvtFilterSvc,
17class OfflineEvtFilterSvc: public extends<Service, IOfflineEvtFilterSvc>,
18 virtual public IIncidentListener{
19public:
20 OfflineEvtFilterSvc( const std::string& name, ISvcLocator* svcloc );
22
23 //virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
24 virtual StatusCode initialize();
25 virtual StatusCode finalize();
26
27 // Incident handler
28 void handle(const Incident&);
29
30 //get the CalibData of OffEvtFilter
31 int getRunFrom() const {return m_runFrom;}
32 int getRunTo() const {return m_runTo;}
33 int getEventFrom() const {return m_eventFrom;}
34 int getEventTo() const {return m_eventTo;}
35 int getNpar() const {return m_npar;}
36 int getFlag(unsigned int parId) const {return m_flag[parId];}
37 double getTBegin(unsigned int parId) const {return m_tBegin[parId];}
38 double getTEnd(unsigned int parId) const {return m_tEnd[parId];}
39
40private:
41 /* initial calib const */
42 bool initCalibConst();
43
44 IDataProviderSvc* m_pCalDataSvc;
45 ICalibRootSvc* m_pRootSvc;
46
47 int m_runFrom;
48 int m_runTo;
49 int m_eventFrom;
50 int m_eventTo;
51 int m_npar;
52 std::vector<int> m_flag;
53 std::vector<double> m_tBegin;
54 std::vector<double> m_tEnd;
55
56};
57
58#endif /* OFFLINEEVTFILTERSVC_H_ */
int getFlag(unsigned int parId) const
double getTEnd(unsigned int parId) const
virtual StatusCode initialize()
OfflineEvtFilterSvc(const std::string &name, ISvcLocator *svcloc)
virtual StatusCode finalize()
void handle(const Incident &)
double getTBegin(unsigned int parId) const