#include <DbiDemoData1.h>
Inheritance diagram for DbiDemoData1:

Public Member Functions | |
| DbiDemoData1 () | |
| DbiDemoData1 (const DbiDemoData1 &from) | |
| DbiDemoData1 (UInt_t s, Float_t p, Float_t g1, Float_t g2) | |
| virtual | ~DbiDemoData1 () |
| Bool_t | CanL2Cache () const |
| Bool_t | Compare (const DbiDemoData1 &that) const |
| UInt_t | GetIndex (UInt_t) const |
| Int_t | GetSubSystem () const |
| Float_t | GetPedestal () const |
| Float_t | GetGain1 () const |
| Float_t | GetGain2 () const |
| virtual DbiTableRow * | CreateTableRow () const |
| virtual void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
Private Attributes | |
| Int_t | fSubSystem |
| Float_t | fPedestal |
| Float_t | fGain1 |
| Float_t | fGain2 |
|
|
Definition at line 30 of file DbiDemoData1.h. 00030 { LEA_CTOR; }
|
|
|
Definition at line 31 of file DbiDemoData1.h. 00032 : DbiTableRow(from) { LEA_CTOR; *this = from; }
|
|
||||||||||||||||||||
|
Definition at line 33 of file DbiDemoData1.h. References fGain1, fGain2, fPedestal, fSubSystem, and s(). 00033 : 00034 fSubSystem(s),fPedestal(p),fGain1(g1),fGain2(g2) { LEA_CTOR; } virtual ~DbiDemoData1(){ LEA_DTOR; };
|
|
|
Definition at line 35 of file DbiDemoData1.h. 00035 { LEA_DTOR; };
|
|
|
Reimplemented from DbiTableRow. Definition at line 39 of file DbiDemoData1.h. 00039 { return kTRUE; }
|
|
|
Definition at line 40 of file DbiDemoData1.h. References fGain1, fGain2, fPedestal, and fSubSystem. 00040 {
00041 return fSubSystem == that.fSubSystem
00042 && fPedestal == that.fPedestal
00043 && fGain1 == that.fGain1
00044 && fGain2 == that.fGain2; }
|
|
|
Implements DbiTableRow. Definition at line 52 of file DbiDemoData1.h. 00052 {
00053 return new DbiDemoData1; }
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 53 of file DbiDemoData1.cxx. References MSG. 00054 {
00055 //
00056 //
00057 // Purpose: Fill object from Result Set
00058 //
00059 // Arguments:
00060 // rs in Result Set used to fill object
00061 // vrec in Associated validity record (or 0 if filling
00062 // DbiValidityRec)
00063 // Return:
00064 //
00065 // Contact: N. West
00066 //
00067 // Specification:-
00068 // =============
00069 //
00070 // o Fill object from current row of Result Set.
00071
00072 // Program Notes:-
00073 // =============
00074
00075 // This method demonstrates both the "dumb" fill method (just
00076 // load the data as it comes) and the smart method (check column
00077 // name and load according to column order).
00078
00079 if ( rs.TableName() != "DEMOASCIIDATA"
00080 && rs.TableName() != "DemoASCIIData" ) {
00081
00082 // Dumb method.
00083 rs >> fSubSystem >> fPedestal >> fGain1 >> fGain2;
00084
00085 }
00086
00087 // Smart method
00088 else {
00089 Int_t numCol = rs.NumCols();
00090 // The first column (SeqNo) has already been processed.
00091 for (Int_t curCol = 2; curCol <= numCol; ++curCol) {
00092 string colName = rs.CurColName();
00093 if ( colName == "SUBSYSTEM" ) rs >> fSubSystem;
00094 else if ( colName == "PEDESTAL" ) rs >> fPedestal;
00095 else if ( colName == "GAIN1" ) rs >> fGain1;
00096 else if ( colName == "GAIN2" ) rs >> fGain2;
00097 else {
00098 MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00099 << "(" << colName << ")"
00100 << "; not part of DbiDemoData1" << endl;
00101 rs.IncrementCurCol();
00102 }
00103 }
00104
00105 }
00106 }
|
|
|
Definition at line 49 of file DbiDemoData1.h. 00049 { return fGain1; }
|
|
|
Definition at line 50 of file DbiDemoData1.h. 00050 { return fGain2; }
|
|
|
Reimplemented from DbiTableRow. Definition at line 46 of file DbiDemoData1.h. References fSubSystem. 00046 { return fSubSystem + 3000000000U; }
|
|
|
Definition at line 48 of file DbiDemoData1.h. 00048 { return fPedestal; }
|
|
|
Definition at line 47 of file DbiDemoData1.h. 00047 { return fSubSystem; }
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 109 of file DbiDemoData1.cxx. References fGain1, fPedestal, and fSubSystem. 00110 {
00111 //
00112 //
00113 // Purpose: Stream object to output row stream
00114 //
00115 // Arguments:
00116 // ors in Output row stream.
00117 // vrec in Associated validity record (or 0 if filling
00118 // DbiValidityRec)
00119 //
00120 // Return:
00121 //
00122 // Contact: N. West
00123 //
00124 // Specification:-
00125 // =============
00126 //
00127 // o Stream object to output row stream.
00128
00129 // Program Notes:-
00130 // =============
00131
00132 // None.
00133
00134
00135 ors << fSubSystem << fPedestal << fGain1 << fGain2;
00136
00137 }
|
|
|
Definition at line 67 of file DbiDemoData1.h. Referenced by Compare(), DbiDemoData1(), and Store(). |
|
|
Definition at line 68 of file DbiDemoData1.h. Referenced by Compare(), and DbiDemoData1(). |
|
|
Definition at line 66 of file DbiDemoData1.h. Referenced by Compare(), DbiDemoData1(), and Store(). |
|
|
Definition at line 65 of file DbiDemoData1.h. Referenced by Compare(), DbiDemoData1(), GetIndex(), and Store(). |
1.3.9.1