BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
BesEvtGen/BesEvtGen-00-04-30/EvtGen_i/ReadME.h
Go to the documentation of this file.
1/****** Write By Lianjin WU <[email protected]> ******/
2/****** Reading offline beam information ******/
3#ifndef Analysis_ReadME_H
4#define Analysis_ReadME_H
5/******/
6#include "GaudiKernel/IDataProviderSvc.h"
7#include "GaudiKernel/ISvcLocator.h"
8#include "GaudiKernel/PropertyMgr.h"
9#include "GaudiKernel/MsgStream.h"
10#include "GaudiKernel/Bootstrap.h"
11#include "GaudiKernel/AlgFactory.h"
13#include <iostream>
14#include <fstream>
15#include <string>
16#include <iomanip>
17#include <mysql.h>
18#include <string.h>
19class ReadME{
20 public:
22 if(runNo!=preRunNo){
23 Gaudi::svcLocator()->service("DatabaseSvc", m_dbSvc, true);
25 preRunNo=runNo;
26 }
27 }
28 virtual ~ReadME(){}
29 /******/
30 void readMeasuredEcms(int runNo);
31 int getSampleName(){return m_sampleName;}
32 int getRunFrom(){return m_runFrom;}
33 int getRunTo(){return m_runTo;}
34 bool isRunNoValid(){return m_runNoValid;}
35 double getEcms(){return m_ecms;}
36 double getEcmsErr(){return m_ecmsErr;}
37 double getAveEcms(){return m_aveEcms;}
38 double getAveEcmsErr(){return m_aveEcmsErr;}
39 void readDB(int runNo);
40 void readRunParams(int runNo);
41 private:
42 //RunParamsMin and RunParamsMax are used to set range for psi3773 listed in RunParams
43 int RunParamsMin, RunParamsMax;
44 //MeasuredEcmsMin and MeasuredEcmsMax for the data listed in MeasuredEcms2
45 int MeasuredEcmsMin, MeasuredEcmsMax;
46 //DsRunParamsMin and DsRunParamsMax are used to set range for the new 4180 data listed in RunParams
47 int DsRunParamsMin, DsRunParamsMax;
48 //runxyzMin and runxyzMax are used to set range for the new xyz data listed in RunParams
49 int runxyzMin, runxyzMax;
50
51 IDatabaseSvc* m_dbSvc;
52 static int preRunNo;
53 int m_sampleName, m_runFrom, m_runTo;
54 double m_ecms, m_ecmsErr, m_aveEcms, m_aveEcmsErr;
55 double m_px, m_py, m_pz;
56 bool m_runNoValid;
57};
58#endif
int runNo
Definition DQA_TO_DB.cxx:12