#include <CalibFeeSpec.h>
Inheritance diagram for CalibFeeSpec:
Public Member Functions | |
CalibFeeSpec () | |
CalibFeeSpec (const CalibFeeSpec &from) | |
CalibFeeSpec (DayaBay::FeeChannelId channelId, int status, double adcPedestalHigh, double adcPedestalHighSigma, double adcPedestalLow, double adcPedestalLowSigma, double adcThresholdHigh, double adcThresholdLow) | |
virtual | ~CalibFeeSpec () |
int | SetCalibFeeSpec (DayaBay::FeeChannelId channelId, int status, double adcPedestalHigh, double adcPedestalHighSigma, double adcPedestalLow, double adcPedestalLowSigma, double adcThresholdHigh, double adcThresholdLow) |
Bool_t | CanL2Cache () const |
Bool_t | Compare (const CalibFeeSpec &that) const |
DayaBay::FeeChannelId | GetChannelId () const |
int | GetStatus () const |
double | GetAdcThresholdHigh () const |
double | GetAdcThresholdLow () const |
double | GetAdcPedestalHigh () const |
double | GetAdcPedestalLow () const |
double | GetAdcPedestalHighSigma () const |
double | GetAdcPedestalLowSigma () 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 | |
DayaBay::FeeChannelId | m_channelId |
int | m_status |
double | m_adcPedestalHigh |
double | m_adcPedestalHighSigma |
double | m_adcPedestalLow |
double | m_adcPedestalLowSigma |
double | m_adcThresholdHigh |
double | m_adcThresholdLow |
Definition at line 34 of file CalibFeeSpec.h.
CalibFeeSpec::CalibFeeSpec | ( | ) | [inline] |
CalibFeeSpec::CalibFeeSpec | ( | const CalibFeeSpec & | from | ) | [inline] |
CalibFeeSpec::CalibFeeSpec | ( | DayaBay::FeeChannelId | channelId, | |
int | status, | |||
double | adcPedestalHigh, | |||
double | adcPedestalHighSigma, | |||
double | adcPedestalLow, | |||
double | adcPedestalLowSigma, | |||
double | adcThresholdHigh, | |||
double | adcThresholdLow | |||
) | [inline] |
Definition at line 43 of file CalibFeeSpec.h.
00052 {m_channelId = channelId; 00053 m_status = status; 00054 m_adcPedestalHigh = adcPedestalHigh; 00055 m_adcPedestalHighSigma = adcPedestalHighSigma; 00056 m_adcPedestalLow = adcPedestalLow; 00057 m_adcPedestalLowSigma = adcPedestalLowSigma; 00058 m_adcThresholdHigh = adcThresholdHigh; 00059 m_adcThresholdLow = adcThresholdLow;}
virtual CalibFeeSpec::~CalibFeeSpec | ( | ) | [inline, virtual] |
int CalibFeeSpec::SetCalibFeeSpec | ( | DayaBay::FeeChannelId | channelId, | |
int | status, | |||
double | adcPedestalHigh, | |||
double | adcPedestalHighSigma, | |||
double | adcPedestalLow, | |||
double | adcPedestalLowSigma, | |||
double | adcThresholdHigh, | |||
double | adcThresholdLow | |||
) | [inline] |
Definition at line 63 of file CalibFeeSpec.h.
00072 {m_channelId = channelId; 00073 m_status = status; 00074 m_adcPedestalHigh = adcPedestalHigh; 00075 m_adcPedestalHighSigma = adcPedestalHighSigma; 00076 m_adcPedestalLow = adcPedestalLow; 00077 m_adcPedestalLowSigma = adcPedestalLowSigma; 00078 m_adcThresholdHigh = adcThresholdHigh; 00079 m_adcThresholdLow = adcThresholdLow;}
Bool_t CalibFeeSpec::CanL2Cache | ( | ) | const [inline, virtual] |
Bool_t CalibFeeSpec::Compare | ( | const CalibFeeSpec & | that | ) | const [inline] |
Definition at line 83 of file CalibFeeSpec.h.
00083 { 00084 return m_channelId==that.m_channelId 00085 && m_status==that.m_status 00086 && m_adcThresholdHigh==that.m_adcThresholdHigh 00087 && m_adcThresholdLow==that.m_adcThresholdLow 00088 && m_adcPedestalHigh==that.m_adcPedestalHigh 00089 && m_adcPedestalLow==that.m_adcPedestalLow 00090 && m_adcPedestalHighSigma==that.m_adcPedestalHighSigma 00091 && m_adcPedestalLowSigma==that.m_adcPedestalLowSigma; 00092 }
DayaBay::FeeChannelId CalibFeeSpec::GetChannelId | ( | ) | const [inline] |
int CalibFeeSpec::GetStatus | ( | ) | const [inline] |
double CalibFeeSpec::GetAdcThresholdHigh | ( | ) | const [inline] |
double CalibFeeSpec::GetAdcThresholdLow | ( | ) | const [inline] |
double CalibFeeSpec::GetAdcPedestalHigh | ( | ) | const [inline] |
double CalibFeeSpec::GetAdcPedestalLow | ( | ) | const [inline] |
double CalibFeeSpec::GetAdcPedestalHighSigma | ( | ) | const [inline] |
double CalibFeeSpec::GetAdcPedestalLowSigma | ( | ) | const [inline] |
virtual DbiTableRow* CalibFeeSpec::CreateTableRow | ( | ) | const [inline, virtual] |
Implements DbiTableRow.
Definition at line 105 of file CalibFeeSpec.h.
00105 { 00106 return new CalibFeeSpec; }
void CalibFeeSpec::Fill | ( | DbiResultSet & | rs, | |
const DbiValidityRec * | vrec | |||
) | [virtual] |
Implements DbiTableRow.
Definition at line 46 of file CalibFeeSpec.cc.
00047 { 00048 // 00049 // 00050 // Purpose: Fill object from Result Set 00051 // 00052 // Arguments: 00053 // rs in Result Set used to fill object 00054 // vrec in Associated validity record (or 0 if filling 00055 // DbiValidityRec) 00056 // Return: 00057 // 00058 // Modified from the SimPmtSpec 00059 // 00060 // Specification:- 00061 // ============= 00062 // 00063 // o Fill object from current row of Result Set. 00064 00065 // Program Notes:- 00066 // ============= 00067 00068 Int_t numCol = rs.NumCols(); 00069 // The first column (SeqNo) has already been processed. 00070 for (Int_t curCol = 2; curCol <= numCol; ++curCol) { 00071 string colName = rs.CurColName(); 00072 if (colName == "CHANNELID"){ 00073 int channelId = 0; rs >> channelId; //???? 00074 m_channelId = DayaBay::FeeChannelId( channelId );//???? 00075 00076 } 00077 else if ( colName == "STATUS" ) rs >> m_status; 00078 else if ( colName == "ADCTHRESHOLDHIGH" ) rs >> m_adcThresholdHigh; 00079 else if ( colName == "ADCTHRESHOLDLOW" ) rs >> m_adcThresholdLow; 00080 else if ( colName == "ADCPEDESTALHIGH" ) rs >> m_adcPedestalHigh; 00081 else if ( colName == "ADCPEDESTALLOW" ) rs >> m_adcPedestalLow; 00082 else if ( colName == "ADCPETESTALHIGHSIGMA" ) rs >> m_adcPedestalHighSigma; 00083 else if ( colName == "ADCPETESTALLOWSIGMA" ) rs >> m_adcPedestalLowSigma; 00084 else { 00085 LOG(dbi,Logging::kDebug1) << "Ignoring column " << curCol 00086 << "(" << colName << ")" 00087 << "; not part of CalibFeeSpec" << std::endl; 00088 rs.IncrementCurCol(); 00089 } 00090 } 00091 }
void CalibFeeSpec::Store | ( | DbiOutRowStream & | ors, | |
const DbiValidityRec * | vrec | |||
) | const [virtual] |
Reimplemented from DbiTableRow.
Definition at line 94 of file CalibFeeSpec.cc.
00095 { 00096 cout<<"storeing------"<<endl; 00097 // 00098 // 00099 // Purpose: Stream object to output row stream 00100 // 00101 // Arguments: 00102 // ors in Output row stream. 00103 // vrec in Associated validity record (or 0 if filling 00104 // DbiValidityRec) 00105 // 00106 // Return: 00107 // 00108 // Contact: N. West 00109 // 00110 // Specification:- 00111 // ============= 00112 // 00113 // o Stream object to output row stream. 00114 00115 // Program Notes:- 00116 // ============= 00117 00118 // None. 00119 00120 00121 00122 ors << m_channelId.fullPackedData() << m_status 00123 << m_adcPedestalHigh << m_adcPedestalHighSigma << m_adcPedestalLow<< m_adcPedestalLowSigma 00124 << m_adcThresholdHigh<< m_adcThresholdLow; 00125 /* 00126 ors << m_channelId<< m_status 00127 << m_adcThresholdHigh << m_adcThresholdLow << m_adcPedestalHigh << m_adcPedestalHighSigma 00128 << m_adcPedestalLow << m_adcPedestalLowSigma; 00129 */ 00130 }
Definition at line 117 of file CalibFeeSpec.h.
int CalibFeeSpec::m_status [private] |
Definition at line 120 of file CalibFeeSpec.h.
double CalibFeeSpec::m_adcPedestalHigh [private] |
Definition at line 121 of file CalibFeeSpec.h.
double CalibFeeSpec::m_adcPedestalHighSigma [private] |
Definition at line 122 of file CalibFeeSpec.h.
double CalibFeeSpec::m_adcPedestalLow [private] |
Definition at line 123 of file CalibFeeSpec.h.
double CalibFeeSpec::m_adcPedestalLowSigma [private] |
Definition at line 124 of file CalibFeeSpec.h.
double CalibFeeSpec::m_adcThresholdHigh [private] |
Definition at line 125 of file CalibFeeSpec.h.
double CalibFeeSpec::m_adcThresholdLow [private] |
Definition at line 126 of file CalibFeeSpec.h.