BOSS 7.0.1
BESIII Offline Software System
Loading...
Searching...
No Matches
Utilities/MeasuredEcmsSvc/MeasuredEcmsSvc-00-00-11/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 virtual StatusCode queryInterface(const InterfaceID& riid, void** ppvIF);
15 virtual StatusCode initialize();
16 virtual StatusCode finalize();
17 void handle(const Incident&);
20 void readDB(int runNo);
22 int getRunFrom(int runNo);
23 int getRunTo(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)
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 getEcms(int runNo)
void handle(const Incident &)
virtual StatusCode initialize()
double getPy(int runNo)
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)