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

BfieldMapHeader.h

Go to the documentation of this file.
00001 #ifndef BFIELDMAPHEADER_H
00002 #define BFIELDMAPHEADER_H
00003 
00004 #include "DatabaseInterface/DbiTableRow.h"
00005 
00006 class DbiValidityRec;
00007 
00008 class BfieldMapHeader : public DbiTableRow
00009 {
00010 
00011 using TObject::Compare;  // So won't be hidden
00012 
00013 public:
00014 
00015   BfieldMapHeader() { }
00016   BfieldMapHeader(Float_t a, Float_t b,Int_t c, Float_t d, Float_t e,
00017                   Int_t f, Float_t g, Int_t h, Int_t i) 
00018     : xposinit(a),xdelta(b),xnum(c),yposinit(d),ydelta(e),
00019       ynum(f),current(g),maptype(h), quadinfo(i) { }
00020   BfieldMapHeader(const BfieldMapHeader& from) 
00021     : DbiTableRow(from) { *this = from; }
00022 
00023   virtual ~BfieldMapHeader() { };
00024 
00025   Bool_t CanL2Cache() const { return kTRUE; }
00026 
00027   Bool_t Compare(const BfieldMapHeader& that ) const {
00028     return     xposinit == that.xposinit
00029             && xdelta   == that.xdelta
00030             && xnum     == that.xnum
00031             && yposinit == that.yposinit
00032             && ydelta   == that.ydelta
00033             && ynum     == that.ynum
00034             && current  == that.current
00035             && maptype  == that.maptype
00036             && quadinfo == that.quadinfo; }
00037 
00038   //UInt_t GetIndex();
00039   Float_t GetInitialXPos() const { return xposinit; }
00040   Float_t GetInitialYPos() const { return yposinit; }
00041   Float_t GetXDelta() const { return xdelta; }
00042   Float_t GetYDelta() const { return ydelta; }
00043   Int_t   GetXNum() const { return xnum; }
00044   Int_t   GetYNum() const { return ynum; }
00045   Float_t GetGeneratedCoilCurrent() const { return current; }
00046   Int_t   GetQuadInfo() const { return quadinfo; }
00047   Int_t   GetMapType() const { return maptype; }
00048 
00049   virtual void Fill(DbiResultSet& rs, const DbiValidityRec* vrec);
00050   virtual void Store(DbiOutRowStream& ors, const DbiValidityRec* vrec) const;
00051 
00052   virtual DbiTableRow* CreateTableRow() const { return new BfieldMapHeader; }
00053 
00054 private:
00055 
00056   Float_t xposinit;
00057   Float_t xdelta;
00058   Int_t xnum;
00059   Float_t yposinit;
00060   Float_t ydelta;
00061   Int_t ynum;
00062   Float_t current;
00063   Int_t maptype;
00064   Int_t quadinfo;
00065 
00066   ClassDef(BfieldMapHeader,0)
00067 
00068 };
00069 
00070 #endif  // BFIELDMAPHEADER_H

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