BOSS 7.0.8
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
16class OfflineEvtFilterSvc: public Service, virtual public IOfflineEvtFilterSvc,
17 virtual public IIncidentListener{
18public:
19 OfflineEvtFilterSvc( const std::string& name, ISvcLocator* svcloc );
21
22 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
23 virtual StatusCode initialize();
24 virtual StatusCode finalize();
25
26 // Incident handler
27 void handle(const Incident&);
28
29 //get the CalibData of OffEvtFilter
30 int getRunFrom() const {return m_runFrom;}
31 int getRunTo() const {return m_runTo;}
32 int getEventFrom() const {return m_eventFrom;}
33 int getEventTo() const {return m_eventTo;}
34 int getNpar() const {return m_npar;}
35 int getFlag(unsigned int parId) const {return m_flag[parId];}
36 double getTBegin(unsigned int parId) const {return m_tBegin[parId];}
37 double getTEnd(unsigned int parId) const {return m_tEnd[parId];}
38
39private:
40 /* initial calib const */
41 bool initCalibConst();
42
43 IDataProviderSvc* m_pCalDataSvc;
44 ICalibRootSvc* m_pRootSvc;
45
46 int m_runFrom;
47 int m_runTo;
48 int m_eventFrom;
49 int m_eventTo;
50 int m_npar;
51 std::vector<int> m_flag;
52 std::vector<double> m_tBegin;
53 std::vector<double> m_tEnd;
54
55};
56
57#endif /* OFFLINEEVTFILTERSVC_H_ */
int getFlag(unsigned int parId) const
double getTEnd(unsigned int parId) const
virtual StatusCode initialize()
virtual StatusCode finalize()
void handle(const Incident &)
double getTBegin(unsigned int parId) const
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)