Dcs_Hv Class Reference

#include <Dcs_Hv.h>

Inheritance diagram for Dcs_Hv:
DbiTableRow

List of all members.

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 DbiTableRowCreateTableRow () 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

Detailed Description

Definition at line 11 of file Dcs_Hv.h.


Constructor & Destructor Documentation

Dcs_Hv::Dcs_Hv (  )  [inline]

Definition at line 18 of file Dcs_Hv.h.

00018 { }

Dcs_Hv::Dcs_Hv ( const Dcs_Hv from  )  [inline]

Definition at line 19 of file Dcs_Hv.h.

00019 : DbiTableRow(from) { *this = from; }

Dcs_Hv::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 
) [inline]

Definition at line 20 of file Dcs_Hv.h.

00020                                                                                                                                  : 
00021           iLogical(a),iGeom(b),iMainframe(c),iCard(d),iChannel(e),iPlane(f),iSupermod(g),iSide(h),iPmt(i),iSetV(j),iReadV(k), iAlarm(l) { }

virtual Dcs_Hv::~Dcs_Hv (  )  [inline, virtual]

Definition at line 22 of file Dcs_Hv.h.

00022 { };


Member Function Documentation

Bool_t Dcs_Hv::CanL2Cache (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 26 of file Dcs_Hv.h.

00026 { return kTRUE; }

Bool_t Dcs_Hv::Compare ( const Dcs_Hv that  )  const [inline]

Definition at line 27 of file Dcs_Hv.h.

References iAlarm, iCard, iChannel, iGeom, iLogical, iMainframe, iPlane, iPmt, iReadV, iSetV, iSide, and iSupermod.

00027                                             {
00028                 return     iLogical   == that.iLogical
00029                        &&  iGeom      == that.iGeom
00030                        &&  iMainframe == that.iMainframe
00031                        &&  iCard      == that.iCard
00032                        &&  iChannel   == that.iChannel
00033                        &&  iPlane     == that.iPlane
00034                        &&  iSupermod  == that.iSupermod
00035                        &&  iSide      == that.iSide
00036                        &&  iPmt       == that.iPmt
00037                        &&  iSetV      == that.iSetV
00038                        &&  iReadV     == that.iReadV
00039                        &&  iAlarm     == that.iAlarm; }

virtual DbiTableRow* Dcs_Hv::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 60 of file Dcs_Hv.h.

00060 { return new Dcs_Hv; }

void Dcs_Hv::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 30 of file Dcs_Hv.cxx.

References iAlarm, iCard, iChannel, iGeom, iLogical, iMainframe, iPlane, iPmt, iReadV, iSetV, iSide, and iSupermod.

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 }

Int_t Dcs_Hv::GetAggregateNo (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 54 of file Dcs_Hv.h.

References iSupermod.

00054 { return iSupermod; }

Int_t Dcs_Hv::GetAlarm (  )  const [inline]

Definition at line 53 of file Dcs_Hv.h.

References iAlarm.

00053 { return iAlarm; }

Int_t Dcs_Hv::GetCard (  )  const [inline]

Definition at line 45 of file Dcs_Hv.h.

References iCard.

00045 { return iCard; }

Int_t Dcs_Hv::GetChannel (  )  const [inline]

Definition at line 46 of file Dcs_Hv.h.

References iChannel.

00046 { return iChannel; }

Int_t Dcs_Hv::GetGeometry (  )  const [inline]

Definition at line 43 of file Dcs_Hv.h.

References iGeom.

00043 { return iGeom; }

UInt_t Dcs_Hv::GetIndex ( UInt_t   )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 41 of file Dcs_Hv.h.

References iSupermod.

00041 { return iSupermod; }

Int_t Dcs_Hv::GetLogical (  )  const [inline]

Definition at line 42 of file Dcs_Hv.h.

References iLogical.

00042 { return iLogical; }

Int_t Dcs_Hv::GetMainframe (  )  const [inline]

Definition at line 44 of file Dcs_Hv.h.

References iMainframe.

00044 { return iMainframe; }

Int_t Dcs_Hv::GetPlane (  )  const [inline]

Definition at line 47 of file Dcs_Hv.h.

References iPlane.

00047 { return iPlane; }

Int_t Dcs_Hv::GetPmt (  )  const [inline]

Definition at line 50 of file Dcs_Hv.h.

References iPmt.

00050 { return iPmt; }

Int_t Dcs_Hv::GetReadV (  )  const [inline]

Definition at line 52 of file Dcs_Hv.h.

References iReadV.

00052 { return  iReadV; }

Int_t Dcs_Hv::GetSetV (  )  const [inline]

Definition at line 51 of file Dcs_Hv.h.

References iSetV.

00051 { return iSetV; }

Int_t Dcs_Hv::GetSide (  )  const [inline]

Definition at line 49 of file Dcs_Hv.h.

References iSide.

00049 { return iSide; }

Int_t Dcs_Hv::GetSupermod (  )  const [inline]

Definition at line 48 of file Dcs_Hv.h.

References iSupermod.

00048 { return iSupermod; }

void Dcs_Hv::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 84 of file Dcs_Hv.cxx.

References iAlarm, 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 }


Member Data Documentation

Int_t Dcs_Hv::iAlarm [private]

Definition at line 77 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetAlarm(), and Store().

Int_t Dcs_Hv::iCard [private]

Definition at line 69 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetCard(), and Store().

Int_t Dcs_Hv::iChannel [private]

Definition at line 70 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetChannel(), and Store().

Int_t Dcs_Hv::iGeom [private]

Definition at line 67 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetGeometry(), and Store().

Int_t Dcs_Hv::iLogical [private]

Definition at line 66 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetLogical(), and Store().

Int_t Dcs_Hv::iMainframe [private]

Definition at line 68 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetMainframe(), and Store().

Int_t Dcs_Hv::iPlane [private]

Definition at line 71 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetPlane(), and Store().

Int_t Dcs_Hv::iPmt [private]

Definition at line 74 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetPmt(), and Store().

Int_t Dcs_Hv::iReadV [private]

Definition at line 76 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetReadV(), and Store().

Int_t Dcs_Hv::iSetV [private]

Definition at line 75 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetSetV(), and Store().

Int_t Dcs_Hv::iSide [private]

Definition at line 73 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetSide(), and Store().

Int_t Dcs_Hv::iSupermod [private]

Definition at line 72 of file Dcs_Hv.h.

Referenced by Compare(), Fill(), GetAggregateNo(), GetIndex(), GetSupermod(), and Store().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1