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

PulserRawDriftPin.h

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

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