BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
DedxCurSvc.h
Go to the documentation of this file.
1// $Id: DedxCurSvc.h,v 1.11 2013/04/18 03:10:52 dengzy Exp $ // -*-c++-*-
2// header file for a class called "DedxCurSvc"
3#ifndef DEDXCURSVC_H
4#define DEDXCURSVC_H
5
6#include "GaudiKernel/Service.h"
7#include "GaudiKernel/IInterface.h"
8#include "GaudiKernel/Property.h"
9#include "GaudiKernel/IIncidentListener.h"
10#include "GaudiKernel/IDataProviderSvc.h"
12#include <mysql.h>
13#include <vector>
15
16class DedxCurSvc : public Service, virtual public IDedxCurSvc,virtual public IIncidentListener
17{
18public:
19 // Constructors and destructors
20 DedxCurSvc( const std::string& name, ISvcLocator* svcloc );
22
23 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
24 virtual StatusCode initialize ( );
25 virtual StatusCode finalize ( );
26
27 void handle(const Incident&);
28 void getDedxCurveInfo();
29
30
31 const double getCurve(int i){return m_curve[i];}
32 const double getSigma(int i){return m_sigma[i];}
33 const int getCurveSize(){return m_curve_size;}
34 const int getSigmaSize(){return m_sigma_size;}
35
36private:
37
38 double m_curve[50];
39 double m_sigma[50];
40 int m_curve_size;
41 int m_sigma_size;
42 std::string m_bossRelease;
43 std::string m_calParVer;
44 std::string m_sftver;
45 std::string m_dbStatus;
46 std::string m_type; // "Sim" will reverse the sign of RunNo because we want to use the curve from data
47
48 MYSQL *conn;
49 IDataProviderSvc* m_eventSvc;
50 IDatabaseSvc* m_dbsvc;
51
52 int m_runFromMax;
53 int m_runToMin;
54};
55
56#endif
struct st_mysql MYSQL
virtual StatusCode finalize()
Definition: DedxCurSvc.cxx:91
virtual StatusCode initialize()
Definition: DedxCurSvc.cxx:51
void handle(const Incident &)
Definition: DedxCurSvc.cxx:103
void getDedxCurveInfo()
Definition: DedxCurSvc.cxx:117
const double getCurve(int i)
Definition: DedxCurSvc.h:31
const double getSigma(int i)
Definition: DedxCurSvc.h:32
const int getCurveSize()
Definition: DedxCurSvc.h:33
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
Definition: DedxCurSvc.cxx:41
const int getSigmaSize()
Definition: DedxCurSvc.h:34