Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CalMapperData Class Reference

#include <CalMapperData.h>

Inheritance diagram for CalMapperData:

Inheritance graph
[legend]
Collaboration diagram for CalMapperData:

Collaboration graph
[legend]
List of all members.

Public Methods

 CalMapperData ()
 CalMapperData (UInt_t sk, UInt_t s, Int_t t, Int_t st, Float_t y, Int_t side, Float_t l, Float_t dl, Float_t lx, Float_t dlx, Float_t ux, Float_t dux)
virtual ~CalMapperData ()
Float_t ResponseCorrected (const Float_t sigin, Float_t Y) const
UInt_t GetIndex (UInt_t defIndex) const
UInt_t GetSEIDkey () const
UInt_t GetStripEndId () const
Int_t GetTestID () const
Int_t GetStripNum () const
Float_t GetYpos () const
Int_t GetSide () const
Float_t GetLightOutput () const
Float_t GetDeltaLO () const
Float_t GetLowerX () const
Float_t GetDeltaLX () const
Float_t GetUpperX () const
Float_t GetDeltaUX () const
virtual DbiTableRowCreateTableRow () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const

Private Methods

 CalMapperData (const CalMapperData &from)

Private Attributes

Int_t fSEIDkey
Int_t fStripEndId
Int_t fTestID
Int_t fStripNum
Float_t fYpos
Int_t fSide
Float_t fLightOutput
Float_t fDeltaLO
Float_t fLowerX
Float_t fDeltaLX
Float_t fUpperX
Float_t fDeltaUX

Constructor & Destructor Documentation

CalMapperData::CalMapperData   [inline]
 

Definition at line 20 of file CalMapperData.h.

00020 { LEA_CTOR; }

CalMapperData::CalMapperData UInt_t    sk,
UInt_t    s,
Int_t    t,
Int_t    st,
Float_t    y,
Int_t    side,
Float_t    l,
Float_t    dl,
Float_t    lx,
Float_t    dlx,
Float_t    ux,
Float_t    dux
[inline]
 

Definition at line 21 of file CalMapperData.h.

References fDeltaLO, fDeltaLX, fDeltaUX, fLightOutput, fLowerX, fSEIDkey, fSide, fStripEndId, fStripNum, fTestID, fUpperX, and fYpos.

00021                                                                                                                                                          :
00022       fSEIDkey(sk),fStripEndId(s),fTestID(t),fStripNum(st),fYpos(y),fSide(side),fLightOutput(l),fDeltaLO(dl),fLowerX(lx),fDeltaLX(dlx),fUpperX(ux),fDeltaUX(dux) { LEA_CTOR; }
   virtual ~CalMapperData(){ LEA_DTOR; };

virtual CalMapperData::~CalMapperData   [inline, virtual]
 

Definition at line 23 of file CalMapperData.h.

00023 { LEA_DTOR; };

CalMapperData::CalMapperData const CalMapperData &    from [inline, private]
 

Definition at line 55 of file CalMapperData.h.

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


Member Function Documentation

virtual DbiTableRow* CalMapperData::CreateTableRow   const [inline, virtual]
 

Implements DbiTableRow.

Definition at line 43 of file CalMapperData.h.

00043                                                { 
00044       return new CalMapperData; }

void CalMapperData::Fill DbiResultSet   rs,
const DbiValidityRec   vrec
[virtual]
 

Implements DbiTableRow.

Definition at line 45 of file CalMapperData.cxx.

References DbiRowStream::CurColName(), fDeltaLO, fDeltaLX, fDeltaUX, fLightOutput, fLowerX, fSEIDkey, fSide, fStripEndId, fStripNum, fTestID, fUpperX, fYpos, DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00046                                                                 {
00047 
00048 //
00049 //
00050 //  Purpose:  Fill object from Result Set
00051 //
00052 //  Arguments: 
00053 //    rs           in    Result Set used to fill object
00054 //    vrec         in    Associated validity record (or 0 if filling
00055 //                                                    DbiValidityRec)
00056 //  Return:    
00057 //
00058 //  Contact:   N. West
00059 //
00060 //  Specification:-
00061 //  =============
00062 //
00063 //  o Fill object from current row of Result Set.
00064 
00065 //  Program Notes:-
00066 //  =============
00067 
00068 //  This method demonstrates both the "dumb" fill method (just
00069 //  load the data as it comes) and the smart method (check column
00070 //  name and load according to column order). 
00071 
00072    if ( rs.TableName() == "CALMAPPERDATA" ) {
00073       // Dumb method.
00074      rs >> fSEIDkey  >> fStripEndId >> fTestID >> fStripNum >> fYpos >> fSide >> fLightOutput >> fDeltaLO >> fLowerX >> fDeltaLX >> fUpperX >> fDeltaUX;
00075    }
00076    else {
00077       
00078       // Smart method
00079       Int_t numCol = rs.NumCols();
00080       //  The first column (SeqNo) has already been processed.
00081       for (Int_t curCol = 2; curCol <= numCol; ++curCol) {
00082          string colName = rs.CurColName();
00083          if (      colName == "STRIPENDID" ) rs >> fStripEndId;
00084          if (      colName == "SEIDKEY" ) rs >> fSEIDkey;
00085          if ( colName == "TESTID" )       rs >> fTestID;
00086          if ( colName == "STRIPNUM" )       rs >> fStripNum;
00087          if ( colName == "YPOS" )       rs >> fYpos;
00088          if ( colName == "SIDE" )       rs >> fSide;
00089          if ( colName == "LIGHTOUTPUT" )       rs >> fLightOutput;
00090          if ( colName == "DELTALO" )       rs >> fDeltaLO;
00091          if ( colName == "LOWERX" )       rs >> fLowerX;
00092          if ( colName == "DELTALX" )       rs >> fDeltaLX;
00093          if ( colName == "UPPERX" )       rs >> fUpperX;
00094          if ( colName ==  "DELTAUX" )       rs >> fDeltaUX;
00095 
00096          else {
00097             MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00098                                    << "(" << colName << ")"
00099                                    << "; not part of CalMapperData" 
00100                                    << endl;
00101          rs.IncrementCurCol();
00102          }
00103       }
00104    }
00105    
00106    
00107 }

Float_t CalMapperData::GetDeltaLO   const [inline]
 

Definition at line 36 of file CalMapperData.h.

References fDeltaLO.

00036 {return fDeltaLO;}

Float_t CalMapperData::GetDeltaLX   const [inline]
 

Definition at line 38 of file CalMapperData.h.

References fDeltaLX.

00038 {return fDeltaLX;}

Float_t CalMapperData::GetDeltaUX   const [inline]
 

Definition at line 40 of file CalMapperData.h.

References fDeltaUX.

00040 {return fDeltaUX;}

UInt_t CalMapperData::GetIndex UInt_t    defIndex const [inline, virtual]
 

Reimplemented from DbiTableRow.

Definition at line 28 of file CalMapperData.h.

References fSEIDkey.

00028 { return fSEIDkey; }

Float_t CalMapperData::GetLightOutput   const [inline]
 

Definition at line 35 of file CalMapperData.h.

References fLightOutput.

00035 {return fLightOutput;}

Float_t CalMapperData::GetLowerX   const [inline]
 

Definition at line 37 of file CalMapperData.h.

References fLowerX.

00037 {return fLowerX;}

UInt_t CalMapperData::GetSEIDkey   const [inline]
 

Definition at line 29 of file CalMapperData.h.

References fSEIDkey.

00029 { return fSEIDkey; }

Int_t CalMapperData::GetSide   const [inline]
 

Definition at line 34 of file CalMapperData.h.

References fSide.

00034 {return fSide;}

UInt_t CalMapperData::GetStripEndId   const [inline]
 

Definition at line 30 of file CalMapperData.h.

References fStripEndId.

00030 { return fStripEndId; }

Int_t CalMapperData::GetStripNum   const [inline]
 

Definition at line 32 of file CalMapperData.h.

References fStripNum.

00032 {return fStripNum;}

Int_t CalMapperData::GetTestID   const [inline]
 

Definition at line 31 of file CalMapperData.h.

References fTestID.

00031 {return fTestID;}

Float_t CalMapperData::GetUpperX   const [inline]
 

Definition at line 39 of file CalMapperData.h.

References fUpperX.

00039 {return fUpperX;}

Float_t CalMapperData::GetYpos   const [inline]
 

Definition at line 33 of file CalMapperData.h.

References fYpos.

00033 {return fYpos;}

Float_t CalMapperData::ResponseCorrected const Float_t    sigin,
Float_t    Y
const
 

Definition at line 145 of file CalMapperData.cxx.

Referenced by SigMappedCalibrator::ApplyCalib().

00145                                                                              {
00146 
00147   return sigin;
00148 
00149 }

void CalMapperData::Store DbiOutRowStream   ors,
const DbiValidityRec   vrec
const [virtual]
 

Reimplemented from DbiTableRow.

Definition at line 111 of file CalMapperData.cxx.

References fDeltaLO, fDeltaLX, fDeltaUX, fLightOutput, fLowerX, fSEIDkey, fSide, fStripEndId, fStripNum, fTestID, fUpperX, and fYpos.

00112                                                                        {
00113    //
00114 //
00115 //  Purpose:  Stream object to output row stream
00116 //
00117 //  Arguments: 
00118 //    ors          in     Output row stream.
00119 //    vrec         in    Associated validity record (or 0 if filling
00120 //                                                    DbiValidityRec)
00121 //
00122 //  Return:    
00123 //
00124 //  Contact:   N. West
00125 //
00126 //  Specification:-
00127 //  =============
00128 //
00129 //  o  Stream object to output row stream.
00130 
00131 //  Program Notes:-
00132 //  =============
00133 
00134 //  None.
00135 
00136   ors << fSEIDkey << fStripEndId << fTestID << fStripNum << fYpos << fSide << fLightOutput << fDeltaLO << fLowerX << fDeltaLX << fUpperX << fDeltaUX;
00137     
00138 }


Member Data Documentation

Float_t CalMapperData::fDeltaLO [private]
 

Definition at line 67 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetDeltaLO(), and Store().

Float_t CalMapperData::fDeltaLX [private]
 

Definition at line 69 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetDeltaLX(), and Store().

Float_t CalMapperData::fDeltaUX [private]
 

Definition at line 71 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetDeltaUX(), and Store().

Float_t CalMapperData::fLightOutput [private]
 

Definition at line 66 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetLightOutput(), and Store().

Float_t CalMapperData::fLowerX [private]
 

Definition at line 68 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetLowerX(), and Store().

Int_t CalMapperData::fSEIDkey [private]
 

Definition at line 59 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetIndex(), GetSEIDkey(), and Store().

Int_t CalMapperData::fSide [private]
 

Definition at line 65 of file CalMapperData.h.

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

Int_t CalMapperData::fStripEndId [private]
 

Definition at line 61 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetStripEndId(), and Store().

Int_t CalMapperData::fStripNum [private]
 

Definition at line 63 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetStripNum(), and Store().

Int_t CalMapperData::fTestID [private]
 

Definition at line 62 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetTestID(), and Store().

Float_t CalMapperData::fUpperX [private]
 

Definition at line 70 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetUpperX(), and Store().

Float_t CalMapperData::fYpos [private]
 

Definition at line 64 of file CalMapperData.h.

Referenced by CalMapperData(), Fill(), GetYpos(), and Store().


The documentation for this class was generated from the following files:
Generated on Wed Sep 4 19:21:38 2002 for loon by doxygen1.2.16