BOSS 7.1.0
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
17//class BeamEnergySvc : public Service, virtual public IBeamEnergySvc, virtual public IIncidentListener
18class BeamEnergySvc : public extends<Service, IBeamEnergySvc>, virtual public IIncidentListener
19{
20 friend class CnvFactory<BeamEnergySvc>;
21
22 public :
23 BeamEnergySvc(const std::string& name, ISvcLocator* svcLoc);
24 virtual ~BeamEnergySvc();
25
26 virtual StatusCode initialize();
27 virtual StatusCode finalize();
28 //virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvIF);
29
30 void handle(const Incident&);
31 void getBeamEnergyInfo();
32
33 bool isRunValid();
34 double getbeamE();
35
36 private :
37 std::string m_host;
38 IDataProviderSvc* m_eventSvc;
39 IDatabaseSvc* m_dbsvc;
40 int m_run;
41 bool m_isRunValid;
42 double m_beamE;
43};
44
45#endif
#define private
void getBeamEnergyInfo()
virtual StatusCode initialize()
virtual StatusCode finalize()
void handle(const Incident &)
virtual ~BeamEnergySvc()