BOSS 7.1.1
BESIII Offline Software System
Loading...
Searching...
No Matches
EmcSatuDeadEnSvc.h
Go to the documentation of this file.
1#ifndef EMCSATUDEADENSVC_H_
2#define EMCSATUDEADENSVC_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
22class EmcSatuDeadEnSvc: public extends<Service, IEmcSatuDeadEnSvc>,
23 virtual public IIncidentListener
24{
25 public:
26 EmcSatuDeadEnSvc( const std::string& name, ISvcLocator* svcloc );
28
29
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 getSatuEnFile() const {return m_SatuEnFile;}
53 std::string getDeadEnFile() const {return m_DeadEnFile;}
54 unsigned int getRunFrom() const { return m_RunFrom;}
55 unsigned int getRunTo() const { return m_RunTo;}
56
57
58 private:
59 // common variables for BOSS & BEAN
60 std::string m_SatuEnFile;
61 std::string m_DeadEnFile;
62 int m_RunFrom;
63 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 /* EMCSATUDEADENSVC_H_ */
char * SftVer
Definition DQA_TO_DB.cxx:18
void handle(const Incident &)
void SetBossRelease(const std::string &_bossrelease)
unsigned int getRunTo() const
virtual StatusCode finalize()
std::string getDeadEnFile() const
IDatabaseSvc * m_dbsvc
std::string GetBossRelease() const
virtual StatusCode initialize()
StatusCode getSftParVer(std::string &SftVer, std::string &CalParVer, int &runfrm, int &runto, int RunNo, std::string BossRelease, std::string DataType)
unsigned int getRunFrom() const
std::string getSatuEnFile() const
EmcSatuDeadEnSvc(const std::string &name, ISvcLocator *svcloc)