BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
Utilities/MeasuredEcmsSvc/MeasuredEcmsSvc-00-00-15/MeasuredEcmsSvc/MeasuredEcmsSvc.h
Go to the documentation of this file.
1//========================================
2//AUTHOR: Lianjin WU <[email protected]> 2015.11.28
3//========================================
4#ifndef Utilities_MeasuredEcmsSvc_H
5#define Utilities_MeasuredEcmsSvc_H
6#include "MeasuredEcmsSvc/IMeasuredEcmsSvc.h"
7class IDatabaseSvc;
8template <class TYPE> class CnvFactory;
9class MeasuredEcmsSvc:public Service, virtual public IMeasuredEcmsSvc, virtual public IIncidentListener{
10 friend class CnvFactory<MeasuredEcmsSvc>;
11 public:
12 MeasuredEcmsSvc(const std::string& name, ISvcLocator* svcLoc);
14
15 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvIF);
16 virtual StatusCode initialize();
17 virtual StatusCode finalize();
18
19 void handle(const Incident&);
20
23
24 void readDB(int runNo);
25
27 int getRunFrom(int runNo);
28 int getRunTo(int runNo);
29
31
32 double getEcms(int runNo);
33 double getEcmsErr(int runNo);
34 double getAveEcms(int runNo);
35 double getAveEcmsErr(int runNo);
36
37 double getPx(int runNo);
38 double getPy(int runNo);
39 double getPz(int runNo);
40
41 void readInfo(int runNo, char *tab, char *col);
42 double getInfo(int runNo, char *tab, char *col);
43 bool isReadDBValid(int runNo, char *tab, char *col);
44
45 void readInfo(int runNo);
46 double getInfo(int runNo);
48
49 private:
50 //RunParamsMin and RunParamsMax are used to set range for psi3773 listed in RunParams
51 int RunParamsMin, RunParamsMax;
52 //MeasuredEcmsMin and MeasuredEcmsMax for the data listed in MeasuredEcms2
53 int MeasuredEcmsMin, MeasuredEcmsMax;
54
55 IDatabaseSvc* m_dbSvc;
56 IDataProviderSvc* m_eventSvc;
57 int m_sampleName, m_runFrom, m_runTo;
58 double m_ecms, m_ecmsErr, m_aveEcms, m_aveEcmsErr;
59 double m_info;
60 bool m_runNoValid, m_callRead, m_recallRead;
61 double m_px, m_py, m_pz;
62 std::string table;
63 std::string column;
64};
65#endif
int runNo
Definition: DQA_TO_DB.cxx:12
double getEcmsErr(int runNo)
void readRunParams(int runNo)
virtual StatusCode finalize()
int getRunTo(int runNo)
double getPz(int runNo)
int getRunFrom(int runNo)
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvIF)
int getSampleName(int runNo)
double getInfo(int runNo, char *tab, char *col)
double getInfo(int runNo)
double getEcms(int runNo)
void handle(const Incident &)
void readInfo(int runNo)
virtual StatusCode initialize()
double getPy(int runNo)
void readInfo(int runNo, char *tab, char *col)
bool isReadDBValid(int runNo, char *tab, char *col)
void readDB(int runNo)
virtual ~MeasuredEcmsSvc()
bool isRunNoValid(int runNo)
MeasuredEcmsSvc(const std::string &name, ISvcLocator *svcLoc)
double getAveEcmsErr(int runNo)
double getPx(int runNo)
double getAveEcms(int runNo)
void readMeasuredEcms(int runNo)
bool isReadDBValid(int runNo)