BOSS
7.1.1
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"
9
#include "
ScanEnergySvc/ScanEnergySvc.h
"
10
#include "
ScanEnergySvc/IScanEnergySvc.h
"
11
#include <mysql.h>
12
#include <map>
13
#include <vector>
14
#include "
DatabaseSvc/IDatabaseSvc.h
"
15
#include "GaudiKernel/IService.h"
16
#include "CLHEP/Matrix/Vector.h"
17
#include "
DatabaseSvc/IDatabaseSvc.h
"
18
using
CLHEP::HepVector;
19
#include <string>
20
#include "
DatabaseSvc/DatabaseSvc.h
"
21
22
//class ScanEnergySvc: public Service, virtual public IScanEnergySvc,
23
class
ScanEnergySvc
:
public
extends<Service, IScanEnergySvc>,
24
virtual
public
IIncidentListener
25
{
26
public
:
27
ScanEnergySvc
(
const
std::string& name, ISvcLocator* svcloc );
28
//ScanEnergySvc();
29
~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
40
IDatabaseSvc
*
m_dbsvc
;
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;}
49
bool
getScanEnergySvcInfo
();
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_ */
DatabaseSvc.h
IDatabaseSvc.h
IScanEnergySvc.h
ScanEnergySvc.h
IDatabaseSvc
Definition
IDatabaseSvc.h:15
ScanEnergySvc
Definition
ScanEnergySvc.h:25
ScanEnergySvc::~ScanEnergySvc
~ScanEnergySvc()
Definition
ScanEnergySvc.cxx:53
ScanEnergySvc::setRunStart
void setRunStart(int _RunStart)
Definition
ScanEnergySvc.h:46
ScanEnergySvc::getRunEnd
int getRunEnd() const
Definition
ScanEnergySvc.h:47
ScanEnergySvc::setScanEnergy
void setScanEnergy(double _ScanEnergy)
Definition
ScanEnergySvc.h:44
ScanEnergySvc::getScanEnergy
double getScanEnergy() const
Definition
ScanEnergySvc.h:43
ScanEnergySvc::getScanEnergySvcInfo
bool getScanEnergySvcInfo()
Definition
ScanEnergySvc.cxx:115
ScanEnergySvc::initialize
virtual StatusCode initialize()
Definition
ScanEnergySvc.cxx:65
ScanEnergySvc::finalize
virtual StatusCode finalize()
Definition
ScanEnergySvc.cxx:95
ScanEnergySvc::ScanEnergySvc
ScanEnergySvc(const std::string &name, ISvcLocator *svcloc)
Definition
ScanEnergySvc.cxx:43
ScanEnergySvc::getRunStart
int getRunStart() const
Definition
ScanEnergySvc.h:45
ScanEnergySvc::m_dbsvc
IDatabaseSvc * m_dbsvc
Definition
ScanEnergySvc.h:40
ScanEnergySvc::handle
void handle(const Incident &)
Definition
ScanEnergySvc.cxx:102
ScanEnergySvc::setRunEnd
void setRunEnd(int _RunEnd)
Definition
ScanEnergySvc.h:48
7.1.1
Utilities
ScanEnergySvc
ScanEnergySvc-00-01-00
ScanEnergySvc
ScanEnergySvc.h
Generated by
1.12.0