#include <CalibPmtSpec.h>
Inheritance diagram for CalibPmtSpec:
Public Member Functions | |
CalibPmtSpec () | |
CalibPmtSpec (const CalibPmtSpec &from) | |
CalibPmtSpec (int pmtId, std::string describ, int status, double speHigh, double sigmaSpeHigh, double speLow, double timeOffset, double timeSpread, double efficiency, double prePulseProb, double afterPulseProb, double darkRate) | |
virtual | ~CalibPmtSpec () |
int | SetCalibPmtSpecValues (int pmtId, std::string describ, int status, double speHigh, double sigmaSpeHigh, double speLow, double timeOffset, double timeSpread, double efficiency, double prePulseProb, double afterPulseProb, double darkRate) |
Bool_t | CanL2Cache () const |
Bool_t | Compare (const CalibPmtSpec &that) const |
int | GetPmtId () const |
int | GetStatus () const |
string | GetDescrib () const |
double | GetSpeHigh () const |
double | GetSigmaSpeHigh () const |
double | GetSpeLow () const |
double | GetTimeOffset () const |
double | GetTimeSpread () const |
double | GetEfficiency () const |
double | GetPrePulseProb () const |
double | GetAfterPulseProb () const |
double | GetDarkRate () const |
virtual DbiTableRow * | CreateTableRow () const |
virtual void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
virtual std::string | name () const |
virtual size_t | size () const |
virtual Int_t | GetAggregateNo () const |
DbiResult * | GetOwner () const |
virtual UInt_t | GetIndex (UInt_t defIndex) const |
void | SetOwner (DbiResult *owner) |
virtual bool | CreateDatabaseTables (Int_t db_no=0, const char *tablename="default") |
virtual std::string | GetDatabaseLayout () |
Private Attributes | |
int | m_pmtId |
int | m_status |
std::string | m_describ |
double | m_speHigh |
double | m_sigmaSpeHigh |
double | m_speLow |
double | m_timeOffset |
double | m_timeSpread |
double | m_efficiency |
double | m_prePulseProb |
double | m_afterPulseProb |
double | m_darkRate |
Definition at line 33 of file CalibPmtSpec.h.
CalibPmtSpec::CalibPmtSpec | ( | ) | [inline] |
CalibPmtSpec::CalibPmtSpec | ( | const CalibPmtSpec & | from | ) | [inline] |
CalibPmtSpec::CalibPmtSpec | ( | int | pmtId, | |
std::string | describ, | |||
int | status, | |||
double | speHigh, | |||
double | sigmaSpeHigh, | |||
double | speLow, | |||
double | timeOffset, | |||
double | timeSpread, | |||
double | efficiency, | |||
double | prePulseProb, | |||
double | afterPulseProb, | |||
double | darkRate | |||
) | [inline] |
Definition at line 40 of file CalibPmtSpec.h.
00052 : // Dark Rate 00053 m_pmtId(pmtId), m_describ(describ), 00054 m_status(status), m_speHigh(speHigh), m_sigmaSpeHigh(sigmaSpeHigh), 00055 m_speLow(speLow), m_timeOffset(timeOffset), m_timeSpread(timeSpread), 00056 m_efficiency(efficiency), m_prePulseProb(prePulseProb), m_afterPulseProb(afterPulseProb), 00057 m_darkRate(darkRate){ }
virtual CalibPmtSpec::~CalibPmtSpec | ( | ) | [inline, virtual] |
int CalibPmtSpec::SetCalibPmtSpecValues | ( | int | pmtId, | |
std::string | describ, | |||
int | status, | |||
double | speHigh, | |||
double | sigmaSpeHigh, | |||
double | speLow, | |||
double | timeOffset, | |||
double | timeSpread, | |||
double | efficiency, | |||
double | prePulseProb, | |||
double | afterPulseProb, | |||
double | darkRate | |||
) | [inline] |
Definition at line 59 of file CalibPmtSpec.h.
00072 { 00073 m_pmtId = pmtId; 00074 m_describ = describ; 00075 m_status = status; 00076 m_speHigh = speHigh; 00077 m_sigmaSpeHigh = sigmaSpeHigh; 00078 m_speLow = speLow; 00079 m_timeOffset = timeOffset; 00080 m_timeSpread = timeSpread; 00081 m_efficiency = efficiency; 00082 m_prePulseProb = prePulseProb; 00083 m_afterPulseProb = afterPulseProb; 00084 m_darkRate = darkRate; 00085 }
Bool_t CalibPmtSpec::CanL2Cache | ( | ) | const [inline, virtual] |
Bool_t CalibPmtSpec::Compare | ( | const CalibPmtSpec & | that | ) | const [inline] |
Definition at line 89 of file CalibPmtSpec.h.
00089 { 00090 return m_pmtId == that.m_pmtId 00091 && m_describ == that.m_describ 00092 && m_status == that.m_status 00093 && m_speHigh == that.m_speHigh 00094 && m_sigmaSpeHigh == that.m_sigmaSpeHigh 00095 && m_speLow == that.m_speLow 00096 && m_timeOffset == that.m_timeOffset 00097 && m_timeSpread == that.m_timeSpread 00098 && m_efficiency == that.m_efficiency 00099 && m_prePulseProb == that.m_prePulseProb 00100 && m_afterPulseProb == that.m_afterPulseProb 00101 && m_darkRate == that.m_darkRate;}
int CalibPmtSpec::GetPmtId | ( | ) | const [inline] |
int CalibPmtSpec::GetStatus | ( | ) | const [inline] |
string CalibPmtSpec::GetDescrib | ( | ) | const [inline] |
double CalibPmtSpec::GetSpeHigh | ( | ) | const [inline] |
double CalibPmtSpec::GetSigmaSpeHigh | ( | ) | const [inline] |
double CalibPmtSpec::GetSpeLow | ( | ) | const [inline] |
double CalibPmtSpec::GetTimeOffset | ( | ) | const [inline] |
double CalibPmtSpec::GetTimeSpread | ( | ) | const [inline] |
double CalibPmtSpec::GetEfficiency | ( | ) | const [inline] |
double CalibPmtSpec::GetPrePulseProb | ( | ) | const [inline] |
double CalibPmtSpec::GetAfterPulseProb | ( | ) | const [inline] |
double CalibPmtSpec::GetDarkRate | ( | ) | const [inline] |
virtual DbiTableRow* CalibPmtSpec::CreateTableRow | ( | ) | const [inline, virtual] |
Implements DbiTableRow.
Definition at line 117 of file CalibPmtSpec.h.
00117 { 00118 return new CalibPmtSpec; }
void CalibPmtSpec::Fill | ( | DbiResultSet & | rs, | |
const DbiValidityRec * | vrec | |||
) | [virtual] |
Implements DbiTableRow.
Definition at line 45 of file CalibPmtSpec.cc.
00046 { 00047 // 00048 // 00049 // Purpose: Fill object from Result Set 00050 // 00051 // Arguments: 00052 // rs in Result Set used to fill object 00053 // vrec in Associated validity record (or 0 if filling 00054 // DbiValidityRec) 00055 // Return: 00056 // 00057 // Modified from the SimPmtSpec 00058 // 00059 // Specification:- 00060 // ============= 00061 // 00062 // o Fill object from current row of Result Set. 00063 00064 // Program Notes:- 00065 // ============= 00066 00067 Int_t numCol = rs.NumCols(); 00068 // The first column (SeqNo) has already been processed. 00069 for (Int_t curCol = 2; curCol <= numCol; ++curCol) { 00070 string colName = rs.CurColName(); 00071 if ( colName == "PMTID" ){ 00072 //int pmtId = 0; rs >> pmtId; 00073 //m_pmtId = DayaBay::DetectorSensor( pmtId ); 00074 rs >> m_pmtId; 00075 } 00076 else if ( colName == "PMTDESCRIB" ) rs >> m_describ; 00077 else if ( colName == "PMTSTATUS" ) rs >> m_status;//rewrited by Xiaosu Chen. 00078 else if ( colName == "PMTSPEHIGH" ) rs >> m_speHigh; 00079 else if ( colName == "PMTSIGMASPEHIGH" ) rs >> m_sigmaSpeHigh; 00080 else if ( colName == "PMTSPELOW" ) rs >> m_speLow; 00081 else if ( colName == "PMTTOFFSET" ) rs >> m_timeOffset; 00082 else if ( colName == "PMTTSPREAD" ) rs >> m_timeSpread; 00083 else if ( colName == "PMTEFFIC" ) rs >> m_efficiency; 00084 else if ( colName == "PMTPREPULSE" ) rs >> m_prePulseProb; 00085 else if ( colName == "PMTAFTERPULSE" ) rs >> m_afterPulseProb; 00086 else if ( colName == "PMTDARKRATE" ) rs >> m_darkRate; 00087 else { 00088 LOG(dbi,Logging::kDebug1) << "Ignoring column " << curCol 00089 << "(" << colName << ")" 00090 << "; not part of CalibPmtSpec" << std::endl; 00091 rs.IncrementCurCol(); 00092 } 00093 } 00094 }
void CalibPmtSpec::Store | ( | DbiOutRowStream & | ors, | |
const DbiValidityRec * | vrec | |||
) | const [virtual] |
Reimplemented from DbiTableRow.
Definition at line 97 of file CalibPmtSpec.cc.
00098 { 00099 // 00100 // 00101 // Purpose: Stream object to output row stream 00102 // 00103 // Arguments: 00104 // ors in Output row stream. 00105 // vrec in Associated validity record (or 0 if filling 00106 // DbiValidityRec) 00107 // 00108 // Return: 00109 // 00110 // Contact: N. West 00111 // 00112 // Specification:- 00113 // ============= 00114 // 00115 // o Stream object to output row stream. 00116 00117 // Program Notes:- 00118 // ============= 00119 00120 // None. 00121 ors << m_pmtId << m_describ << m_status 00122 << m_speHigh << m_sigmaSpeHigh << m_speLow << m_timeOffset 00123 << m_timeSpread << m_efficiency << m_prePulseProb 00124 << m_afterPulseProb << m_darkRate; 00125 00126 /* 00127 ors << m_pmtId.sensorId() << m_describ << m_status 00128 << m_speHigh << m_sigmaSpeHigh << m_speLow << m_timeOffset 00129 << m_timeSpread << m_efficiency << m_prePulseProb 00130 << m_afterPulseProb << m_darkRate; 00131 */ 00132 }
int CalibPmtSpec::m_pmtId [private] |
Definition at line 130 of file CalibPmtSpec.h.
int CalibPmtSpec::m_status [private] |
Definition at line 131 of file CalibPmtSpec.h.
std::string CalibPmtSpec::m_describ [private] |
Definition at line 132 of file CalibPmtSpec.h.
double CalibPmtSpec::m_speHigh [private] |
Definition at line 133 of file CalibPmtSpec.h.
double CalibPmtSpec::m_sigmaSpeHigh [private] |
Definition at line 134 of file CalibPmtSpec.h.
double CalibPmtSpec::m_speLow [private] |
Definition at line 135 of file CalibPmtSpec.h.
double CalibPmtSpec::m_timeOffset [private] |
Definition at line 136 of file CalibPmtSpec.h.
double CalibPmtSpec::m_timeSpread [private] |
Definition at line 137 of file CalibPmtSpec.h.
double CalibPmtSpec::m_efficiency [private] |
Definition at line 138 of file CalibPmtSpec.h.
double CalibPmtSpec::m_prePulseProb [private] |
Definition at line 139 of file CalibPmtSpec.h.
double CalibPmtSpec::m_afterPulseProb [private] |
Definition at line 140 of file CalibPmtSpec.h.
double CalibPmtSpec::m_darkRate [private] |
Definition at line 141 of file CalibPmtSpec.h.