BOSS 7.1.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcShEnCalibSvc.h
Go to the documentation of this file.
1#ifndef EMCSHENCALIBSVC_H_
2#define EMCSHENCALIBSVC_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"
10#include <mysql.h>
11#include <map>
12#include <vector>
14#include "GaudiKernel/IService.h"
15#include "CLHEP/Matrix/Vector.h"
17using CLHEP::HepVector;
18#include <string>
20
21//class EmcShEnCalibSvc: public Service, virtual public IEmcShEnCalibSvc,
22class EmcShEnCalibSvc: public extends<Service, IEmcShEnCalibSvc>,
23 virtual public IIncidentListener
24{
25 public:
26 EmcShEnCalibSvc( const std::string& name, ISvcLocator* svcloc );
28
29 //virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
30 virtual StatusCode initialize();
31 virtual StatusCode finalize();
32
33 // Incident handler
34 void handle(const Incident&);
35
36
37
39
40 void SetBossRelease(const std::string& _bossrelease) {m_bossRelease = _bossrelease;}
41 std::string GetBossRelease() const {return m_bossRelease;}
42
43
44 //Get informations from CalVtxLumVer
45 StatusCode getSftParVer(std::string& SftVer,
46 std::string& CalParVer, int &runfrm,
47 int &runto,int RunNo, std::string BossRelease,
48 std::string DataType);
49
51
52 std::string getPi0CalibFile() const {return m_Pi0CalibFile;}
53 std::string getSingleGammaCalibFile() const {return m_SingleGammaCalibFile;}
54 unsigned int getRunFrom() const { return m_RunFrom;}
55 unsigned int getRunTo() const { return m_RunTo;}
56 //void setPi0CalibFile(std::string _Pi0CalibFile) { m_Pi0CalibFile = _Pi0CalibFile;}
57 //void setSingleGammaCalibFile(std::string _SingleGammaCalibFile) { m_SingleGammaCalibFile = _SingleGammaCalibFile;}
58
59 private:
60 // common variables for BOSS & BEAN
61 std::string m_Pi0CalibFile;
62 std::string m_SingleGammaCalibFile;
63 int m_RunFrom;
64 int m_RunTo;
65
66 std::string dbName;
67 std::string m_bossRelease;
68 std::string m_bossVer;
69 std::string m_calPar;
70 std::string host;
71 std::string table;
72 std::string userName;
73 std::string password;
74 unsigned int serialNo;
75 bool m_ReadPar;
76
77 IDataProviderSvc* m_eventSvc;
78
79};
80#endif /* EMCSHENCALIBSVC_H_ */
char * SftVer
Definition: DQA_TO_DB.cxx:18
StatusCode getSftParVer(std::string &SftVer, std::string &CalParVer, int &runfrm, int &runto, int RunNo, std::string BossRelease, std::string DataType)
std::string getPi0CalibFile() const
virtual StatusCode finalize()
void handle(const Incident &)
IDatabaseSvc * m_dbsvc
std::string GetBossRelease() const
void SetBossRelease(const std::string &_bossrelease)
std::string getSingleGammaCalibFile() const
unsigned int getRunTo() const
unsigned int getRunFrom() const
virtual StatusCode initialize()