PulserTimingCardSetting Class Reference

#include <PulserTimingCardSetting.h>

Inheritance diagram for PulserTimingCardSetting:
DbiTableRow

List of all members.

Public Member Functions

 PulserTimingCardSetting (Int_t box=-1, Float_t delay=260.)
virtual ~PulserTimingCardSetting ()
virtual UInt_t GetIndex (UInt_t) const
Int_t GetPulserBox () const
float GetDelay () const
float GetDelayNanoSecs () const
virtual Bool_t CanL2Cache () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const

Private Member Functions

 PulserTimingCardSetting (const PulserTimingCardSetting &from)
 ClassDef (PulserTimingCardSetting, 0)

Private Attributes

Int_t fPulserBox
Float_t fDelay_ns

Detailed Description

Definition at line 20 of file PulserTimingCardSetting.h.


Constructor & Destructor Documentation

PulserTimingCardSetting::PulserTimingCardSetting ( Int_t  box = -1,
Float_t  delay = 260. 
) [inline]

Definition at line 23 of file PulserTimingCardSetting.h.

References LEA_CTOR.

00024     : fPulserBox(box),fDelay_ns(delay) { LEA_CTOR; };

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

Definition at line 26 of file PulserTimingCardSetting.h.

References LEA_DTOR.

00026 { LEA_DTOR; };

PulserTimingCardSetting::PulserTimingCardSetting ( const PulserTimingCardSetting from  )  [inline, private]

Definition at line 46 of file PulserTimingCardSetting.h.

References LEA_CTOR.

00047     : DbiTableRow(from) { LEA_CTOR; *this = from; }


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 34 of file PulserTimingCardSetting.h.

00034 { return kTRUE; }

PulserTimingCardSetting::ClassDef ( PulserTimingCardSetting  ,
 
) [private]
virtual DbiTableRow* PulserTimingCardSetting::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 35 of file PulserTimingCardSetting.h.

00035 { return new PulserTimingCardSetting; }

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

Implements DbiTableRow.

Definition at line 33 of file PulserTimingCardSetting.cxx.

References DbiRowStream::CurColName(), fDelay_ns, fPulserBox, DbiRowStream::HasRowCounter(), DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00034                                                             {
00035 
00036 //
00037 //
00038 //  Purpose:  Fill object from Result Set
00039 //
00040 //  Arguments: 
00041 //    rs           in    Result Set used to fill object
00042 //    vrec         in    Associated validity record (or 0 if filling
00043 //                                                    DbiValidityRec)
00044 
00045    if ( rs.TableName() == "PULSERTIMINGCARDSETTING" ) {
00046       // Dumb method.
00047      rs  >> fPulserBox >> fDelay_ns;
00048    }
00049    else {      
00050      // Smart method
00051      Int_t numCol = rs.NumCols();
00052      //  The first column (SeqNo) has already been processed.
00053      for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00054        string colName = rs.CurColName();
00055        if ( colName     == "PULSERBOX" )        rs >> fPulserBox;
00056        else if( colName == "DELAYNS" )          rs >> fDelay_ns;
00057        else {
00058             MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00059                                    << "(" << colName << ")"
00060                                    << "; not part of PulserTimingCardSetting" 
00061                                    << endl;
00062             rs.IncrementCurCol();
00063          }
00064       }
00065    }
00066    
00067 }

float PulserTimingCardSetting::GetDelay (  )  const [inline]

Definition at line 30 of file PulserTimingCardSetting.h.

References fDelay_ns, and Munits::ns.

00030 {return fDelay_ns*Munits::ns; };

float PulserTimingCardSetting::GetDelayNanoSecs (  )  const [inline]

Definition at line 31 of file PulserTimingCardSetting.h.

References fDelay_ns.

Referenced by PulserTimeCalScheme::CalibrateByPulser().

00031 {return fDelay_ns; };

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

Reimplemented from DbiTableRow.

Definition at line 28 of file PulserTimingCardSetting.h.

References fPulserBox.

00028 {if(fPulserBox>=0) return (UInt_t)(fPulserBox); return 999;};

Int_t PulserTimingCardSetting::GetPulserBox (  )  const [inline]

Definition at line 29 of file PulserTimingCardSetting.h.

References fPulserBox.

00029 {return fPulserBox; };

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

Reimplemented from DbiTableRow.

Definition at line 70 of file PulserTimingCardSetting.cxx.

References fDelay_ns, and fPulserBox.

00072 {
00073   //
00074   //
00075   //  Purpose:  Stream object to output row stream
00076   //
00077   
00078   ors << fPulserBox << fDelay_ns;
00079 }


Member Data Documentation

Definition at line 42 of file PulserTimingCardSetting.h.

Referenced by Fill(), GetDelay(), GetDelayNanoSecs(), and Store().

Definition at line 41 of file PulserTimingCardSetting.h.

Referenced by Fill(), GetIndex(), GetPulserBox(), and Store().


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1