BOSS 8.0.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 "CLHEP/Matrix/Vector.h"
5#include "DatabaseSvc/IDatabaseSvc.h"
6#include "GaudiKernel/IDataProviderSvc.h"
7#include "GaudiKernel/IIncidentListener.h"
8#include "GaudiKernel/IInterface.h"
9#include "GaudiKernel/IService.h"
10#include "GaudiKernel/Kernel.h"
11#include "GaudiKernel/Service.h"
12#include "ScanEnergySvc.h"
13#include "ScanEnergySvc/IScanEnergySvc.h"
14#include <map>
15#include <mysql.h>
16#include <vector>
17using CLHEP::HepVector;
18#include <string>
19
20// class ScanEnergySvc: public Service, virtual public IScanEnergySvc,
21class ScanEnergySvc : public extends<Service, IScanEnergySvc>,
22 virtual public IIncidentListener {
23public:
24 ScanEnergySvc( const std::string& name, ISvcLocator* svcloc );
25 // ScanEnergySvc();
27
28 // virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
29 virtual StatusCode initialize();
30 virtual StatusCode finalize();
31
32 // Incident handler
33 void handle( const Incident& );
34
36
37 double getScanEnergy() const { return m_ScanEnergy; }
38 void setScanEnergy( double _ScanEnergy ) { m_ScanEnergy = _ScanEnergy; }
39 int getRunStart() const { return m_RunStart; }
40 void setRunStart( int _RunStart ) { m_RunStart = _RunStart; }
41 int getRunEnd() const { return m_RunEnd; }
42 void setRunEnd( int _RunEnd ) { m_RunEnd = _RunEnd; }
44
45private:
46 // common variables for BOSS & BEAN
47 double m_ScanEnergy;
48 int m_RunStart;
49 int m_RunEnd;
50 std::string dbName;
51 std::string host;
52 std::string table;
53 std::string userName;
54 std::string password;
55 unsigned int serialNo;
56
57 IDataProviderSvc* m_eventSvc;
58};
59#endif /* SCANENERGYSVC_H_ */
void setRunStart(int _RunStart)
int getRunEnd() const
void setScanEnergy(double _ScanEnergy)
double getScanEnergy() const
bool getScanEnergySvcInfo()
virtual StatusCode initialize()
virtual StatusCode finalize()
ScanEnergySvc(const std::string &name, ISvcLocator *svcloc)
int getRunStart() const
IDatabaseSvc * m_dbsvc
void handle(const Incident &)
void setRunEnd(int _RunEnd)