BOSS
7.1.2
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"
9
#include "
BeamEnergySvc/IBeamEnergySvc.h
"
10
#include "
DatabaseSvc/IDatabaseSvc.h
"
11
#include "GaudiKernel/Service.h"
12
//#include <mysql/mysql.h>
13
#include <vector>
14
15
template
<
class
TYPE>
class
CnvFactory
;
16
17
//class BeamEnergySvc : public Service, virtual public IBeamEnergySvc, virtual public IIncidentListener
18
class
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
IBeamEnergySvc.h
IDatabaseSvc.h
private
#define private
Definition
McEventDict_dict.cpp:6
BeamEnergySvc
Definition
BeamEnergySvc.h:19
BeamEnergySvc::getBeamEnergyInfo
void getBeamEnergyInfo()
Definition
BeamEnergySvc.cxx:114
BeamEnergySvc::initialize
virtual StatusCode initialize()
Definition
BeamEnergySvc.cxx:34
BeamEnergySvc::getbeamE
double getbeamE()
Definition
BeamEnergySvc.cxx:107
BeamEnergySvc::isRunValid
bool isRunValid()
Definition
BeamEnergySvc.cxx:103
BeamEnergySvc::BeamEnergySvc
BeamEnergySvc(const std::string &name, ISvcLocator *svcLoc)
Definition
BeamEnergySvc.cxx:22
BeamEnergySvc::finalize
virtual StatusCode finalize()
Definition
BeamEnergySvc.cxx:67
BeamEnergySvc::handle
void handle(const Incident &)
Definition
BeamEnergySvc.cxx:89
BeamEnergySvc::~BeamEnergySvc
virtual ~BeamEnergySvc()
Definition
BeamEnergySvc.cxx:30
CnvFactory
Definition
RootCorrectedETSCnv.h:20
IDatabaseSvc
Definition
IDatabaseSvc.h:15
7.1.2
Utilities
BeamEnergySvc
BeamEnergySvc-00-01-01
BeamEnergySvc
BeamEnergySvc.h
Generated by
1.12.0