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

PulserRefDriftPin.h

Go to the documentation of this file.
00001 
00002 // $Id: PulserRefDriftPin.h,v 1.5 2002/12/13 18:35:44 rhatcher Exp $
00003 //
00004 // PulserRefDriftPin.h
00005 //
00006 // Dbi object for ref driftPin curve info
00007 //
00008 // Author: Phil Adamson 5/2002
00009 //
00010 // $Log: PulserRefDriftPin.h,v $
00011 // Revision 1.5  2002/12/13 18:35:44  rhatcher
00012 // comment out declaration of unused method parameter variables
00013 //
00014 // Revision 1.4  2002/08/27 15:16:17  phil.adamson
00015 // Change the PIN diode DB to use the component parts rather than the PIN Id.
00016 //
00017 // Revision 1.3  2002/08/07 16:16:52  phil.adamson
00018 // Minor cosmetic details, plus provide ZeroCorr() methods in PulserSummary.
00019 // Phil.
00020 //
00021 //
00023 
00024 #ifndef PULSERREFDRIFTPIN_H
00025 #define PULSERREFDRIFTPIN_H
00026 
00027 #include "Rtypes.h"
00028 #include "DatabaseInterface/DbiTableRow.h"
00029 #include "PulserCalibration/PulserSummary.h"
00030 #include "Plex/PlexPinDiodeId.h"
00031 
00032 class DbiValidityRec;
00033 
00034 class PulserRefDriftPin: public DbiTableRow
00035 {
00036 public:
00037    PulserRefDriftPin();
00038    PulserRefDriftPin(Int_t aggNo, PlexPinDiodeId pinid, 
00039                      Float_t mean, Float_t error,
00040                      Float_t num_entries);
00041    virtual ~PulserRefDriftPin() {};
00042    
00043    void New(Int_t aggNo, PlexPinDiodeId pinid, const PulserSummary &ps);
00044    
00045    Int_t GetAggregateNo() const { return fAggregateNo; }
00046    UInt_t GetIndex(UInt_t /* defIndex */) const { return fPlexPinDiodeId.GetEncoded(); }
00047    PlexPinDiodeId GetPinDiodeId() const {return fPlexPinDiodeId;}
00048    
00049    const Float_t GetMean() const {return fMean;}
00050    const Float_t GetError() const {return fError;}
00051    const Float_t GetNumEntries() const {return fNumEntries;}
00052    
00053    virtual DbiTableRow* CreateTableRow() const { return new PulserRefDriftPin;}
00054    
00055   
00056    virtual void Fill(DbiResultSet& rs,
00057                      const DbiValidityRec* vrec);
00058    virtual void Store(DbiOutRowStream& ors,
00059                       const DbiValidityRec* vrec) const;
00060 
00061 private:
00062    Int_t fAggregateNo;
00063    //   Int_t fPinId;
00064    PlexPinDiodeId fPlexPinDiodeId;
00065    Float_t fMean;
00066    Float_t fError;
00067    Float_t fNumEntries;
00068    ClassDef(PulserRefDriftPin,0)
00069       };
00070 #endif // PULSERREFDRIFTPIN_H

Generated on Fri Mar 28 15:38:17 2008 for loon by  doxygen 1.3.9.1