10#define MDCHVDROPSVC_H_
12#include "CLHEP/Matrix/Vector.h"
14#include "GaudiKernel/IDataProviderSvc.h"
15#include "GaudiKernel/IIncidentListener.h"
16#include "GaudiKernel/IInterface.h"
17#include "GaudiKernel/IService.h"
18#include "GaudiKernel/Kernel.h"
19#include "GaudiKernel/Service.h"
26using CLHEP::HepVector;
34 MdcHvDropSvc(
const std::string &name, ISvcLocator *svcloc);
37 virtual StatusCode
queryInterface(
const InterfaceID &riid,
void **ppvUnknown);
42 void handle(
const Incident &);
63 StatusCode FetchHvInfo(
Time_t timeBegin,
Time_t timeEnd);
64 StatusCode initMySql();
72 Time_t datetimeStr2Time_t(
const char* str);
73 size_t Time_t2str(
Time_t utctime,
char* str,
int length);
74 Time_t getRunBeginTime(
int runid);
79 double m_relativeHvDropThreshold;
86 std::map<int, Time_t> m_run_begin;
97 std::string m_userName;
98 std::string m_password;
99 bool m_ignoreLayer_21_24;
103 std::string m_dbName2;
105 std::string m_table2;
106 std::string m_userName2;
107 std::string m_password2;
112 IDataProviderSvc *m_eventSvc;
struct st_mysql_res MYSQL_RES
class defination for our cached hv info.
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvUnknown)
virtual void setRelativeHvDropThreshold(double threshold)
void handle(const Incident &)
virtual StatusCode initialize()
virtual double queryRelativeHvDrop()
virtual bool queryIsHvDrop()
virtual StatusCode finalize()
MdcHvDropSvc(const std::string &name, ISvcLocator *svcloc)