BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MeasuredEcmsSvc/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);
13 virtual ~MeasuredEcmsSvc();
14 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvIF);
15 virtual StatusCode initialize();
16 virtual StatusCode finalize();
17 void handle(const Incident&);
18 void readMeasuredEcms(int runNo);
19 void readRunParams(int runNo);
20 void readDB(int runNo);
21 int getSampleName(int runNo);
22 int getRunFrom(int runNo);
23 int getRunTo(int runNo);
24 bool isRunNoValid(int runNo);
25 double getEcms(int runNo);
26 double getEcmsErr(int runNo);
27 double getAveEcms(int runNo);
28 double getAveEcmsErr(int runNo);
29 double getPx(int runNo);
30 double getPy(int runNo);
31 double getPz(int runNo);
32 private:
33 //RunParamsMin and RunParamsMax are used to set range for psi3773 listed in RunParams
34 int RunParamsMin, RunParamsMax;
35 //MeasuredEcmsMin and MeasuredEcmsMax for the data listed in MeasuredEcms2
36 int MeasuredEcmsMin, MeasuredEcmsMax;
37
38 IDatabaseSvc* m_dbSvc;
39 IDataProviderSvc* m_eventSvc;
40 int m_sampleName, m_runFrom, m_runTo;
41 double m_ecms, m_ecmsErr, m_aveEcms, m_aveEcmsErr;
42 bool m_runNoValid, m_callRead, m_recallRead;
43 double m_px, m_py, m_pz;
44};
45#endif
int runNo
Definition: DQA_TO_DB.cxx:12
double getEcmsErr(int runNo)
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvIF)
void readRunParams(int runNo)
int getRunTo(int runNo)
double getPz(int runNo)
int getRunFrom(int runNo)
int getSampleName(int runNo)
double getEcms(int runNo)
virtual ~MeasuredEcmsSvc()
void handle(const Incident &)
double getPy(int runNo)
virtual StatusCode initialize()
void readDB(int runNo)
bool isRunNoValid(int runNo)
double getAveEcmsErr(int runNo)
virtual StatusCode finalize()
double getPx(int runNo)
double getAveEcms(int runNo)
void readMeasuredEcms(int runNo)