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

CalTempCalibration.h

Go to the documentation of this file.
00001 // $Id: CalTempCalibration.h,v 1.2 2003/05/01 11:56:38 west Exp $
00002 
00003 #ifndef TEMPCALIBRATION_H
00004 #define TEMPCALIBRATION_H
00005 
00006 #include "DatabaseInterface/DbiTableRow.h"
00007 #include "LeakChecker/Lea.h"
00008 
00009 class DbiValidityRec;
00010 
00011 class CalTempCalibration : public DbiTableRow
00012 {
00013 
00014 public:
00015    
00016    // Constructors and destructors.
00017    CalTempCalibration() { LEA_CTOR; }
00018    CalTempCalibration(Float_t temp, Float_t temp_err) :
00019       fTemp(temp),fTempErr(temp_err) { LEA_CTOR; }
00020    virtual ~CalTempCalibration(){ LEA_DTOR; };
00021    
00022    // State testing member functions
00023    Bool_t CanL2Cache() const { return kTRUE; }
00024    Float_t GetTemp() const { return fTemp; }
00025    Float_t GetTempErr() const { return fTempErr; }
00026    Float_t GetCorrection() const;
00027    Float_t GetCorrected(const Float_t rawcharge) const;  
00028    virtual DbiTableRow* CreateTableRow() const { 
00029       return new CalTempCalibration; }
00030 
00031    // State changing member functions
00032    virtual void Fill(DbiResultSet& rs,
00033                     const DbiValidityRec* vrec);
00034    virtual void Store(DbiOutRowStream& ors,
00035                      const DbiValidityRec* vrec) const;
00036 
00037    
00038 private:  
00039    
00040   CalTempCalibration(const CalTempCalibration& from)
00041     : DbiTableRow(from) { LEA_CTOR; *this = from; }
00042 
00043    // Data members
00044 
00045    Float_t  fTemp;
00046    Float_t  fTempErr;
00047    
00048    
00049    ClassDef(CalTempCalibration,0)    // Example of non-aggregated datadata type. 
00050 };
00051 
00052 
00053 #endif  // TEMPCALIBRATION_H

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