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

PulserDriftPin.h

Go to the documentation of this file.
00001 
00002 // $Id: PulserDriftPin.h,v 1.4 2005/10/28 08:13:24 cpw1 Exp $
00003 //
00004 // PulserDriftPin
00005 //
00006 // Dbi object for raw drift point info
00007 //
00008 // Author: Phil Adamson 7/2003
00009 //
00010 // $Log: PulserDriftPin.h,v $
00011 // Revision 1.4  2005/10/28 08:13:24  cpw1
00012 // Make ZCMean and ZCError const
00013 //
00014 // Revision 1.3  2005/10/27 09:37:10  cpw1
00015 // Add methods ZCMean and ZCError
00016 //
00017 // Revision 1.2  2004/09/14 22:01:46  phil.adamson
00018 //
00019 //
00020 // A couple of minor fixes
00021 //
00022 // Revision 1.1  2004/09/08 21:50:51  pa
00023 // Checkin of new PulserCalibration version. MIght even work
00024 //
00025 //
00027 
00028 #ifndef PULSERDRIFTPIN_H
00029 #define PULSERDRIFTPIN_H
00030 
00031 #include "Rtypes.h"
00032 #include "DatabaseInterface/DbiTableRow.h"
00033 #include "PulserCalibration/PulserSummary.h"
00034 #include "Plex/PlexPinDiodeId.h"
00035 
00036 class DbiValidityRec;
00037 
00038 class PulserDriftPin: public DbiTableRow
00039 {
00040 
00041 public:
00042    PulserDriftPin();
00043    PulserDriftPin(Int_t aggNo, PlexPinDiodeId pinid, Float_t mean, Float_t error,
00044                   Float_t num_entries, Float_t num_triggers);
00045    PulserDriftPin(Int_t aggNo,const PulserSummary &ps);
00046    virtual ~PulserDriftPin() {};
00047    
00048    void New(Int_t aggNo, PlexPinDiodeId pinid,const PulserSummary &ps);
00049    
00050    Int_t GetAggregateNo() const { return fAggregateNo; }
00051    UInt_t GetIndex(UInt_t /* defIndex */) const { return fPlexPinDiodeId.GetEncoded(); }
00052    PlexPinDiodeId GetStripEnd() const {return fPlexPinDiodeId;}
00053    PlexPinDiodeId GetPinDiodeId() const {return fPlexPinDiodeId;}
00054    Float_t GetMean() const {return fMean;}
00055    Float_t GetError() const {return fError;}
00056    Float_t GetNumEntries() const {return fNumEntries;}
00057    Float_t GetNumTriggers() const {return fNumTriggers;}
00058    Float_t ZCMean() const;
00059    Float_t ZCError() const;
00060 
00061    virtual DbiTableRow* CreateTableRow() const { return new PulserDriftPin;}
00062    
00063   
00064    virtual void Fill(DbiResultSet& rs,
00065                      const DbiValidityRec* vrec);
00066    virtual void Store(DbiOutRowStream& ors,
00067                       const DbiValidityRec* vrec) const;
00068 
00069 private:
00070    Int_t fAggregateNo;
00071    PlexPinDiodeId fPlexPinDiodeId;
00072    Float_t fMean;
00073    Float_t fError;
00074    Float_t fNumEntries;
00075    Float_t fNumTriggers;
00076 ClassDef(PulserDriftPin,0)
00077 };
00078 
00079 #endif // PULSERDRIFTPIN_H

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