BfieldMapHeader Class Reference

#include <BfieldMapHeader.h>

Inheritance diagram for BfieldMapHeader:
DbiTableRow

List of all members.

Public Member Functions

 BfieldMapHeader ()
 BfieldMapHeader (Float_t a, Float_t b, Int_t c, Float_t d, Float_t e, Int_t f, Float_t g, Int_t h, Int_t i)
 BfieldMapHeader (const BfieldMapHeader &from)
virtual ~BfieldMapHeader ()
Bool_t CanL2Cache () const
Bool_t Compare (const BfieldMapHeader &that) const
Float_t GetInitialXPos () const
Float_t GetInitialYPos () const
Float_t GetXDelta () const
Float_t GetYDelta () const
Int_t GetXNum () const
Int_t GetYNum () const
Float_t GetGeneratedCoilCurrent () const
Int_t GetQuadInfo () const
Int_t GetMapType () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
virtual DbiTableRowCreateTableRow () const

Private Attributes

Float_t xposinit
Float_t xdelta
Int_t xnum
Float_t yposinit
Float_t ydelta
Int_t ynum
Float_t current
Int_t maptype
Int_t quadinfo

Detailed Description

Definition at line 8 of file BfieldMapHeader.h.


Constructor & Destructor Documentation

BfieldMapHeader::BfieldMapHeader (  )  [inline]

Definition at line 15 of file BfieldMapHeader.h.

00015 { }

BfieldMapHeader::BfieldMapHeader ( Float_t  a,
Float_t  b,
Int_t  c,
Float_t  d,
Float_t  e,
Int_t  f,
Float_t  g,
Int_t  h,
Int_t  i 
) [inline]

Definition at line 16 of file BfieldMapHeader.h.

00018     : xposinit(a),xdelta(b),xnum(c),yposinit(d),ydelta(e),
00019       ynum(f),current(g),maptype(h), quadinfo(i) { }

BfieldMapHeader::BfieldMapHeader ( const BfieldMapHeader from  )  [inline]

Definition at line 20 of file BfieldMapHeader.h.

00021     : DbiTableRow(from) { *this = from; }

virtual BfieldMapHeader::~BfieldMapHeader (  )  [inline, virtual]

Definition at line 23 of file BfieldMapHeader.h.

00023 { };


Member Function Documentation

Bool_t BfieldMapHeader::CanL2Cache (  )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 25 of file BfieldMapHeader.h.

00025 { return kTRUE; }

Bool_t BfieldMapHeader::Compare ( const BfieldMapHeader that  )  const [inline]

Definition at line 27 of file BfieldMapHeader.h.

References current, maptype, quadinfo, xdelta, xnum, xposinit, ydelta, ynum, and yposinit.

00027                                                      {
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; }

virtual DbiTableRow* BfieldMapHeader::CreateTableRow (  )  const [inline, virtual]

Implements DbiTableRow.

Definition at line 52 of file BfieldMapHeader.h.

00052 { return new BfieldMapHeader; }

void BfieldMapHeader::Fill ( DbiResultSet rs,
const DbiValidityRec vrec 
) [virtual]

Implements DbiTableRow.

Definition at line 17 of file BfieldMapHeader.cxx.

References DbiRowStream::CurColName(), current, DbiRowStream::HasRowCounter(), DbiRowStream::IncrementCurCol(), Msg::kDebug, maptype, MSG, DbiRowStream::NumCols(), quadinfo, DbiRowStream::TableName(), xdelta, xnum, xposinit, ydelta, ynum, and yposinit.

00017                                                                              {
00018 
00019   if (    rs.TableName() != "BfieldMapHeader"
00020     && rs.TableName() != "BFIELDMAPHEADER" ) {
00021     rs >> current >> xposinit >> xdelta >> xnum >> yposinit >> ydelta >> ynum >> maptype >> quadinfo;
00022   }
00023   else {
00024     Int_t numCol = rs.NumCols();
00025     // seqno already processed
00026     for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00027       string colName = rs.CurColName();
00028       if (      colName == "GEN_COIL_CURRENT_AMP_TURNS" ) rs >> current;
00029       else if ( colName == "XPOS_INIT" )     rs >> xposinit;
00030       else if ( colName == "X_DELTA" )     rs >> xdelta;
00031       else if ( colName == "X_NUMBER" )     rs >> xnum;
00032       else if ( colName == "YPOS_INIT" )     rs >> yposinit;
00033       else if ( colName == "Y_DELTA" )     rs >> ydelta;
00034       else if ( colName == "Y_NUMBER" )     rs >> ynum;
00035       else if ( colName == "MAPTYPE" )     rs >> maptype;
00036       else if ( colName == "QUADINFO" )     rs >> quadinfo;
00037       else {
00038         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00039           << "(" << colName << ")"
00040           << "; not part of BfieldMapHeader" << endl;
00041         rs.IncrementCurCol();
00042       }
00043     }
00044   }
00045 }

Float_t BfieldMapHeader::GetGeneratedCoilCurrent (  )  const [inline]

Definition at line 45 of file BfieldMapHeader.h.

References current.

00045 { return current; }

Float_t BfieldMapHeader::GetInitialXPos (  )  const [inline]

Definition at line 39 of file BfieldMapHeader.h.

References xposinit.

00039 { return xposinit; }

Float_t BfieldMapHeader::GetInitialYPos (  )  const [inline]

Definition at line 40 of file BfieldMapHeader.h.

References yposinit.

00040 { return yposinit; }

Int_t BfieldMapHeader::GetMapType (  )  const [inline]

Definition at line 47 of file BfieldMapHeader.h.

References maptype.

00047 { return maptype; }

Int_t BfieldMapHeader::GetQuadInfo (  )  const [inline]

Definition at line 46 of file BfieldMapHeader.h.

References quadinfo.

00046 { return quadinfo; }

Float_t BfieldMapHeader::GetXDelta (  )  const [inline]

Definition at line 41 of file BfieldMapHeader.h.

References xdelta.

00041 { return xdelta; }

Int_t BfieldMapHeader::GetXNum (  )  const [inline]

Definition at line 43 of file BfieldMapHeader.h.

References xnum.

00043 { return xnum; }

Float_t BfieldMapHeader::GetYDelta (  )  const [inline]

Definition at line 42 of file BfieldMapHeader.h.

References ydelta.

00042 { return ydelta; }

Int_t BfieldMapHeader::GetYNum (  )  const [inline]

Definition at line 44 of file BfieldMapHeader.h.

References ynum.

00044 { return ynum; }

void BfieldMapHeader::Store ( DbiOutRowStream ors,
const DbiValidityRec vrec 
) const [virtual]

Reimplemented from DbiTableRow.

Definition at line 47 of file BfieldMapHeader.cxx.

References current, maptype, quadinfo, xdelta, xnum, xposinit, ydelta, ynum, and yposinit.

00047                                                                                         {
00048   ors << current << xposinit << xdelta << xnum << yposinit << ydelta << ynum << maptype << quadinfo;
00049 }


Member Data Documentation

Float_t BfieldMapHeader::current [private]

Definition at line 62 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetGeneratedCoilCurrent(), and Store().

Int_t BfieldMapHeader::maptype [private]

Definition at line 63 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetMapType(), and Store().

Int_t BfieldMapHeader::quadinfo [private]

Definition at line 64 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetQuadInfo(), and Store().

Float_t BfieldMapHeader::xdelta [private]

Definition at line 57 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetXDelta(), and Store().

Int_t BfieldMapHeader::xnum [private]

Definition at line 58 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetXNum(), and Store().

Float_t BfieldMapHeader::xposinit [private]

Definition at line 56 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetInitialXPos(), and Store().

Float_t BfieldMapHeader::ydelta [private]

Definition at line 60 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetYDelta(), and Store().

Int_t BfieldMapHeader::ynum [private]

Definition at line 61 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetYNum(), and Store().

Float_t BfieldMapHeader::yposinit [private]

Definition at line 59 of file BfieldMapHeader.h.

Referenced by Compare(), Fill(), GetInitialYPos(), and Store().


The documentation for this class was generated from the following files:

Generated on 22 Nov 2017 for loon by  doxygen 1.6.1