Dcs_Mag_Cal Class Reference

#include <Dcs_Mag_Cal.h>

Inheritance diagram for Dcs_Mag_Cal:
DbiTableRow

List of all members.

Public Member Functions

 Dcs_Mag_Cal ()
 Dcs_Mag_Cal (const Dcs_Mag_Cal &from)
 Dcs_Mag_Cal (Int_t i, Float_t a, Float_t b, Float_t c, Float_t d, Float_t e, Float_t f, Float_t g, Float_t h, Float_t j, Float_t k, Float_t l, Float_t m, Float_t n, Float_t o, Float_t p, Float_t q)
virtual ~Dcs_Mag_Cal ()
Bool_t CanL2Cache () const
Bool_t Compare (const Dcs_Mag_Cal &that) const
Int_t GetIsT7 () const
Float_t GetMagZT7_BHZ01S7 () const
Float_t GetMagZT7_BHZ01NS7 () const
Float_t GetMagZT7_BHZ02 () const
Float_t GetMagZT7_QFO01 () const
Float_t GetMagZT7_QDE02 () const
Float_t GetMagZT7_QFO03 () const
Float_t GetMagZT7_QDE04 () const
Float_t GetMagZT7_QFO05 () const
Float_t GetMagZT11_QDE01 () const
Float_t GetMagZT11_QFO02 () const
Float_t GetMagZT11_BHZ01 () const
Float_t GetMagZT11_QFO03 () const
Float_t GetMagZT11_BHZ02 () const
Float_t GetMagZT11_QFO04 () const
Float_t GetMagZT11_QDE05 () const
Float_t GetMagZT11_BVT01 () 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 iIsT7
Float_t f7Mag1
Float_t f7Mag2
Float_t f7Mag3
Float_t f7Mag4
Float_t f7Mag5
Float_t f7Mag6
Float_t f7Mag7
Float_t f7Mag8
Float_t f11Mag1
Float_t f11Mag2
Float_t f11Mag3
Float_t f11Mag4
Float_t f11Mag5
Float_t f11Mag6
Float_t f11Mag7
Float_t f11Mag8

Detailed Description

Definition at line 11 of file Dcs_Mag_Cal.h.


Constructor & Destructor Documentation

Dcs_Mag_Cal::Dcs_Mag_Cal (  )  [inline]

Definition at line 18 of file Dcs_Mag_Cal.h.

00018 { }

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

Definition at line 19 of file Dcs_Mag_Cal.h.

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

Dcs_Mag_Cal::Dcs_Mag_Cal ( Int_t  i,
Float_t  a,
Float_t  b,
Float_t  c,
Float_t  d,
Float_t  e,
Float_t  f,
Float_t  g,
Float_t  h,
Float_t  j,
Float_t  k,
Float_t  l,
Float_t  m,
Float_t  n,
Float_t  o,
Float_t  p,
Float_t  q 
) [inline]

Definition at line 20 of file Dcs_Mag_Cal.h.

00020                                                                                                                                                                                                :
00021    iIsT7(i),f7Mag1(a),f7Mag2(b),f7Mag3(c),f7Mag4(d),f7Mag5(e),f7Mag6(f),f7Mag7(g),f7Mag8(h),f11Mag1(j),f11Mag2(k),f11Mag3(l),f11Mag4(m),f11Mag5(n),f11Mag6(o),f11Mag7(p),f11Mag8(q) { }
  virtual ~Dcs_Mag_Cal(){ };

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

Definition at line 22 of file Dcs_Mag_Cal.h.

00022 { };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 26 of file Dcs_Mag_Cal.h.

00026 { return kTRUE; }

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

Definition at line 27 of file Dcs_Mag_Cal.h.

References f11Mag1, f11Mag2, f11Mag3, f11Mag4, f11Mag5, f11Mag6, f11Mag7, f11Mag8, f7Mag1, f7Mag2, f7Mag3, f7Mag4, f7Mag5, f7Mag6, f7Mag7, f7Mag8, and iIsT7.

00027                                                  {
00028                 return     iIsT7 == that.iIsT7
00029                        &&  f7Mag1  == that.f7Mag1
00030                        &&  f7Mag2  == that.f7Mag2
00031                        &&  f7Mag3  == that.f7Mag3
00032                        &&  f7Mag4  == that.f7Mag4
00033                        &&  f7Mag5  == that.f7Mag5
00034                        &&  f7Mag6  == that.f7Mag6
00035                        &&  f7Mag7  == that.f7Mag7
00036                        &&  f7Mag8  == that.f7Mag8
00037                        &&  f11Mag1     == that.f11Mag1
00038                        &&  f11Mag2     == that.f11Mag2
00039                        &&  f11Mag3     == that.f11Mag3
00040                        &&  f11Mag4     == that.f11Mag4
00041                        &&  f11Mag5     == that.f11Mag5
00042                        &&  f11Mag6     == that.f11Mag6
00043                        &&  f11Mag7     == that.f11Mag7
00044                        &&  f11Mag8     == that.f11Mag8; }

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

Implements DbiTableRow.

Definition at line 70 of file Dcs_Mag_Cal.h.

00070 { return new Dcs_Mag_Cal; }

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

Implements DbiTableRow.

Definition at line 30 of file Dcs_Mag_Cal.cxx.

References DbiRowStream::CurColName(), f11Mag1, f11Mag2, f11Mag3, f11Mag4, f11Mag5, f11Mag6, f11Mag7, f11Mag8, f7Mag1, f7Mag2, f7Mag3, f7Mag4, f7Mag5, f7Mag6, f7Mag7, f7Mag8, DbiRowStream::HasRowCounter(), iIsT7, DbiRowStream::IncrementCurCol(), Msg::kDebug, MSG, DbiRowStream::NumCols(), and DbiRowStream::TableName().

00031                                                           {
00032 //
00033 //
00034 //  Purpose:  Fill object from Result Set
00035 //
00036 //  Arguments: 
00037 //    rs           in    Result Set used to fill object
00038 //    vrec         in    Associated validity record (or 0 if filling
00039 //                                                    DbiValidityRec)
00040 //
00041 //  o Fill object from current row of Result Set.
00042 //  This method demonstrates both the "dumb" fill method (just
00043 //  load the data as it comes) and the smart method (check column
00044 //  name and load according to column order). 
00045 
00046   if (    rs.TableName() != "DCS_MAG_CAL" 
00047        && rs.TableName() != "Dcs_Mag_Cal" ) {
00048     
00049 // Dumb method.
00050           rs >>  iIsT7 >> f7Mag1 >> f7Mag2 >> f7Mag3 >> f7Mag4 >> f7Mag5 >> f7Mag6 >> f7Mag7 >> f7Mag8 >> f11Mag1 >> f11Mag2 >> f11Mag3 >> f11Mag4 >> f11Mag5 >> f11Mag6 >> f11Mag7 >> f11Mag8;
00051 
00052   }
00053   
00054 // Smart method
00055   else {
00056     Int_t numCol = rs.NumCols();
00057     //  The first column (SeqNo) has already been processed.
00058     for (Int_t curCol = rs.HasRowCounter() ? 3 : 2; curCol <= numCol; ++curCol) {
00059       string colName = rs.CurColName();
00060       if (      colName == "IS_T7" ) rs >> iIsT7;
00061       else if ( colName == "CAL_ZT7_BHZ01S7" )  rs >> f7Mag1;
00062 //      else if ( colName == "RPS_ERROR" )     rs >> iErr;
00063       else {
00064         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00065                                << "(" << colName << ")"
00066                               << "; not part of DcsMagCal" << endl;
00067         rs.IncrementCurCol();
00068       }
00069     }
00070     
00071   }
00072 }

Int_t Dcs_Mag_Cal::GetIsT7 (  )  const [inline]

Definition at line 47 of file Dcs_Mag_Cal.h.

References iIsT7.

00047 { return iIsT7; }

Float_t Dcs_Mag_Cal::GetMagZT11_BHZ01 (  )  const [inline]

Definition at line 58 of file Dcs_Mag_Cal.h.

References f11Mag3.

00058 { return f11Mag3; }

Float_t Dcs_Mag_Cal::GetMagZT11_BHZ02 (  )  const [inline]

Definition at line 60 of file Dcs_Mag_Cal.h.

References f11Mag5.

00060 { return f11Mag5; }

Float_t Dcs_Mag_Cal::GetMagZT11_BVT01 (  )  const [inline]

Definition at line 63 of file Dcs_Mag_Cal.h.

References f11Mag8.

00063 { return f11Mag8; }

Float_t Dcs_Mag_Cal::GetMagZT11_QDE01 (  )  const [inline]

Definition at line 56 of file Dcs_Mag_Cal.h.

References f11Mag1.

00056 { return f11Mag1; }

Float_t Dcs_Mag_Cal::GetMagZT11_QDE05 (  )  const [inline]

Definition at line 62 of file Dcs_Mag_Cal.h.

References f11Mag7.

00062 { return f11Mag7; }

Float_t Dcs_Mag_Cal::GetMagZT11_QFO02 (  )  const [inline]

Definition at line 57 of file Dcs_Mag_Cal.h.

References f11Mag2.

00057 { return f11Mag2; }

Float_t Dcs_Mag_Cal::GetMagZT11_QFO03 (  )  const [inline]

Definition at line 59 of file Dcs_Mag_Cal.h.

References f11Mag4.

00059 { return f11Mag4; }

Float_t Dcs_Mag_Cal::GetMagZT11_QFO04 (  )  const [inline]

Definition at line 61 of file Dcs_Mag_Cal.h.

References f11Mag6.

00061 { return f11Mag6; }

Float_t Dcs_Mag_Cal::GetMagZT7_BHZ01NS7 (  )  const [inline]

Definition at line 49 of file Dcs_Mag_Cal.h.

References f7Mag2.

00049 { return f7Mag2; }

Float_t Dcs_Mag_Cal::GetMagZT7_BHZ01S7 (  )  const [inline]

Definition at line 48 of file Dcs_Mag_Cal.h.

References f7Mag1.

00048 { return f7Mag1; }

Float_t Dcs_Mag_Cal::GetMagZT7_BHZ02 (  )  const [inline]

Definition at line 50 of file Dcs_Mag_Cal.h.

References f7Mag3.

00050 { return f7Mag3; }

Float_t Dcs_Mag_Cal::GetMagZT7_QDE02 (  )  const [inline]

Definition at line 52 of file Dcs_Mag_Cal.h.

References f7Mag5.

00052 { return f7Mag5; }

Float_t Dcs_Mag_Cal::GetMagZT7_QDE04 (  )  const [inline]

Definition at line 54 of file Dcs_Mag_Cal.h.

References f7Mag7.

00054 { return f7Mag7; }

Float_t Dcs_Mag_Cal::GetMagZT7_QFO01 (  )  const [inline]

Definition at line 51 of file Dcs_Mag_Cal.h.

References f7Mag4.

00051 { return f7Mag4; }

Float_t Dcs_Mag_Cal::GetMagZT7_QFO03 (  )  const [inline]

Definition at line 53 of file Dcs_Mag_Cal.h.

References f7Mag6.

00053 { return f7Mag6; }

Float_t Dcs_Mag_Cal::GetMagZT7_QFO05 (  )  const [inline]

Definition at line 55 of file Dcs_Mag_Cal.h.

References f7Mag8.

00055 { return f7Mag8; }

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

Reimplemented from DbiTableRow.

Definition at line 75 of file Dcs_Mag_Cal.cxx.

References f11Mag1, f11Mag2, f11Mag3, f11Mag4, f11Mag5, f11Mag6, f11Mag7, f11Mag8, f7Mag1, f7Mag2, f7Mag3, f7Mag4, f7Mag5, f7Mag6, f7Mag7, f7Mag8, and iIsT7.

00076                                                                  {
00077 //  Purpose:  Stream object to output row stream
00078 //
00079 //  Arguments: 
00080 //    ors          in     Output row stream.
00081 //    vrec         in    Associated validity record (or 0 if filling
00082 //                                                    DbiValidityRec)
00083 //  o  Stream object to output row stream.
00084 
00085   ors << iIsT7 << f7Mag1 << f7Mag2 << f7Mag3 << f7Mag4 << f7Mag5 << f7Mag6 << f7Mag7 << f7Mag8 << f11Mag1 << f11Mag2 << f11Mag3 << f11Mag4 << f11Mag5 << f11Mag6 << f11Mag7 << f11Mag8;
00086 }


Member Data Documentation

Float_t Dcs_Mag_Cal::f11Mag1 [private]

Definition at line 85 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f11Mag2 [private]

Definition at line 86 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f11Mag3 [private]

Definition at line 87 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f11Mag4 [private]

Definition at line 88 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f11Mag5 [private]

Definition at line 89 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f11Mag6 [private]

Definition at line 90 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f11Mag7 [private]

Definition at line 91 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f11Mag8 [private]

Definition at line 92 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f7Mag1 [private]

Definition at line 77 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f7Mag2 [private]

Definition at line 78 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f7Mag3 [private]

Definition at line 79 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f7Mag4 [private]

Definition at line 80 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f7Mag5 [private]

Definition at line 81 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f7Mag6 [private]

Definition at line 82 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f7Mag7 [private]

Definition at line 83 of file Dcs_Mag_Cal.h.

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

Float_t Dcs_Mag_Cal::f7Mag8 [private]

Definition at line 84 of file Dcs_Mag_Cal.h.

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

Int_t Dcs_Mag_Cal::iIsT7 [private]

Definition at line 76 of file Dcs_Mag_Cal.h.

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


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

Generated on 2 Nov 2017 for loon by  doxygen 1.6.1