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