BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
ScanEnergySvc.h
Go to the documentation of this file.
1#ifndef SCANENERGYSVC_H_
2#define SCANENERGYSVC_H_
3
4#include "GaudiKernel/IInterface.h"
5#include "GaudiKernel/Kernel.h"
6#include "GaudiKernel/Service.h"
7#include "GaudiKernel/IIncidentListener.h"
8#include "GaudiKernel/IDataProviderSvc.h"
11#include <mysql.h>
12#include <map>
13#include <vector>
15#include "GaudiKernel/IService.h"
16#include "CLHEP/Matrix/Vector.h"
18using CLHEP::HepVector;
19#include <string>
21
22//class ScanEnergySvc: public Service, virtual public IScanEnergySvc,
23class ScanEnergySvc: public extends<Service, IScanEnergySvc>,
24 virtual public IIncidentListener
25{
26 public:
27 ScanEnergySvc( const std::string& name, ISvcLocator* svcloc );
28 //ScanEnergySvc();
30
31 //virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
32 virtual StatusCode initialize();
33 virtual StatusCode finalize();
34
35 // Incident handler
36 void handle(const Incident&);
37
38
39
41
42
43 double getScanEnergy() const { return m_ScanEnergy;}
44 void setScanEnergy(double _ScanEnergy) {m_ScanEnergy=_ScanEnergy;}
45 int getRunStart() const {return m_RunStart;}
46 void setRunStart(int _RunStart) {m_RunStart=_RunStart;}
47 int getRunEnd() const {return m_RunEnd;}
48 void setRunEnd(int _RunEnd) {m_RunEnd=_RunEnd;}
50 private:
51 // common variables for BOSS & BEAN
52 double m_ScanEnergy;
53 int m_RunStart;
54 int m_RunEnd;
55 std::string dbName;
56 std::string host;
57 std::string table;
58 std::string userName;
59 std::string password;
60 unsigned int serialNo;
61
62
63 IDataProviderSvc* m_eventSvc;
64
65};
66#endif /* SCANENERGYSVC_H_ */
void setRunStart(int _RunStart)
Definition: ScanEnergySvc.h:46
int getRunEnd() const
Definition: ScanEnergySvc.h:47
void setScanEnergy(double _ScanEnergy)
Definition: ScanEnergySvc.h:44
double getScanEnergy() const
Definition: ScanEnergySvc.h:43
bool getScanEnergySvcInfo()
virtual StatusCode initialize()
virtual StatusCode finalize()
int getRunStart() const
Definition: ScanEnergySvc.h:45
IDatabaseSvc * m_dbsvc
Definition: ScanEnergySvc.h:40
void handle(const Incident &)
void setRunEnd(int _RunEnd)
Definition: ScanEnergySvc.h:48