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

BfieldMapData Class Reference

#include <BfieldMapData.h>

Inheritance diagram for BfieldMapData:

DbiTableRow List of all members.

Public Member Functions

 BfieldMapData ()
 BfieldMapData (Int_t a, Float_t c, Float_t d)
 BfieldMapData (const BfieldMapData &from)
virtual ~BfieldMapData ()
Bool_t CanL2Cache () const
Bool_t Compare (const BfieldMapData &that) const
Int_t GetPosHash () const
Float_t GetXBfld () const
Float_t GetYBfld () const
virtual void Fill (DbiResultSet &rs, const DbiValidityRec *vrec)
virtual void Store (DbiOutRowStream &ors, const DbiValidityRec *vrec) const
virtual DbiTableRowCreateTableRow () const

Private Attributes

Int_t poshash
Float_t xbfld
Float_t ybfld

Constructor & Destructor Documentation

BfieldMapData::BfieldMapData  )  [inline]
 

Definition at line 15 of file BfieldMapData.h.

00015 { }

BfieldMapData::BfieldMapData Int_t  a,
Float_t  c,
Float_t  d
[inline]
 

Definition at line 16 of file BfieldMapData.h.

References poshash, xbfld, and ybfld.

00017     : poshash(a),xbfld(c),ybfld(d) { }

BfieldMapData::BfieldMapData const BfieldMapData from  )  [inline]
 

Definition at line 18 of file BfieldMapData.h.

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

virtual BfieldMapData::~BfieldMapData  )  [inline, virtual]
 

Definition at line 21 of file BfieldMapData.h.

00021 { };


Member Function Documentation

Bool_t BfieldMapData::CanL2Cache  )  const [inline, virtual]
 

Reimplemented from DbiTableRow.

Definition at line 23 of file BfieldMapData.h.

00023 { return kTRUE; }

Bool_t BfieldMapData::Compare const BfieldMapData that  )  const [inline]
 

Definition at line 25 of file BfieldMapData.h.

References poshash, xbfld, and ybfld.

00025                                                    {
00026           return     poshash == that.poshash
00027                   && xbfld   == that.xbfld
00028                   && ybfld   == that.ybfld; }

virtual DbiTableRow* BfieldMapData::CreateTableRow  )  const [inline, virtual]
 

Implements DbiTableRow.

Definition at line 37 of file BfieldMapData.h.

00037 { return new BfieldMapData; }

void BfieldMapData::Fill DbiResultSet rs,
const DbiValidityRec vrec
[virtual]
 

Implements DbiTableRow.

Definition at line 17 of file BfieldMapData.cxx.

References MSG.

00017                                                                            {
00018   if (    rs.TableName() != "BfieldMapData"
00019     && rs.TableName() != "BFIELDMAPDATA" ) {
00020     rs >> poshash >> xbfld >> ybfld;
00021   }
00022   else {
00023     Int_t numCol = rs.NumCols();
00024     for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00025       string colName = rs.CurColName();
00026       if (      colName == "XBFIELD_KGAUSS" ) rs >> xbfld;
00027       else if ( colName == "YBFIELD_KGAUSS" ) rs >> ybfld;
00028       else if ( colName == "POSITION_HASH" )     rs >> poshash;
00029       else {
00030         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol
00031           << "(" << colName << ")"
00032           << "; not part of BfieldMapData" << endl;
00033         rs.IncrementCurCol();
00034       }
00035     }
00036   }  
00037 }

Int_t BfieldMapData::GetPosHash  )  const [inline]
 

Definition at line 30 of file BfieldMapData.h.

00030 { return poshash; }

Float_t BfieldMapData::GetXBfld  )  const [inline]
 

Definition at line 31 of file BfieldMapData.h.

00031 { return xbfld; }

Float_t BfieldMapData::GetYBfld  )  const [inline]
 

Definition at line 32 of file BfieldMapData.h.

00032 { return ybfld; }

void BfieldMapData::Store DbiOutRowStream ors,
const DbiValidityRec vrec
const [virtual]
 

Reimplemented from DbiTableRow.

Definition at line 39 of file BfieldMapData.cxx.

References poshash, and xbfld.

00039                                                                                       {
00040   ors << poshash << xbfld << ybfld;
00041 }


Member Data Documentation

Int_t BfieldMapData::poshash [private]
 

Definition at line 41 of file BfieldMapData.h.

Referenced by BfieldMapData(), Compare(), and Store().

Float_t BfieldMapData::xbfld [private]
 

Definition at line 42 of file BfieldMapData.h.

Referenced by BfieldMapData(), Compare(), and Store().

Float_t BfieldMapData::ybfld [private]
 

Definition at line 43 of file BfieldMapData.h.

Referenced by BfieldMapData(), and Compare().


The documentation for this class was generated from the following files:
Generated on Mon Feb 15 11:08:47 2010 for loon by  doxygen 1.3.9.1