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

CalMapperData.h

Go to the documentation of this file.
00001 // $Id: CalMapperData.h,v 1.5 2002/08/29 22:23:06 rhatcher Exp $
00002 
00003 /* need to fix index!!!*/
00004 
00005 #ifndef CALMAPPERDATA_H
00006 #define CALMAPPERDATA_H
00007 
00008 #include "Rtypes.h"
00009 #include "DatabaseInterface/DbiTableRow.h"
00010 #include "LeakChecker/Lea.h"
00011 
00012 class DbiValidityRec;
00013 
00014 class CalMapperData : public DbiTableRow
00015 {
00016 
00017 public:
00018    
00019    // Constructors and destructors.
00020   CalMapperData() { LEA_CTOR; }
00021   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 ) :
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; }
00023    virtual ~CalMapperData(){ LEA_DTOR; };
00024  
00025    Float_t ResponseCorrected(const Float_t sigin, Float_t Y) const;
00026 
00027    // State testing member functions
00028    UInt_t GetIndex(UInt_t defIndex) const { return fSEIDkey; }
00029    UInt_t GetSEIDkey() const { return fSEIDkey; }
00030   UInt_t GetStripEndId() const { return fStripEndId; }
00031    Int_t GetTestID() const {return fTestID;}
00032    Int_t GetStripNum() const {return fStripNum;}
00033    Float_t GetYpos() const {return fYpos;}
00034    Int_t GetSide() const {return fSide;}
00035    Float_t GetLightOutput() const {return fLightOutput;}
00036    Float_t GetDeltaLO() const {return fDeltaLO;}
00037    Float_t GetLowerX() const {return fLowerX;}
00038    Float_t GetDeltaLX() const {return fDeltaLX;}
00039    Float_t GetUpperX() const {return fUpperX;}
00040    Float_t GetDeltaUX() const {return fDeltaUX;}
00041  
00042  
00043    virtual DbiTableRow* CreateTableRow() const { 
00044       return new CalMapperData; }
00045 
00046    // State changing member functions
00047    virtual void Fill(DbiResultSet& rs,
00048                     const DbiValidityRec* vrec);
00049    virtual void Store(DbiOutRowStream& ors,
00050                      const DbiValidityRec* vrec) const;
00051 
00052    
00053 private:  
00054    
00055   CalMapperData(const CalMapperData& from)
00056     : DbiTableRow(from) { LEA_CTOR; *this = from; }
00057 
00058    // Data members
00059    Int_t fSEIDkey;
00060 
00061    Int_t fStripEndId;
00062    Int_t fTestID;
00063    Int_t fStripNum;
00064    Float_t fYpos;
00065    Int_t fSide;
00066    Float_t fLightOutput;
00067    Float_t fDeltaLO;
00068    Float_t fLowerX;
00069    Float_t fDeltaLX;
00070    Float_t fUpperX;
00071    Float_t fDeltaUX;
00072    
00073    ClassDef(CalMapperData,0)    // Example of non-aggregated datadata type. 
00074 };
00075 
00076 
00077 #endif  // CALMAPPERDATA_H
00078 
00079 
00080 
00081 
00082 

Generated on Wed Sep 4 19:00:55 2002 for loon by doxygen1.2.16