BOSS 7.0.8
BESIII Offline Software System
Loading...
Searching...
No Matches
BeamEnergySvc.h
Go to the documentation of this file.
1#ifndef BEAM_ENERGY_SVC_H
2#define BEAM_ENERGY_SVC_H
3
4#include "GaudiKernel/Service.h"
5#include "GaudiKernel/IInterface.h"
6#include "GaudiKernel/Property.h"
7#include "GaudiKernel/IIncidentListener.h"
8#include "GaudiKernel/IDataProviderSvc.h"
11#include "GaudiKernel/Service.h"
12//#include <mysql/mysql.h>
13#include <vector>
14
15template <class TYPE> class CnvFactory;
16
17class BeamEnergySvc : public Service, virtual public IBeamEnergySvc, virtual public IIncidentListener
18{
19 friend class CnvFactory<BeamEnergySvc>;
20
21 public :
22 BeamEnergySvc(const std::string& name, ISvcLocator* svcLoc);
23 virtual ~BeamEnergySvc();
24
25 virtual StatusCode initialize();
26 virtual StatusCode finalize();
27 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvIF);
28
29 void handle(const Incident&);
30 void getBeamEnergyInfo();
31
32 bool isRunValid();
33 double getbeamE();
34
35 private :
36 std::string m_host;
37 IDataProviderSvc* m_eventSvc;
38 IDatabaseSvc* m_dbsvc;
39 int m_run;
40 bool m_isRunValid;
41 double m_beamE;
42};
43
44#endif
#define private
void getBeamEnergyInfo()
virtual StatusCode initialize()
virtual StatusCode finalize()
void handle(const Incident &)
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvIF)
virtual ~BeamEnergySvc()