11#ifndef Utilities_MeasuredEcmsSvc_H
12#define Utilities_MeasuredEcmsSvc_H
37 virtual StatusCode
queryInterface(
const InterfaceID& riid,
void** ppvIF);
48 void handle(
const Incident&);
60 double getEcmsError() {
return (m_rowNo1 != 0) ? (double)m_dbRecordVector[
m_sele]->GetDouble(
"Ecms_err") : 0.; }
63 double getAverageEcms() {
return (m_rowNo1 != 0) ? (double)m_dbRecordVector[
m_sele]->GetDouble(
"Ave_Ecms") : 0.; }
69 double getSampleName() {
return (m_rowNo1 != 0) ? (double)m_dbRecordVector[
m_sele]->GetDouble(
"sample") : 0.; }
72 double getPx() {
return (m_rowNo2 != 0) ? (double)m_dbRecordVector[
m_sele]->GetDouble(
"px") : 0.011; }
75 double getPy() {
return (m_rowNo2 != 0) ? (double)m_dbRecordVector[
m_sele]->GetDouble(
"py") : 0.; }
78 double getPz() {
return (m_rowNo2 != 0) ? (double)m_dbRecordVector[
m_sele]->GetDouble(
"pz") : 0.; }
101 std::string
getRecord(
int runNo,
char *tab,
char *col,
char *min_col,
char *max_col);
125 IDataProviderSvc *m_eventSvc;
double getAverageEcmsError()
double getBeamEnergyError()
virtual StatusCode queryInterface(const InterfaceID &riid, void **ppvIF)
std::map< int, int > m_mapBeamE
virtual ~MeasuredEcmsSvc()
void handle(const Incident &)
double getBeamEnergy(int runNo)
int triggerDBTable(int runNo)
virtual StatusCode initialize()
virtual StatusCode finalize()
std::string getRecord(int runNo, char *tab, char *col, char *min_col, char *max_col)
void readDBTable(int runNo)