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

BfieldMapData.h

Go to the documentation of this file.
00001 #ifndef BFIELDMAPDATA_H
00002 #define BFIELDMAPDATA_H
00003 
00004 #include "DatabaseInterface/DbiTableRow.h"
00005 
00006 class DbiValidityRec;
00007 
00008 class BfieldMapData : public DbiTableRow
00009 {
00010 
00011 using TObject::Compare;  // So won't be hidden
00012 
00013 public:
00014 
00015   BfieldMapData() { }
00016   BfieldMapData(Int_t a, Float_t c, Float_t d) 
00017     : poshash(a),xbfld(c),ybfld(d) { }
00018   BfieldMapData(const BfieldMapData& from) 
00019     : DbiTableRow(from) { *this = from; }
00020 
00021   virtual ~BfieldMapData() { };
00022 
00023   Bool_t CanL2Cache() const { return kTRUE; }
00024 
00025   Bool_t Compare(const BfieldMapData& that ) const {
00026           return     poshash == that.poshash
00027                   && xbfld   == that.xbfld
00028                   && ybfld   == that.ybfld; }
00029 
00030   Int_t   GetPosHash() const { return poshash; }
00031   Float_t GetXBfld() const { return xbfld; }
00032   Float_t GetYBfld() const { return ybfld; }
00033 
00034   virtual void Fill(DbiResultSet& rs, const DbiValidityRec* vrec);
00035   virtual void Store(DbiOutRowStream& ors, const DbiValidityRec* vrec) const;
00036 
00037   virtual DbiTableRow* CreateTableRow() const { return new BfieldMapData; }
00038 
00039 private:
00040 
00041   Int_t poshash;
00042   Float_t xbfld;
00043   Float_t ybfld;
00044 
00045   ClassDef(BfieldMapData,0)
00046 
00047 };
00048 
00049 #endif  // BFIELDMAPDATA_H

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