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

CalDetCERTimeWin.h

Go to the documentation of this file.
00001 #ifndef CALDETCERTIMEWIN_H
00002 #define CALDETCERTIMEWIN_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 CalDetCERTimeWin : public DbiTableRow
00013 {
00014 public:
00015      
00016      // Constructors and destructors.
00017      CalDetCERTimeWin() { LEA_CTOR; }
00018      CalDetCERTimeWin(UInt_t ptype, 
00019                       Float_t win0low, Float_t win0high,
00020                       Float_t win1low, Float_t win1high,
00021                       Float_t win2low, Float_t win2high)
00022           :
00023           fParticleType(ptype),
00024           fWin0Low(win0low), fWin0High(win0high),
00025           fWin1Low(win1low), fWin1High(win1high),
00026           fWin2Low(win2low), fWin2High(win2high)
00027           { LEA_CTOR; }
00028 
00029      virtual ~CalDetCERTimeWin(){ LEA_DTOR; }
00030    
00031      // State testing member functions
00032      UInt_t GetIndex(UInt_t /* defIndex */) const { return fParticleType; }
00033      UInt_t GetParticleType() const { return fParticleType; }
00034      Float_t GetWin0Low() const {return fWin0Low;}
00035      Float_t GetWin0High() const {return fWin0High;}
00036      Float_t GetWin1Low() const {return fWin1Low;}
00037      Float_t GetWin1High() const {return fWin1High;}
00038      Float_t GetWin2Low() const {return fWin2Low;}
00039      Float_t GetWin2High() const {return fWin2High;}
00040      
00041      virtual DbiTableRow* CreateTableRow() const { 
00042           return new CalDetCERTimeWin; }
00043 
00044      virtual void Print(Option_t* op="") const;
00045      std::ostream& Print(std::ostream&, Option_t* op = "") const;
00046 
00047      // static member function to provide the table description 
00048      // for temp table writing
00049      static std::string GetTableDesc() ; 
00050 
00051    // State changing member functions
00052      virtual void Fill(DbiResultSet& rs,
00053                        const DbiValidityRec* vrec);
00054      virtual void Store(DbiOutRowStream& ors,
00055                         const DbiValidityRec* vrec) const;
00056  
00057 private:  
00058    
00059      CalDetCERTimeWin(const CalDetCERTimeWin& from)
00060           : DbiTableRow() { LEA_CTOR; *this = from; }
00061      
00062      // Data members
00063      
00064 
00065      UInt_t   fParticleType;// the particle this range is to correspond to
00066 
00067      // anything outside these ranges is suspect
00068      Float_t fWin0Low;
00069      Float_t fWin0High;
00070      Float_t fWin1Low;
00071      Float_t fWin1High;
00072      Float_t fWin2Low;
00073      Float_t fWin2High;
00074 
00075      ClassDef(CalDetCERTimeWin,0)
00076 };
00077 
00078 std::ostream& operator<<(std::ostream&, const CalDetCERTimeWin&);
00079 
00080 #endif

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