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

CalDetOverlapWin.h

Go to the documentation of this file.
00001 #ifndef CALDETOVERLAPWIN_H
00002 #define CALDETOVERLAPWIN_H
00003 #include <iosfwd>
00004 #include <string>
00005 
00006 #include "DatabaseInterface/DbiTableRow.h"
00007 #include "LeakChecker/Lea.h"
00008 
00009 class DbiValidityRec;
00010 
00011 
00012 class CalDetOverlapWin : public DbiTableRow
00013 {
00014 public:
00015      
00016      // Constructors and destructors.
00017      CalDetOverlapWin() { LEA_CTOR; }
00018      CalDetOverlapWin(UInt_t ptype, 
00019                       Float_t winlow, Float_t winhigh)
00020           :
00021           fParticleType(ptype),
00022           fWinLow(winlow), fWinHigh(winhigh)
00023           { LEA_CTOR; }
00024 
00025      virtual ~CalDetOverlapWin(){ LEA_DTOR; }
00026    
00027      // State testing member functions
00028      UInt_t GetIndex(UInt_t /* defIndex */) const { return fParticleType; }
00029      UInt_t GetParticleType() const { return fParticleType; }
00030      Float_t GetWinLow() const {return fWinLow;}
00031      Float_t GetWinHigh() const {return fWinHigh;}
00032      
00033      virtual DbiTableRow* CreateTableRow() const { 
00034           return new CalDetOverlapWin; }
00035 
00036      virtual void Print(Option_t* op="") const;
00037      std::ostream& Print(std::ostream&, Option_t* op = "") const;
00038 
00039      // static member function to provide the table description 
00040      // for temp table writing
00041      static std::string GetTableDesc() ; 
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 private:  
00050    
00051      CalDetOverlapWin(const CalDetOverlapWin& from)
00052           : DbiTableRow() { LEA_CTOR; *this = from; }
00053      
00054      // Data members
00055      
00056 
00057      UInt_t   fParticleType;// the particle this range is to correspond to
00058 
00059      // anything outside these ranges is suspect
00060      Float_t fWinLow;
00061      Float_t fWinHigh;
00062 
00063      ClassDef(CalDetOverlapWin,0)
00064 };
00065 
00066 std::ostream& operator<<(std::ostream&, const CalDetOverlapWin&);
00067 
00068 #endif

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