BOSS 7.0.2
BESIII Offline Software System
Loading...
Searching...
No Matches
ReadME Class Reference

#include <ReadME.h>

Public Member Functions

 ReadME (int runNo)
 
virtual ~ReadME ()
 
void readMeasuredEcms (int runNo)
 
int getSampleName ()
 
int getRunFrom ()
 
int getRunTo ()
 
bool isRunNoValid ()
 
double getEcms ()
 
double getEcmsErr ()
 
double getAveEcms ()
 
double getAveEcmsErr ()
 
 ReadME (int runNo)
 
virtual ~ReadME ()
 
void readMeasuredEcms (int runNo)
 
int getSampleName ()
 
int getRunFrom ()
 
int getRunTo ()
 
bool isRunNoValid ()
 
double getEcms ()
 
double getEcmsErr ()
 
double getAveEcms ()
 
double getAveEcmsErr ()
 
 ReadME (int runNo)
 
virtual ~ReadME ()
 
void readMeasuredEcms (int runNo)
 
int getSampleName ()
 
int getRunFrom ()
 
int getRunTo ()
 
bool isRunNoValid ()
 
double getEcms ()
 
double getEcmsErr ()
 
double getAveEcms ()
 
double getAveEcmsErr ()
 

Detailed Description

Constructor & Destructor Documentation

◆ ReadME() [1/3]

ReadME::ReadME ( int  runNo)
inline

Definition at line 21 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

21 {
22 if(runNo!=preRunNo){
23 preRunNo=runNo;
25 }
26 }
int runNo
Definition: DQA_TO_DB.cxx:12

◆ ~ReadME() [1/3]

virtual ReadME::~ReadME ( )
inlinevirtual

◆ ReadME() [2/3]

ReadME::ReadME ( int  runNo)
inline

Definition at line 21 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

21 {
22 if(runNo!=preRunNo){
23 preRunNo=runNo;
25 }
26 }

◆ ~ReadME() [2/3]

virtual ReadME::~ReadME ( )
inlinevirtual

Definition at line 27 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

27{}

◆ ReadME() [3/3]

ReadME::ReadME ( int  runNo)
inline

Definition at line 21 of file InstallArea/include/KKMC/KKMC/ReadME.h.

21 {
22 if(runNo!=preRunNo){
23 preRunNo=runNo;
25 }
26 }

◆ ~ReadME() [3/3]

virtual ReadME::~ReadME ( )
inlinevirtual

Definition at line 27 of file InstallArea/include/KKMC/KKMC/ReadME.h.

27{}

Member Function Documentation

◆ getAveEcms() [1/3]

double ReadME::getAveEcms ( )
inline

Definition at line 36 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

36{return m_aveEcms;}

◆ getAveEcms() [2/3]

double ReadME::getAveEcms ( )
inline

Definition at line 36 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

36{return m_aveEcms;}

◆ getAveEcms() [3/3]

double ReadME::getAveEcms ( )
inline

Definition at line 36 of file InstallArea/include/KKMC/KKMC/ReadME.h.

36{return m_aveEcms;}

◆ getAveEcmsErr() [1/3]

double ReadME::getAveEcmsErr ( )
inline

Definition at line 37 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

37{return m_aveEcmsErr;}

◆ getAveEcmsErr() [2/3]

double ReadME::getAveEcmsErr ( )
inline

Definition at line 37 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

37{return m_aveEcmsErr;}

◆ getAveEcmsErr() [3/3]

double ReadME::getAveEcmsErr ( )
inline

Definition at line 37 of file InstallArea/include/KKMC/KKMC/ReadME.h.

37{return m_aveEcmsErr;}

◆ getEcms() [1/3]

double ReadME::getEcms ( )
inline

Definition at line 34 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

34{return m_ecms;}

Referenced by EvtDecay::execute().

◆ getEcms() [2/3]

double ReadME::getEcms ( )
inline

Definition at line 34 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

34{return m_ecms;}

◆ getEcms() [3/3]

double ReadME::getEcms ( )
inline

Definition at line 34 of file InstallArea/include/KKMC/KKMC/ReadME.h.

34{return m_ecms;}

◆ getEcmsErr() [1/3]

double ReadME::getEcmsErr ( )
inline

Definition at line 35 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

35{return m_ecmsErr;}

◆ getEcmsErr() [2/3]

double ReadME::getEcmsErr ( )
inline

Definition at line 35 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

35{return m_ecmsErr;}

◆ getEcmsErr() [3/3]

double ReadME::getEcmsErr ( )
inline

Definition at line 35 of file InstallArea/include/KKMC/KKMC/ReadME.h.

35{return m_ecmsErr;}

◆ getRunFrom() [1/3]

int ReadME::getRunFrom ( )
inline

Definition at line 31 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

31{return m_runFrom;}

◆ getRunFrom() [2/3]

int ReadME::getRunFrom ( )
inline

Definition at line 31 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

31{return m_runFrom;}

◆ getRunFrom() [3/3]

int ReadME::getRunFrom ( )
inline

Definition at line 31 of file InstallArea/include/KKMC/KKMC/ReadME.h.

31{return m_runFrom;}

◆ getRunTo() [1/3]

int ReadME::getRunTo ( )
inline

Definition at line 32 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

32{return m_runTo;}

◆ getRunTo() [2/3]

int ReadME::getRunTo ( )
inline

Definition at line 32 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

32{return m_runTo;}

◆ getRunTo() [3/3]

int ReadME::getRunTo ( )
inline

Definition at line 32 of file InstallArea/include/KKMC/KKMC/ReadME.h.

32{return m_runTo;}

◆ getSampleName() [1/3]

int ReadME::getSampleName ( )
inline

Definition at line 30 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

30{return m_sampleName;}

◆ getSampleName() [2/3]

int ReadME::getSampleName ( )
inline

Definition at line 30 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

30{return m_sampleName;}

◆ getSampleName() [3/3]

int ReadME::getSampleName ( )
inline

Definition at line 30 of file InstallArea/include/KKMC/KKMC/ReadME.h.

30{return m_sampleName;}

◆ isRunNoValid() [1/3]

bool ReadME::isRunNoValid ( )
inline

Definition at line 33 of file Generator/BesEvtGen/BesEvtGen-00-03-58/EvtGen_i/ReadME.h.

33{return m_runNoValid;}

Referenced by EvtDecay::execute().

◆ isRunNoValid() [2/3]

bool ReadME::isRunNoValid ( )
inline

Definition at line 33 of file Generator/KKMC/KKMC-00-00-55/KKMC/ReadME.h.

33{return m_runNoValid;}

◆ isRunNoValid() [3/3]

bool ReadME::isRunNoValid ( )
inline

Definition at line 33 of file InstallArea/include/KKMC/KKMC/ReadME.h.

33{return m_runNoValid;}

◆ readMeasuredEcms() [1/3]

void ReadME::readMeasuredEcms ( int  runNo)

Definition at line 4 of file BesEvtGen/BesEvtGen-00-03-58/src/ReadME.cxx.

4 {
5 m_sampleName=-1; m_ecms=-1; m_ecmsErr=-1; m_aveEcms=-1; m_aveEcmsErr=-1; m_runNoValid=false;
6 if(runNo==0){
7 std::cout<<"RunNo can not be 0"<<std::endl;
8 }
9 else{
10 int runNum=std::abs(runNo);
11 StatusCode scDbSvc=Gaudi::svcLocator()->service("DatabaseSvc", m_dbSvc, true);
12 if(scDbSvc.isFailure()){
13 std::cout<<"Gaudi::svcLocator()->service is Failed"<<std::endl;
14 }
15 else{
16 char stmt[400];
17 snprintf(stmt, 1024, "select sample, RunFrom, RunTo, Ecms, Ecms_err, Ave_Ecms, Ave_Ecms_err from MeasuredEcms2 where RunFrom <= %d and RunTo >= %d", runNum, runNum);
19 int rowNo=m_dbSvc->query("offlinedb", stmt, res);
20 if(rowNo==0){
21 std::cout<<"Can not find this RowNo"<<std::endl;
22 }
23 else{
24 DatabaseRecord* records=res[0];
25 m_runFrom=records->GetDouble("RunFrom");
26 m_runTo=records->GetDouble("RunTo");
27 m_sampleName=records->GetDouble("sample");
28 m_ecms=records->GetDouble("Ecms");
29 m_ecmsErr=records->GetDouble("Ecms_err");
30 m_aveEcms=records->GetDouble("Ave_Ecms");
31 m_aveEcmsErr=records->GetDouble("Ave_Ecms_err");
32 if(m_ecms!=-1) m_runNoValid=true;
33 }
34 }
35 }
36}
virtual int query(const std::string &dbName, const std::string &sql, DatabaseRecordVector &res)=0

Referenced by ReadME().

◆ readMeasuredEcms() [2/3]

void ReadME::readMeasuredEcms ( int  runNo)

◆ readMeasuredEcms() [3/3]

void ReadME::readMeasuredEcms ( int  runNo)

The documentation for this class was generated from the following files: