BOSS
7.0.4
BESIII Offline Software System
Loading...
Searching...
No Matches
Generator/BesEvtGen/BesEvtGen-00-03-98/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"
12
#include "DatabaseSvc/IDatabaseSvc.h"
13
#include <iostream>
14
#include <fstream>
15
#include <string>
16
#include <iomanip>
17
#include <mysql.h>
18
#include <string.h>
19
class
ReadME
{
20
public
:
21
ReadME
(
int
runNo
){
22
if
(
runNo
!=preRunNo){
23
Gaudi::svcLocator()->service(
"DatabaseSvc"
, m_dbSvc,
true
);
24
readDB
(
runNo
);
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
runNo
int runNo
Definition:
DQA_TO_DB.cxx:12
IDatabaseSvc
Definition:
Database/DatabaseSvc/DatabaseSvc-00-00-26/DatabaseSvc/IDatabaseSvc.h:15
ReadME
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:19
ReadME::getSampleName
int getSampleName()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:31
ReadME::readDB
void readDB(int runNo)
Definition:
BesEvtGen/BesEvtGen-00-03-98/src/ReadME.cxx:35
ReadME::getEcms
double getEcms()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:35
ReadME::getRunTo
int getRunTo()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:33
ReadME::getRunFrom
int getRunFrom()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:32
ReadME::getAveEcms
double getAveEcms()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:37
ReadME::~ReadME
virtual ~ReadME()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:28
ReadME::getAveEcmsErr
double getAveEcmsErr()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:38
ReadME::isRunNoValid
bool isRunNoValid()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:34
ReadME::getEcmsErr
double getEcmsErr()
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:36
ReadME::ReadME
ReadME(int runNo)
Definition:
Generator/BesEvtGen/BesEvtGen-00-03-98/EvtGen_i/ReadME.h:21
ReadME::readRunParams
void readRunParams(int runNo)
Definition:
BesEvtGen/BesEvtGen-00-03-98/src/ReadME.cxx:50
ReadME::readMeasuredEcms
void readMeasuredEcms(int runNo)
Definition:
BesEvtGen/BesEvtGen-00-03-98/src/ReadME.cxx:4
source
Generator
BesEvtGen
BesEvtGen-00-03-98
EvtGen_i
ReadME.h
Generated by
1.9.6