Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CalMapperFits.h

Go to the documentation of this file.
00001 // $Id: CalMapperFits.h,v 1.8 2003/05/01 11:56:38 west Exp $
00002 
00003 /* need to fix index!!!*/
00004 
00005 #ifndef CALMAPPERFITS_H
00006 #define CALMAPPERFITS_H
00007 
00008 #include "DatabaseInterface/DbiTableRow.h"
00009 #include "DatabaseInterface/DbiValidityRec.h"
00010 #include "LeakChecker/Lea.h"
00011 
00012 class DbiValidityRec;
00013 
00014 class CalMapperFits : public DbiTableRow
00015 {
00016 
00017 public:
00018    
00019    // Constructors and destructors.
00020   CalMapperFits() { LEA_CTOR; }
00021 
00022   CalMapperFits(Int_t sk,Int_t  s, Int_t t, Int_t strip, Int_t end, Float_t chi, 
00023                Int_t n, Float_t c1, Float_t c1e, Float_t l1, 
00024                Float_t l1e, Float_t c2, Float_t c2e, Float_t l2, 
00025                Float_t l2e ) : 
00026     fSEIDkey(sk),fStripEndId(s) ,fTestID(t), fStripNum(strip), fStripEnd(end), fNorm(chi), 
00027     fNPoints(n), fC1(c1), fC1Err(c1e), fLambda1(l1), fLambda1Err(l1e),
00028     fC2(c2), fC2Err(c2e), fLambda2(l2), fLambda2Err(l2e) { LEA_CTOR; }
00029 
00030    virtual ~CalMapperFits(){ LEA_DTOR; };
00031    
00032    // State testing member functions
00033    Bool_t CanL2Cache() const { return kTRUE; }
00034    UInt_t GetIndex(UInt_t /* defIndex */) const { return fSEIDkey; }
00035    UInt_t GetSEIDkey() const { return fSEIDkey; }
00036    UInt_t GetStripEndId() const { return fStripEndId; }
00037    Int_t GetTestID() const {return fTestID;}
00038    Int_t GetStripNum() const {return fStripNum;}
00039    Int_t GetStripEnd() const {return fStripEnd;}
00040    Float_t GetNorm() const {return fNorm;}
00041    Int_t GetNPoints() const {return fNPoints;}
00042    Float_t GetC1() const {return fC1;}
00043    Float_t GetC1Err() const {return fC1Err;}
00044    Float_t GetC2() const {return fC2;}
00045    Float_t GetC2Err() const {return fC2Err;}
00046    Float_t GetLambda1() const {return fLambda1;}
00047    Float_t GetLambda1Err() const {return fLambda1Err;}
00048    Float_t GetLambda2() const {return fLambda2;}
00049    Float_t GetLambda2Err() const {return fLambda2Err;}
00050   
00051    virtual DbiTableRow* CreateTableRow() const { 
00052       return new CalMapperFits; }
00053 
00054    // State changing member functions
00055    virtual void Fill(DbiResultSet& rs,
00056                     const DbiValidityRec* vrec);
00057    virtual void Store(DbiOutRowStream& ors,
00058                      const DbiValidityRec* vrec) const;
00059    Float_t AttenCorrected(const Float_t rawcharge, const Float_t Y) const ;
00060    
00061 private:  
00062    
00063   CalMapperFits(const CalMapperFits& from)
00064     : DbiTableRow(from) { LEA_CTOR; *this = from; }
00065 
00066    // Data members
00067   Int_t fSEIDkey;
00068   Int_t fStripEndId;
00069    Int_t fTestID;
00070    Int_t fStripNum;
00071    Int_t fStripEnd;
00072    Float_t fNorm;
00073    Int_t fNPoints;
00074    Float_t fC1;
00075    Float_t fC1Err;
00076    Float_t fLambda1;
00077    Float_t fLambda1Err;
00078    Float_t fC2;
00079    Float_t fC2Err;
00080    Float_t fLambda2;
00081    Float_t fLambda2Err;
00082 
00083    ClassDef(CalMapperFits,0)    // Example of non-aggregated datadata type. 
00084 };
00085 
00086 
00087 #endif  // CALMAPPERFITS_H
00088 
00089 
00090 
00091 
00092 

Generated on Mon Feb 15 11:06:27 2010 for loon by  doxygen 1.3.9.1