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

Public Member Functions | |
| Dcs_Hv () | |
| Dcs_Hv (const Dcs_Hv &from) | |
| Dcs_Hv (UInt_t a, UInt_t b, UInt_t c, UInt_t d, UInt_t e, UInt_t f, UInt_t g, UInt_t h, UInt_t i, UInt_t j, UInt_t k, UInt_t l) | |
| virtual | ~Dcs_Hv () |
| Bool_t | CanL2Cache () const |
| Bool_t | Compare (const Dcs_Hv &that) const |
| UInt_t | GetIndex (UInt_t) const |
| Int_t | GetLogical () const |
| Int_t | GetGeometry () const |
| Int_t | GetMainframe () const |
| Int_t | GetCard () const |
| Int_t | GetChannel () const |
| Int_t | GetPlane () const |
| Int_t | GetSupermod () const |
| Int_t | GetSide () const |
| Int_t | GetPmt () const |
| Int_t | GetSetV () const |
| Int_t | GetReadV () const |
| Int_t | GetAlarm () const |
| Int_t | GetAggregateNo () const |
| virtual void | Fill (DbiResultSet &rs, const DbiValidityRec *vrec) |
| virtual void | Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const |
| virtual DbiTableRow * | CreateTableRow () const |
Private Attributes | |
| Int_t | iLogical |
| Int_t | iGeom |
| Int_t | iMainframe |
| Int_t | iCard |
| Int_t | iChannel |
| Int_t | iPlane |
| Int_t | iSupermod |
| Int_t | iSide |
| Int_t | iPmt |
| Int_t | iSetV |
| Int_t | iReadV |
| Int_t | iAlarm |
|
|
Definition at line 28 of file Dcs_Hv.h. 00028 { }
|
|
|
Definition at line 29 of file Dcs_Hv.h. 00029 : DbiTableRow(from) { *this = from; }
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 30 of file Dcs_Hv.h. References iAlarm, iCard, iChannel, iGeom, iLogical, iMainframe, iPlane, iPmt, iReadV, iSetV, iSide, and iSupermod. 00030 : 00031 iLogical(a),iGeom(b),iMainframe(c),iCard(d),iChannel(e),iPlane(f),iSupermod(g),iSide(h),iPmt(i),iSetV(j),iReadV(k), iAlarm(l) { }
|
|
|
Definition at line 32 of file Dcs_Hv.h. 00032 { };
|
|
|
Reimplemented from DbiTableRow. Definition at line 36 of file Dcs_Hv.h. 00036 { return kTRUE; }
|
|
|
Definition at line 37 of file Dcs_Hv.h. References iAlarm, iCard, iChannel, iGeom, iLogical, iMainframe, iPlane, iPmt, iReadV, iSetV, iSide, and iSupermod. 00037 {
00038 return iLogical == that.iLogical
00039 && iGeom == that.iGeom
00040 && iMainframe == that.iMainframe
00041 && iCard == that.iCard
00042 && iChannel == that.iChannel
00043 && iPlane == that.iPlane
00044 && iSupermod == that.iSupermod
00045 && iSide == that.iSide
00046 && iPmt == that.iPmt
00047 && iSetV == that.iSetV
00048 && iReadV == that.iReadV
00049 && iAlarm == that.iAlarm; }
|
|
|
Implements DbiTableRow. Definition at line 70 of file Dcs_Hv.h. 00070 { return new Dcs_Hv; }
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 30 of file Dcs_Hv.cxx. 00031 {
00032 //
00033 //
00034 // Purpose: Fill object from Result Set
00035 //
00036 // Arguments:
00037 // rs in Result Set used to fill object
00038 // vrec in Associated validity record (or 0 if filling
00039 // DbiValidityRec)
00040 //
00041 // o Fill object from current row of Result Set.
00042 // This method demonstrates both the "dumb" fill method (just
00043 // load the data as it comes) and the smart method (check column
00044 // name and load according to column order).
00045
00046 // if ( rs.TableName() != "DCS_HV"
00047 // && rs.TableName() != "Dcs_Hv" ) {
00048
00049 // Dumb method.
00050 rs >> iLogical >> iGeom >> iMainframe >> iCard >> iChannel >> iPlane >> iSupermod >> iSide >> iPmt >> iSetV >> iReadV >> iAlarm;
00051
00052 // }
00053
00054 // Smart method
00055 /* else {
00056 Int_t numCol = rs.NumCols();
00057 // The first column (SeqNo) has already been processed.
00058 for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00059 string colName = rs.CurColName();
00060 if ( colName == "HV_LOGICAL" ) rs >> iLogical;
00061 else if ( colName == "HV_GEOMETRICAL" ) rs >> iGeom;
00062 else if ( colName == "HV_MAINFRAME" ) rs >> iMainframe;
00063 else if ( colName == "HV_CARD" ) rs >> iCard;
00064 else if ( colName == "HV_CHANNEL" ) rs >> iChannel;
00065 else if ( colName == "HV_PLANE" ) rs >> iPlane;
00066 else if ( colName == "HV_SUPERMODULE" ) rs >> iSupermod;
00067 else if ( colName == "HV_SIDE" ) rs >> iSide;
00068 else if ( colName == "HV_PMTNUMBER" ) rs >> iPmt;
00069 else if ( colName == "HV_SETVOLTAGE" ) rs >> iSetV;
00070 else if ( colName == "HV_READVOLTAGE" ) rs >> iReadV;
00071 else if ( colName == "HV_ERROR" ) rs >> iAlarm;
00072 else {
00073 MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00074 << "(" << colName << ")"
00075 << "; not part of DcsHv" << endl;
00076 rs.IncrementCurCol();
00077 }
00078 }
00079 }
00080 */
00081 }
|
|
|
Reimplemented from DbiTableRow. Definition at line 64 of file Dcs_Hv.h. 00064 { return iSupermod; }
|
|
|
Definition at line 63 of file Dcs_Hv.h. 00063 { return iAlarm; }
|
|
|
Definition at line 55 of file Dcs_Hv.h. 00055 { return iCard; }
|
|
|
Definition at line 56 of file Dcs_Hv.h. 00056 { return iChannel; }
|
|
|
Definition at line 53 of file Dcs_Hv.h. 00053 { return iGeom; }
|
|
|
Reimplemented from DbiTableRow. Definition at line 51 of file Dcs_Hv.h. 00051 { return iSupermod; }
|
|
|
Definition at line 52 of file Dcs_Hv.h. 00052 { return iLogical; }
|
|
|
Definition at line 54 of file Dcs_Hv.h. 00054 { return iMainframe; }
|
|
|
Definition at line 57 of file Dcs_Hv.h. 00057 { return iPlane; }
|
|
|
Definition at line 60 of file Dcs_Hv.h. 00060 { return iPmt; }
|
|
|
Definition at line 62 of file Dcs_Hv.h. 00062 { return iReadV; }
|
|
|
Definition at line 61 of file Dcs_Hv.h. 00061 { return iSetV; }
|
|
|
Definition at line 59 of file Dcs_Hv.h. 00059 { return iSide; }
|
|
|
Definition at line 58 of file Dcs_Hv.h. 00058 { return iSupermod; }
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 84 of file Dcs_Hv.cxx. References iCard, iChannel, iGeom, iLogical, iMainframe, iPlane, iPmt, iReadV, iSetV, iSide, and iSupermod. 00085 {
00086 // Purpose: Stream object to output row stream
00087 //
00088 // Arguments:
00089 // ors in Output row stream.
00090 // vrec in Associated validity record (or 0 if filling
00091 // DbiValidityRec)
00092 // o Stream object to output row stream.
00093
00094 ors << iLogical << iGeom << iMainframe << iCard << iChannel << iPlane << iSupermod << iSide << iPmt << iSetV << iReadV << iAlarm;
00095 // printf("printing for logical %d geom %d\n",iLogical,iGeom);
00096 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.9.1