| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

DcsPmtHv Class Reference

#include <DcsPmtHv.h>

Inheritance diagram for DcsPmtHv:

[legend]
Collaboration diagram for DcsPmtHv:
[legend]
List of all members.

Public Member Functions

 DcsPmtHv ()
 DcsPmtHv (const DcsPmtHv &from)
 DcsPmtHv (int lad, int col, int rin, float vol, int pow)
virtual ~DcsPmtHv ()
Bool_t CanL2Cache () const
Bool_t Compare (const DcsPmtHv &that) const
int GetLadder () const
int GetColumn () const
int GetRing () const
float GetVoltage () const
int GetPower () const
virtual DbiTableRowCreateTableRow () 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
DbiResultGetOwner () 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

int m_Ladder
int m_Column
int m_Ring
float m_Voltage
int m_Power

Detailed Description

Definition at line 12 of file DcsPmtHv.h.


Constructor & Destructor Documentation

DcsPmtHv::DcsPmtHv (  )  [inline]

Definition at line 16 of file DcsPmtHv.h.

00016 { }

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

Definition at line 18 of file DcsPmtHv.h.

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

DcsPmtHv::DcsPmtHv ( int  lad,
int  col,
int  rin,
float  vol,
int  pow 
) [inline]

Definition at line 21 of file DcsPmtHv.h.

00021                                                           :
00022              m_Ladder(lad), m_Column(col),
00023              m_Ring(rin), m_Voltage(vol), 
00024              m_Power(pow) { }; 

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

Definition at line 26 of file DcsPmtHv.h.

00026 {  };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 29 of file DcsPmtHv.h.

00029 { return kFALSE; }

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

Definition at line 31 of file DcsPmtHv.h.

00031                                               {
00032                 return      m_Ladder     == that.m_Ladder
00033                        &&   m_Column     == that.m_Column
00034                        &&   m_Ring       == that.m_Ring
00035                        &&   m_Voltage    == that.m_Voltage
00036                        &&   m_Power      == that.m_Power;
00037    }

int DcsPmtHv::GetLadder (  )  const [inline]

Definition at line 39 of file DcsPmtHv.h.

00039 { return m_Ladder; }

int DcsPmtHv::GetColumn (  )  const [inline]

Definition at line 40 of file DcsPmtHv.h.

00040 { return m_Column; }

int DcsPmtHv::GetRing (  )  const [inline]

Definition at line 41 of file DcsPmtHv.h.

00041 { return m_Ring; }

float DcsPmtHv::GetVoltage (  )  const [inline]

Definition at line 42 of file DcsPmtHv.h.

00042 { return m_Voltage; }

int DcsPmtHv::GetPower (  )  const [inline]

Definition at line 43 of file DcsPmtHv.h.

00043 { return m_Power; }

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

Implements DbiTableRow.

Definition at line 45 of file DcsPmtHv.h.

00045 { return new DcsPmtHv; }

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

Implements DbiTableRow.

Definition at line 13 of file DcsPmtHv.cc.

00014                                                       {
00015 
00016     Int_t numCol = rs.NumCols();
00017     //  The first column (SeqNo) has already been processed.
00018     for (Int_t curCol = 2; curCol <= numCol; ++curCol) {
00019       string colName = rs.CurColName();
00020       if (      colName == "LADDER"    )     rs >> m_Ladder;
00021       else if ( colName == "COLUMN" )        rs >> m_Column;
00022       else if ( colName == "RING" )          rs >> m_Ring;
00023       else if ( colName == "VOLTAGE" )       rs >> m_Voltage;
00024       else if ( colName == "POWER" )         rs >> m_Power;
00025       else {
00026         LOG(dbi,Logging::kDebug1) << "Ignoring column " << curCol 
00027                                << "(" << colName << ")"
00028                               << "; not part of DcsPmtHv" << std::endl;
00029         rs.IncrementCurCol();
00030       }
00031     }
00032     
00033 }

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

Reimplemented from DbiTableRow.

Definition at line 35 of file DcsPmtHv.cc.

00036                                                                  {
00037   ors << m_Ladder << m_Column << m_Ring << m_Voltage << m_Power; 
00038    
00039 }


Member Data Documentation

int DcsPmtHv::m_Ladder [private]

Definition at line 57 of file DcsPmtHv.h.

int DcsPmtHv::m_Column [private]

Definition at line 58 of file DcsPmtHv.h.

int DcsPmtHv::m_Ring [private]

Definition at line 59 of file DcsPmtHv.h.

float DcsPmtHv::m_Voltage [private]

Definition at line 60 of file DcsPmtHv.h.

int DcsPmtHv::m_Power [private]

Definition at line 61 of file DcsPmtHv.h.


The documentation for this class was generated from the following files:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:16:48 2011 for DcsDataSvc by doxygen 1.4.7