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

CalADCtoPEs.h

Go to the documentation of this file.
00001 // $Id: CalADCtoPEs.h,v 1.1 2006/07/20 03:09:59 mskim Exp $
00002 
00004 //
00005 // Purpose: Aggregated data type
00006 // Origin : There is an example of non-aggregated data type, CalADCtoPE.h
00007 //
00008 // M.S. Kim 03/2006
00010 
00011 #ifndef CALADCTOPES_H
00012 #define CALADCTOPES_H
00013 
00014 #include "DatabaseInterface/DbiTableRow.h"
00015 #include "LeakChecker/Lea.h"
00016 
00017 class DbiValidityRec;
00018 
00019 class CalADCtoPEs : public DbiTableRow
00020 {
00021 
00022 public:
00023    
00024    // Constructors and destructors.
00025    CalADCtoPEs() { LEA_CTOR; }
00026    CalADCtoPEs(Int_t agg, UInt_t sk, Float_t g, Float_t gerr, Float_t spew, Float_t spewerr) :
00027      fAggregate(agg),fSEIDkey(sk),fGain(g),fGainErr(gerr),fSPEWidth(spew),fSPEWidthErr(spewerr) { LEA_CTOR; }
00028    virtual ~CalADCtoPEs(){ LEA_DTOR; };
00029    
00030    // State testing member functions
00031    Bool_t CanL2Cache() const { return kTRUE; }
00032    UInt_t GetIndex(UInt_t /* defIndex */) const { return fSEIDkey; }
00033    UInt_t GetSEIDkey() const { return fSEIDkey; }
00034    Float_t GetGain() const { return fGain; }
00035    Float_t GetGainErr() const { return fGainErr; }
00036    Float_t GetSPEWidth() const { return fSPEWidth;}
00037    Float_t GetSPEWidthErr() const { return fSPEWidthErr;}
00038    Float_t GetPE(const Float_t rawcharge) const;  
00039    virtual Int_t    GetAggregateNo() const { return fAggregate; }
00040    virtual DbiTableRow* CreateTableRow() const { 
00041       return new CalADCtoPEs; }
00042 
00043    // State changing member functions
00044    virtual void Fill(DbiResultSet& rs,
00045                     const DbiValidityRec* vrec);
00046    virtual void Store(DbiOutRowStream& ors,
00047                      const DbiValidityRec* vrec) const;
00048 
00049    
00050 private:  
00051    
00052   CalADCtoPEs(const CalADCtoPEs& from)
00053     : DbiTableRow(from) { LEA_CTOR; *this = from; }
00054 
00055    // Data members
00056 
00057     Int_t   fAggregate;
00058     Int_t   fSEIDkey;
00059    Float_t  fGain;
00060    Float_t  fGainErr;
00061    Float_t  fSPEWidth;
00062    Float_t  fSPEWidthErr;
00063    
00064    
00065    ClassDef(CalADCtoPEs,0)    // Example of aggregated data type. 
00066 };
00067 
00068 
00069 #endif  // CALADCTOPES_H
00070 
00071 
00072 
00073 
00074 

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