#include <FeeCableMap.h>
Inheritance diagram for FeeCableMap:
Public Member Functions | |
FeeCableMap () | |
FeeCableMap (const FeeCableMap &from) | |
FeeCableMap (int feeChannelId, std::string channelDesc, int feeHardwareId, std::string chanHrdwDesc, int sensorId, std::string sensorDesc, int pmtHardwareId, std::string pmtHrdwDesc) | |
virtual | ~FeeCableMap () |
int | SetFeeCableMapValues (int feeChannelId, std::string channelDesc, int feeHardwareId, std::string chanHrdwDesc, int sensorId, std::string sensorDesc, int pmtHardwareId, std::string pmtHrdwDesc) |
Bool_t | CanL2Cache () const |
Bool_t | Compare (const FeeCableMap &that) const |
DayaBay::FeeChannelId | GetFeeChannelId () const |
string | GetFeeChannelDesc () const |
DayaBay::FeeHardwareId | GetFeeHardwareId () const |
string | GetChanHrdwDesc () const |
DayaBay::DetectorSensor | GetSensorId () const |
string | GetsensorDesc () const |
DayaBay::PmtHardwareId | GetPmtHardwareId () const |
string | GetpmtHrdwDesc () 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_feeChannelId |
std::string | m_channelDesc |
DayaBay::FeeHardwareId | m_feeHardwareId |
std::string | m_chanHrdwDesc |
DayaBay::DetectorSensor | m_sensorId |
std::string | m_sensorDesc |
DayaBay::PmtHardwareId | m_pmtHardwareId |
std::string | m_pmtHrdwDesc |
Definition at line 33 of file FeeCableMap.h.
FeeCableMap::FeeCableMap | ( | ) | [inline] |
FeeCableMap::FeeCableMap | ( | const FeeCableMap & | from | ) | [inline] |
FeeCableMap::FeeCableMap | ( | int | feeChannelId, | |
std::string | channelDesc, | |||
int | feeHardwareId, | |||
std::string | chanHrdwDesc, | |||
int | sensorId, | |||
std::string | sensorDesc, | |||
int | pmtHardwareId, | |||
std::string | pmtHrdwDesc | |||
) | [inline] |
Definition at line 41 of file FeeCableMap.h.
00051 { 00052 00053 m_feeChannelId = feeChannelId; 00054 m_channelDesc = channelDesc; 00055 m_feeHardwareId = feeHardwareId; 00056 m_chanHrdwDesc = chanHrdwDesc; 00057 m_sensorId = sensorId; 00058 m_sensorDesc = sensorDesc; 00059 m_pmtHardwareId = pmtHardwareId; 00060 m_pmtHrdwDesc = pmtHrdwDesc; 00061 00062 }
virtual FeeCableMap::~FeeCableMap | ( | ) | [inline, virtual] |
int FeeCableMap::SetFeeCableMapValues | ( | int | feeChannelId, | |
std::string | channelDesc, | |||
int | feeHardwareId, | |||
std::string | chanHrdwDesc, | |||
int | sensorId, | |||
std::string | sensorDesc, | |||
int | pmtHardwareId, | |||
std::string | pmtHrdwDesc | |||
) | [inline] |
Definition at line 67 of file FeeCableMap.h.
00077 { m_feeChannelId = feeChannelId; 00078 m_channelDesc = channelDesc; 00079 m_feeHardwareId = feeHardwareId; 00080 m_chanHrdwDesc = chanHrdwDesc; 00081 m_sensorId = sensorId; 00082 m_sensorDesc = sensorDesc; 00083 m_pmtHardwareId = pmtHardwareId; 00084 m_pmtHrdwDesc = pmtHrdwDesc; 00085 }
Bool_t FeeCableMap::CanL2Cache | ( | ) | const [inline, virtual] |
Bool_t FeeCableMap::Compare | ( | const FeeCableMap & | that | ) | const [inline] |
Definition at line 90 of file FeeCableMap.h.
00090 { 00091 return m_feeChannelId == that.m_feeChannelId 00092 && m_channelDesc == that.m_channelDesc 00093 && m_feeHardwareId == that.m_feeHardwareId 00094 && m_chanHrdwDesc == that.m_chanHrdwDesc 00095 && m_sensorId == that.m_sensorId 00096 && m_sensorDesc == that.m_sensorDesc 00097 && m_pmtHardwareId == that.m_pmtHardwareId 00098 && m_pmtHrdwDesc == that.m_pmtHrdwDesc;}
DayaBay::FeeChannelId FeeCableMap::GetFeeChannelId | ( | ) | const [inline] |
string FeeCableMap::GetFeeChannelDesc | ( | ) | const [inline] |
DayaBay::FeeHardwareId FeeCableMap::GetFeeHardwareId | ( | ) | const [inline] |
string FeeCableMap::GetChanHrdwDesc | ( | ) | const [inline] |
DayaBay::DetectorSensor FeeCableMap::GetSensorId | ( | ) | const [inline] |
string FeeCableMap::GetsensorDesc | ( | ) | const [inline] |
DayaBay::PmtHardwareId FeeCableMap::GetPmtHardwareId | ( | ) | const [inline] |
string FeeCableMap::GetpmtHrdwDesc | ( | ) | const [inline] |
virtual DbiTableRow* FeeCableMap::CreateTableRow | ( | ) | const [inline, virtual] |
Implements DbiTableRow.
Definition at line 110 of file FeeCableMap.h.
00110 { 00111 return new FeeCableMap; }
void FeeCableMap::Fill | ( | DbiResultSet & | rs, | |
const DbiValidityRec * | vrec | |||
) | [virtual] |
Implements DbiTableRow.
Definition at line 45 of file FeeCableMap.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 == "CHANNELID" ){ 00072 int channelId = 0; rs >> channelId; 00073 m_feeChannelId = DayaBay::FeeChannelId ( channelId );} 00074 else if ( colName == "CHANNELDESC" ) rs >> m_channelDesc; 00075 else if ( colName == "FEEHARDWAREID" ){ 00076 int feeHardwareId = 0; rs >> feeHardwareId; 00077 m_feeHardwareId = DayaBay::FeeHardwareId ( feeHardwareId );} 00078 else if ( colName == "CHANHRDWDESC" ) rs >> m_chanHrdwDesc; 00079 else if ( colName == "SENSORID" ){ 00080 int sensorId = 0; rs >> sensorId; 00081 m_sensorId = DayaBay::DetectorSensor ( sensorId );} 00082 else if ( colName == "SENSORDESC" ) rs >> m_sensorDesc; 00083 else if ( colName == "PMTHARDWAREID" ){ 00084 int pmtHardwareId = 0; rs >> pmtHardwareId; 00085 m_pmtHardwareId = DayaBay::PmtHardwareId ( pmtHardwareId );} 00086 else if ( colName == "PMTHRDWDESC" ) rs >> m_pmtHrdwDesc; 00087 else { 00088 LOG(dbi,Logging::kDebug1) << "Ignoring column " << curCol 00089 << "(" << colName << ")" 00090 << "; not part of FeeCableMap" << std::endl; 00091 rs.IncrementCurCol(); 00092 } 00093 } 00094 }
void FeeCableMap::Store | ( | DbiOutRowStream & | ors, | |
const DbiValidityRec * | vrec | |||
) | const [virtual] |
Reimplemented from DbiTableRow.
Definition at line 97 of file FeeCableMap.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 00122 cout<<"feecablemap::store"<<endl; 00123 ors << m_feeChannelId.fullPackedData() << m_channelDesc 00124 << m_feeHardwareId.id() << m_chanHrdwDesc 00125 << m_sensorId.fullPackedData() << m_sensorDesc 00126 << m_pmtHardwareId.id() << m_pmtHrdwDesc; 00127 }
Definition at line 122 of file FeeCableMap.h.
std::string FeeCableMap::m_channelDesc [private] |
Definition at line 123 of file FeeCableMap.h.
Definition at line 124 of file FeeCableMap.h.
std::string FeeCableMap::m_chanHrdwDesc [private] |
Definition at line 125 of file FeeCableMap.h.
Definition at line 126 of file FeeCableMap.h.
std::string FeeCableMap::m_sensorDesc [private] |
Definition at line 127 of file FeeCableMap.h.
Definition at line 128 of file FeeCableMap.h.
std::string FeeCableMap::m_pmtHrdwDesc [private] |
Definition at line 129 of file FeeCableMap.h.