BOSS 7.0.8
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
21class EmcShEnCalibSvc: public Service, virtual public IEmcShEnCalibSvc,
22 virtual public IIncidentListener
23{
24 public:
25 EmcShEnCalibSvc( const std::string& name, ISvcLocator* svcloc );
27
28 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvUnknown);
29 virtual StatusCode initialize();
30 virtual StatusCode finalize();
31
32 // Incident handler
33 void handle(const Incident&);
34
35
36
38
39 void SetBossRelease(const std::string& _bossrelease) {m_bossRelease = _bossrelease;}
40 std::string GetBossRelease() const {return m_bossRelease;}
41
42
43 //Get informations from CalVtxLumVer
44 StatusCode getSftParVer(std::string& SftVer,
45 std::string& CalParVer, int &runfrm,
46 int &runto,int RunNo, std::string BossRelease,
47 std::string DataType);
48
50
51 std::string getPi0CalibFile() const {return m_Pi0CalibFile;}
52 std::string getSingleGammaCalibFile() const {return m_SingleGammaCalibFile;}
53 unsigned int getRunFrom() const { return m_RunFrom;}
54 unsigned int getRunTo() const { return m_RunTo;}
55 //void setPi0CalibFile(std::string _Pi0CalibFile) { m_Pi0CalibFile = _Pi0CalibFile;}
56 //void setSingleGammaCalibFile(std::string _SingleGammaCalibFile) { m_SingleGammaCalibFile = _SingleGammaCalibFile;}
57
58 private:
59 // common variables for BOSS & BEAN
60 std::string m_Pi0CalibFile;
61 std::string m_SingleGammaCalibFile;
62 unsigned int m_RunFrom;
63 unsigned int m_RunTo;
64
65 std::string dbName;
66 std::string m_bossRelease;
67 std::string m_bossVer;
68 std::string m_calPar;
69 std::string host;
70 std::string table;
71 std::string userName;
72 std::string password;
73 unsigned int serialNo;
74 bool m_ReadPar;
75
76 IDataProviderSvc* m_eventSvc;
77
78};
79#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()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
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()