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

CalMIPCalibration.h

Go to the documentation of this file.
00001 // $Id: CalMIPCalibration.h,v 1.9 2005/03/22 12:26:59 tagg Exp $
00002 
00003 /* need to fix index!!!*/
00004 
00005 #ifndef MIPCALIBRATION_H
00006 #define MIPCALIBRATION_H
00007 
00008 #include "DatabaseInterface/DbiTableRow.h"
00009 #include "DatabaseInterface/DbiValidityRec.h"
00010 #include "LeakChecker/Lea.h"
00011 
00012 class DbiValidityRec;
00013 
00014 class CalMIPCalibration : public DbiTableRow
00015 {
00016 
00017 public:
00018    
00019    // Constructors and destructors.
00020   CalMIPCalibration() { LEA_CTOR; }
00021 
00022   CalMIPCalibration(Int_t  sk,Int_t  s, Float_t scale ) : 
00023     fSEIDkey(sk),fStripEndId(s) ,fMIPScale(scale) { LEA_CTOR; }
00024 
00025    virtual ~CalMIPCalibration(){ LEA_DTOR; };
00026    
00027    // State testing member functions
00028    Bool_t CanL2Cache() const { return kTRUE; }
00029    UInt_t GetIndex(UInt_t /* defIndex */) const { return fSEIDkey; }
00030    UInt_t GetSEIDkey() const { return fSEIDkey; }
00031    UInt_t GetStripEndId() const { return fStripEndId; }
00032    Float_t GetScale() const {return fMIPScale;}
00033  
00034    virtual DbiTableRow* CreateTableRow() const { 
00035      return new CalMIPCalibration; }
00036 
00037    // State changing member functions
00038    virtual void Fill(DbiResultSet& rs,
00039                     const DbiValidityRec* vrec);
00040    virtual void Store(DbiOutRowStream& ors,
00041                      const DbiValidityRec* vrec) const;
00042    Float_t GetMIP(const Float_t rawcharge) const;
00043    
00044 private:  
00045    
00046   CalMIPCalibration(const CalMIPCalibration& from)
00047     : DbiTableRow(from) { LEA_CTOR; *this = from; }
00048 
00049    // Data members
00050    Int_t fSEIDkey;
00051    Int_t fStripEndId;
00052    Float_t fMIPScale;
00053 
00054    ClassDef(CalMIPCalibration,0)    // Example of non-aggregated datadata type. 
00055 };
00056 
00057 
00058 #endif  // MIPCALIBRATION_H
00059 
00060 
00061 
00062 
00063 

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