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

CalDetCERRange.h

Go to the documentation of this file.
00001 #ifndef CALDETCERRANGE_H
00002 #define CALDETCERRANGE_H
00003 //#include <iostream>
00004 #include <iosfwd>
00005 #include <string>
00006 
00007 #include "DatabaseInterface/DbiTableRow.h"
00008 #include "LeakChecker/Lea.h"
00009 
00010 class DbiValidityRec;
00011 
00012 
00013 class CalDetCERRange : public DbiTableRow
00014 {
00015 public:
00016      
00017      // Constructors and destructors.
00018      CalDetCERRange() { LEA_CTOR; }
00019      CalDetCERRange(UInt_t ptype, 
00020                     Float_t c0low, Float_t c0high,
00021                     Float_t c1low, Float_t c1high,                  
00022                     Float_t c2low, Float_t c2high)        
00023           :
00024           fParticleType(ptype),
00025           fCER0Low(c0low), fCER0High(c0high),
00026           fCER1Low(c1low), fCER1High(c1high),
00027           fCER2Low(c2low), fCER2High(c2high)
00028           { LEA_CTOR; }
00029 
00030      virtual ~CalDetCERRange(){ LEA_DTOR; }
00031    
00032      // State testing member functions
00033      UInt_t GetIndex(UInt_t /* defIndex */) const { return fParticleType; }
00034      UInt_t GetParticleType() const { return fParticleType; }
00035      Float_t GetCER0Low() const {return fCER0Low;}
00036      Float_t GetCER0High() const {return fCER0High;}
00037      Float_t GetCER1Low() const {return fCER1Low;}
00038      Float_t GetCER1High() const {return fCER1High;}
00039      Float_t GetCER2Low() const {return fCER2Low;}
00040      Float_t GetCER2High() const {return fCER2High;}
00041 
00042      
00043      virtual DbiTableRow* CreateTableRow() const { 
00044           return new CalDetCERRange; }
00045 
00046      virtual void Print(Option_t* op="") const;
00047      std::ostream& Print(std::ostream&, Option_t* op = "") const;
00048      
00049      // static member function to provide the table description 
00050      // for temp table writing
00051      static std::string GetTableDesc() ; 
00052 
00053    // State changing member functions
00054      virtual void Fill(DbiResultSet& rs,
00055                        const DbiValidityRec* vrec);
00056      virtual void Store(DbiOutRowStream& ors,
00057                         const DbiValidityRec* vrec) const;
00058  
00059 private:  
00060    
00061      CalDetCERRange(const CalDetCERRange& from)
00062           : DbiTableRow() { LEA_CTOR; *this = from; }
00063      
00064      // Data members
00065      
00066 
00067      UInt_t   fParticleType;// the particle this range is to correspond to
00068 
00069      // anything outside these ranges is suspect
00070      Float_t fCER0Low;
00071      Float_t fCER0High;
00072      Float_t fCER1Low;
00073      Float_t fCER1High;
00074      Float_t fCER2Low;
00075      Float_t fCER2High;
00076 
00077      ClassDef(CalDetCERRange,0)
00078 };
00079 
00080 std::ostream& operator<<(std::ostream&, const CalDetCERRange&);
00081 
00082 #endif
00083 
00084 
00085 

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