RangeLookupTableRow Class Reference

#include <RangeLookupTableRow.h>

Inheritance diagram for RangeLookupTableRow:
DbiTableRow

List of all members.

Public Member Functions

 RangeLookupTableRow ()
 RangeLookupTableRow (double range, double momentum)
UInt_t GetIndex (UInt_t) const
Double_t GetRange () const
Double_t GetMomentum () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const

Private Member Functions

 ClassDef (RangeLookupTableRow, 1)

Private Attributes

Double_t frange
Double_t fmomentum

Detailed Description

Definition at line 6 of file RangeLookupTableRow.h.


Constructor & Destructor Documentation

RangeLookupTableRow::RangeLookupTableRow (  )  [inline]

Definition at line 9 of file RangeLookupTableRow.h.

References fmomentum, and frange.

00009 { frange = 0; fmomentum = 0;};

RangeLookupTableRow::RangeLookupTableRow ( double  range,
double  momentum 
) [inline]

Definition at line 10 of file RangeLookupTableRow.h.

References fmomentum, and frange.

00010 {frange=range; fmomentum=momentum;};


Member Function Documentation

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

Implements DbiTableRow.

Definition at line 16 of file RangeLookupTableRow.h.

00017     { return new RangeLookupTableRow; };

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

Implements DbiTableRow.

Definition at line 18 of file RangeLookupTableRow.cxx.

References fmomentum, and frange.

00020 {
00021   //  only impliment 'dumb' method. I don't care about column names. 
00022   rs >> frange >> fmomentum;
00023 }

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

Reimplemented from DbiTableRow.

Definition at line 12 of file RangeLookupTableRow.h.

References frange.

00012 { return (int)frange; };

Double_t RangeLookupTableRow::GetMomentum (  )  const [inline]

Definition at line 14 of file RangeLookupTableRow.h.

References fmomentum.

Referenced by RangeLookupTable::Rebuild().

00014 { return fmomentum; };

Double_t RangeLookupTableRow::GetRange (  )  const [inline]

Definition at line 13 of file RangeLookupTableRow.h.

References frange.

Referenced by RangeLookupTable::Rebuild().

00013 { return frange; };

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

Reimplemented from DbiTableRow.

Definition at line 27 of file RangeLookupTableRow.cxx.

References fmomentum, and frange.

00028                                                                {
00029   ors  << frange << fmomentum; 
00030 }


Member Data Documentation

Double_t RangeLookupTableRow::fmomentum [private]

Definition at line 25 of file RangeLookupTableRow.h.

Referenced by Fill(), GetMomentum(), RangeLookupTableRow(), and Store().

Double_t RangeLookupTableRow::frange [private]

Definition at line 24 of file RangeLookupTableRow.h.

Referenced by Fill(), GetIndex(), GetRange(), RangeLookupTableRow(), 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