BOSS 7.0.9
BESIII Offline Software System
|
#include <MeasuredEcmsSvc.h>
Public Member Functions | |
MeasuredEcmsSvc (const std::string &name, ISvcLocator *svcLoc) | |
virtual | ~MeasuredEcmsSvc () |
virtual StatusCode | queryInterface (const InterfaceID &riid, void **ppvIF) |
virtual StatusCode | initialize () |
virtual StatusCode | finalize () |
void | handle (const Incident &) |
bool | isRunNoValid () |
double | getEcms () |
double | getBeamEnergy () |
double | getEcmsError () |
double | getAverageEcms () |
double | getAverageEcmsError () |
double | getSampleName () |
double | getPx () |
double | getPy () |
double | getPz () |
double | getBeamEnergyError () |
double | getEcms (int runNo) |
double | getBeamEnergy (int runNo) |
std::string | getRecord (int runNo, char *tab, char *col, char *min_col, char *max_col) |
Public Member Functions inherited from IMeasuredEcmsSvc | |
virtual | ~IMeasuredEcmsSvc () |
virtual bool | isRunNoValid ()=0 |
virtual double | getEcms ()=0 |
virtual double | getBeamEnergy ()=0 |
virtual double | getEcmsError ()=0 |
virtual double | getAverageEcms ()=0 |
virtual double | getAverageEcmsError ()=0 |
virtual double | getSampleName ()=0 |
virtual double | getPx ()=0 |
virtual double | getPy ()=0 |
virtual double | getPz ()=0 |
virtual double | getEcms (int runNo)=0 |
virtual std::string | getRecord (int runNo, char *tab, char *col, char *min_col, char *max_col)=0 |
Public Attributes | |
bool | m_readOneTime |
int | m_runFrom |
int | m_runTo |
std::map< int, int > | m_mapBeamE |
int | m_sele |
Protected Member Functions | |
void | readDBTable (int runNo) |
int | triggerDBTable (int runNo) |
void | readDBTable (int runFrom, int runTo) |
virtual void | readDBTable (int runNo)=0 |
virtual int | triggerDBTable (int runNo)=0 |
Friends | |
class | CnvFactory< MeasuredEcmsSvc > |
Additional Inherited Members | |
Static Public Member Functions inherited from IMeasuredEcmsSvc | |
static const InterfaceID & | interfaceID () |
Class to read the data information from database, such as ECMS, ECMS Error ... ( beam_energy = ECMS / 2.0). Access to almost all the XYZ, 3773, and 4180 data.
Definition at line 24 of file MeasuredEcmsSvc.h.
MeasuredEcmsSvc::MeasuredEcmsSvc | ( | const std::string & | name, |
ISvcLocator * | svcLoc | ||
) |
Constructor
Definition at line 15 of file MeasuredEcmsSvc.cxx.
|
virtual |
Destructor
Definition at line 25 of file MeasuredEcmsSvc.cxx.
|
virtual |
Finalize
Definition at line 74 of file MeasuredEcmsSvc.cxx.
|
inlinevirtual |
|
inlinevirtual |
Return average Ecms error
Implements IMeasuredEcmsSvc.
Definition at line 66 of file MeasuredEcmsSvc.h.
|
inlinevirtual |
|
inline |
Return beam energy depend on runNo only. Here RunNo. can be set independ on event.
Definition at line 91 of file MeasuredEcmsSvc.h.
|
inline |
|
virtual |
Return Ecms ( Ecms = beam_energy * 2 )
Implements IMeasuredEcmsSvc.
Definition at line 130 of file MeasuredEcmsSvc.cxx.
Referenced by getBeamEnergy().
|
virtual |
Return Ecms depend on runNo only. Here RunNo. can be set independ on event.
Implements IMeasuredEcmsSvc.
Definition at line 151 of file MeasuredEcmsSvc.cxx.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Return the string depend on the parameters
runNo | runNo. input (independent) |
tab | table name in database, such as MeasuredEcms2, RunParams |
col | the variable name which you want to read, such as Ecms |
min_col | the down limits variable name, such as Run_From |
max_col | the upper limits variable name, such as Run_To |
Implements IMeasuredEcmsSvc.
Definition at line 331 of file MeasuredEcmsSvc.cxx.
|
inlinevirtual |
void MeasuredEcmsSvc::handle | ( | const Incident & | inc | ) |
Handle. Process after initialization
Definition at line 101 of file MeasuredEcmsSvc.cxx.
|
virtual |
Definition at line 32 of file MeasuredEcmsSvc.cxx.
|
inlinevirtual |
Return true or false for runNo
Implements IMeasuredEcmsSvc.
Definition at line 51 of file MeasuredEcmsSvc.h.
|
virtual |
Query interface
Definition at line 90 of file MeasuredEcmsSvc.cxx.
|
protected |
Definition at line 247 of file MeasuredEcmsSvc.cxx.
|
protectedvirtual |
Read database table
Implements IMeasuredEcmsSvc.
Definition at line 175 of file MeasuredEcmsSvc.cxx.
Referenced by getEcms(), handle(), and initialize().
|
protectedvirtual |
trigger based on runNo @option 1 MeasuredEcms2 table for XYZ (Charmonium data) @option 2 RunParams table for 3773, 4180 (Charm data)
Implements IMeasuredEcmsSvc.
Definition at line 307 of file MeasuredEcmsSvc.cxx.
Referenced by readDBTable().
|
friend |
Definition at line 1 of file MeasuredEcmsSvc.h.
std::map<int,int> MeasuredEcmsSvc::m_mapBeamE |
Definition at line 106 of file MeasuredEcmsSvc.h.
Referenced by handle(), and readDBTable().
bool MeasuredEcmsSvc::m_readOneTime |
Definition at line 103 of file MeasuredEcmsSvc.h.
Referenced by handle(), initialize(), and MeasuredEcmsSvc().
int MeasuredEcmsSvc::m_runFrom |
Definition at line 104 of file MeasuredEcmsSvc.h.
Referenced by initialize(), MeasuredEcmsSvc(), and readDBTable().
int MeasuredEcmsSvc::m_runTo |
Definition at line 105 of file MeasuredEcmsSvc.h.
Referenced by initialize(), MeasuredEcmsSvc(), and readDBTable().
int MeasuredEcmsSvc::m_sele |
Definition at line 107 of file MeasuredEcmsSvc.h.
Referenced by getAverageEcms(), getAverageEcmsError(), getBeamEnergyError(), getEcms(), getEcmsError(), getPx(), getPy(), getPz(), getRecord(), getSampleName(), handle(), and initialize().