BOSS 7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
InstallArea/include/MeasuredEcmsSvc/MeasuredEcmsSvc/IMeasuredEcmsSvc.h
Go to the documentation of this file.
1//Lianjin WU <[email protected]> 2015.11.28
2#ifndef Utilities_IMeasuredEcmsSvc_H
3#define Utilities_IMeasuredEcmsSvc_H
4#include "GaudiKernel/IDataProviderSvc.h"
5#include "GaudiKernel/Kernel.h"
6#include "GaudiKernel/Service.h"
7#include "GaudiKernel/IService.h"
8#include "GaudiKernel/IInterface.h"
9#include "GaudiKernel/Incident.h"
10#include "GaudiKernel/IIncidentSvc.h"
11#include "GaudiKernel/IIncidentListener.h"
12#include "GaudiKernel/ISvcLocator.h"
13#include "GaudiKernel/StatusCode.h"
14#include "GaudiKernel/PropertyMgr.h"
15#include "GaudiKernel/MsgStream.h"
16#include "GaudiKernel/SmartDataPtr.h"
17#include "GaudiKernel/AlgFactory.h"
18#include "GaudiKernel/Bootstrap.h"
19#include "GaudiKernel/Algorithm.h"
20#include "GaudiKernel/IHistogramSvc.h"
21#include "EventModel/EventModel.h"
22#include "EventModel/EventHeader.h"
23#include "DatabaseSvc/IDatabaseSvc.h"
24
25#include <iostream>
26#include <fstream>
27#include <string>
28#include <iomanip>
29#include <mysql.h>
30#include <cstdlib>
31
32static const InterfaceID IID_IMeasuredEcmsSvc("IMeasuredEcmsSvc", 1, 0);
33class IMeasuredEcmsSvc : virtual public IService{
34 public:
35 static const InterfaceID& interfaceID() { return IID_IMeasuredEcmsSvc; }
36// static const std::string& serviceInUse() { return g_serviceInUse;}
38
39 virtual void readMeasuredEcms(int runNo)=0;
40 virtual void readRunParams(int runNo)=0;
41 virtual void readDB(int runNo)=0;
42 virtual int getSampleName(int runNo)=0;
43 virtual int getRunFrom(int runNo)=0;
44 virtual int getRunTo(int runNo)=0;
45 virtual double getEcmsErr(int runNo)=0;
46 virtual double getAveEcms(int runNo)=0;
47 virtual double getAveEcmsErr(int runNo)=0;
48 virtual double getPx(int runNo)=0;
49 virtual double getPy(int runNo)=0;
50 virtual double getPz(int runNo)=0;
51 virtual double getEcms(int runNo)=0;
52 virtual bool isRunNoValid(int runNo)=0;
53 virtual bool isGetEcmsValid(int runNo)=0;
54
55 virtual void readInfo(int runNo, char *tab, char *col, char *min_col, char *max_col)=0;
56 virtual double getInfo(int runNo, char *tab, char *col, char *min_col, char *max_col)=0;
57 virtual bool isGetInfoValid(int runNo, char *tab, char *col, char *min_col, char *max_col)=0;
58
59 virtual void readInfo(int runNo)=0;
60 virtual double getInfo(int runNo)=0;
61 virtual bool isGetInfoValid(int runNo)=0;
62
63 virtual void readRecord(int runNo, char *tab, char *col, char *min_col, char *max_col)=0;
64 virtual std::string getRecord(int runNo, char *tab, char *col, char *min_col, char *max_col)=0;
65 virtual bool isGetRecordValid(int runNo, char *tab, char *col, char *min_col, char *max_col)=0;
66
67 virtual void readRecord(int runNo)=0;
68 virtual std::string getRecord(int runNo)=0;
69 virtual bool isGetRecordValid(int runNo)=0;
70
71 virtual void readMeasuredEcms2(int runNo)=0;
72 virtual void readRunParams2(int runNo)=0;
73 virtual int getSampleName()=0;
74 virtual int getRunFrom()=0;
75 virtual int getRunTo()=0;
76 virtual bool isRunNoValid()=0;
77 virtual double getEcmsErr()=0;
78 virtual double getAveEcms()=0;
79 virtual double getAveEcmsErr()=0;
80 virtual double getPx()=0;
81 virtual double getPy()=0;
82 virtual double getPz()=0;
83 virtual double getEcms()=0;
84 virtual bool isReadDBValid()=0;
85 virtual bool isGetEcmsValid()=0;
86// protected:
87// static std::string g_serviceInUse;
88};
89#endif
int runNo
Definition: DQA_TO_DB.cxx:12
virtual double getPz()=0
virtual double getPz(int runNo)=0
virtual bool isGetInfoValid(int runNo, char *tab, char *col, char *min_col, char *max_col)=0
virtual double getPy()=0
virtual double getEcmsErr(int runNo)=0
virtual bool isGetRecordValid(int runNo, char *tab, char *col, char *min_col, char *max_col)=0
virtual double getPx(int runNo)=0
virtual bool isGetEcmsValid(int runNo)=0
virtual void readRecord(int runNo)=0
virtual void readInfo(int runNo, char *tab, char *col, char *min_col, char *max_col)=0
virtual double getAveEcms()=0
virtual double getPx()=0
virtual std::string getRecord(int runNo, char *tab, char *col, char *min_col, char *max_col)=0
virtual void readRunParams(int runNo)=0
virtual void readRecord(int runNo, char *tab, char *col, char *min_col, char *max_col)=0
virtual int getRunTo(int runNo)=0
virtual bool isReadDBValid()=0
virtual double getAveEcmsErr(int runNo)=0
virtual int getRunFrom(int runNo)=0
virtual double getEcms()=0
virtual int getRunTo()=0
virtual bool isGetRecordValid(int runNo)=0
virtual void readMeasuredEcms2(int runNo)=0
virtual void readDB(int runNo)=0
virtual bool isRunNoValid()=0
virtual void readRunParams2(int runNo)=0
virtual double getAveEcmsErr()=0
virtual double getAveEcms(int runNo)=0
virtual int getSampleName(int runNo)=0
virtual bool isGetEcmsValid()=0
virtual double getEcmsErr()=0
virtual bool isGetInfoValid(int runNo)=0
virtual int getSampleName()=0
virtual bool isRunNoValid(int runNo)=0
virtual void readInfo(int runNo)=0
virtual double getPy(int runNo)=0
virtual int getRunFrom()=0
virtual void readMeasuredEcms(int runNo)=0
virtual double getEcms(int runNo)=0
virtual double getInfo(int runNo)=0
virtual double getInfo(int runNo, char *tab, char *col, char *min_col, char *max_col)=0
virtual std::string getRecord(int runNo)=0