Dcs_Mag_Near Class Reference

#include <Dcs_Mag_Near.h>

Inheritance diagram for Dcs_Mag_Near:

DbiTableRow List of all members.

Public Member Functions

 Dcs_Mag_Near ()
 Dcs_Mag_Near (const Dcs_Mag_Near &from)
 Dcs_Mag_Near (Float_t a, Float_t b, Float_t c, Int_t d, Short_t e, Short_t f, Short_t g, Short_t h, Short_t i, Short_t j, Short_t k, Short_t m, Short_t n)
virtual ~Dcs_Mag_Near ()
Bool_t CanL2Cache () const
Bool_t Compare (const Dcs_Mag_Near &that) const
UInt_t GetIndex (UInt_t) const
Int_t GetSupermodule () const
Float_t GetCurrent () const
Float_t GetVoltage () const
Float_t GetVoltageReference () const
Int_t GetRawData () const
Short_t GetControlState () const
Short_t GetInterLocksComplete () const
Short_t GetPowerSupplyOn () const
Short_t GetGroundFault () const
Short_t GetOverCurrentDC () const
Short_t GetOverTemperature () const
Short_t GetCurrentRegulateMode () const
Short_t GetExternalReference () const
Short_t GetPolarity () 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 fCurrent
Float_t fVoltage
Float_t fVoltageRef
Int_t iRawData
Short_t b0LocalOrRemote
Short_t b1InterLocksComplete
Short_t b2PowerSupplyOn
Short_t b3GroundFault
Short_t b4OverCurrentDC
Short_t b5OverTemperature
Short_t b6CurrentRegulateMode
Short_t b7ExternalReference
Short_t b8Polarity

Detailed Description

Definition at line 11 of file Dcs_Mag_Near.h.


Constructor & Destructor Documentation

Dcs_Mag_Near::Dcs_Mag_Near (  )  [inline]

Definition at line 18 of file Dcs_Mag_Near.h.

00018 { }

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

Definition at line 19 of file Dcs_Mag_Near.h.

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

Dcs_Mag_Near::Dcs_Mag_Near ( Float_t  a,
Float_t  b,
Float_t  c,
Int_t  d,
Short_t  e,
Short_t  f,
Short_t  g,
Short_t  h,
Short_t  i,
Short_t  j,
Short_t  k,
Short_t  m,
Short_t  n 
) [inline]

Definition at line 20 of file Dcs_Mag_Near.h.

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

Definition at line 22 of file Dcs_Mag_Near.h.

00022 { };


Member Function Documentation

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

Reimplemented from DbiTableRow.

Definition at line 26 of file Dcs_Mag_Near.h.

00026 { return kTRUE; }

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

Definition at line 27 of file Dcs_Mag_Near.h.

References b0LocalOrRemote, b1InterLocksComplete, b2PowerSupplyOn, b3GroundFault, b4OverCurrentDC, b5OverTemperature, b6CurrentRegulateMode, b7ExternalReference, b8Polarity, fCurrent, fVoltage, fVoltageRef, and iRawData.

00027                                                   {
00028                 return     fCurrent == that.fCurrent
00029                        &&  fVoltage == that.fVoltage
00030                        &&  fVoltageRef == that.fVoltageRef
00031                        &&  b0LocalOrRemote == that.b0LocalOrRemote
00032                        &&  b1InterLocksComplete== that.b1InterLocksComplete
00033                        &&  b2PowerSupplyOn== that.b2PowerSupplyOn
00034                        &&  b3GroundFault== that.b3GroundFault
00035                        &&  b4OverCurrentDC== that.b4OverCurrentDC
00036                        &&  b5OverTemperature== that.b5OverTemperature
00037                        &&  b6CurrentRegulateMode== that.b6CurrentRegulateMode
00038                        &&  b7ExternalReference== that.b7ExternalReference
00039                        &&  b8Polarity== that.b8Polarity
00040                        &&  iRawData == that.iRawData; }

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

Implements DbiTableRow.

Definition at line 62 of file Dcs_Mag_Near.h.

00062 { return new Dcs_Mag_Near; }

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

Implements DbiTableRow.

Definition at line 30 of file Dcs_Mag_Near.cxx.

References b0LocalOrRemote, b1InterLocksComplete, b2PowerSupplyOn, b3GroundFault, b4OverCurrentDC, b5OverTemperature, b6CurrentRegulateMode, b7ExternalReference, b8Polarity, fCurrent, fVoltage, fVoltageRef, and iRawData.

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_FAR" 
00047 //       && rs.TableName() != "Dcs_Mag_Near" ) {
00048     
00049 // Dumb method.
00050           rs >> fCurrent >> fVoltage >> fVoltageRef >> iRawData >> b0LocalOrRemote >> b1InterLocksComplete >> b2PowerSupplyOn >> b3GroundFault >> b4OverCurrentDC >> b5OverTemperature >> b6CurrentRegulateMode >> b7ExternalReference >> b8Polarity;
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 == "FAR_CURRENT" ) rs >> fCurrent;
00061       else if ( colName == "FAR_VOLTAGE" )  rs >> fVoltage;
00062       else if ( colName == "FAR_SUPERMODULE" )     rs >> iSupermod;
00063       else if ( colName == "FAR_THERM1" )     rs >> fTherm1;
00064       else if ( colName == "FAR_THERM2" )     rs >> fTherm2;
00065       else if ( colName == "FAR_THERM3" )     rs >> fTherm3;
00066       else if ( colName == "FAR_THERM4" )     rs >> fTherm4;
00067       else if ( colName == "FAR_THERM5" )     rs >> fTherm5;
00068       else if ( colName == "FAR_THERM6" )     rs >> fTherm6;
00069       else if ( colName == "FAR_THERM7" )     rs >> fTherm7;
00070       else if ( colName == "FAR_THERM8" )     rs >> fTherm8;
00071       else if ( colName == "FAR_THERM9" )     rs >> fTherm9;
00072       else if ( colName == "FAR_THERM10" )     rs >> fTherm10;
00073       else if ( colName == "FAR_THERM11" )     rs >> fTherm11;
00074       else if ( colName == "FAR_THERM12" )     rs >> fTherm12;
00075       else if ( colName == "FAR_THERM13" )     rs >> fTherm13;
00076       else if ( colName == "FAR_THERM14" )     rs >> fTherm14;
00077       else if ( colName == "FAR_THERM15" )     rs >> fTherm15;
00078       else if ( colName == "FAR_THERM16" )     rs >> fTherm16;
00079       else if ( colName == "FAR_THERM17" )     rs >> fTherm17;
00080       else if ( colName == "FAR_THERM18" )     rs >> fTherm18;
00081       else if ( colName == "FAR_THERM19" )     rs >> fTherm19;
00082       else if ( colName == "FAR_THERM20" )     rs >> fTherm20;
00083       else if ( colName == "FAR_THERM21" )     rs >> fTherm21;
00084       else if ( colName == "FAR_THERM22" )     rs >> fTherm22;
00085       else if ( colName == "FAR_THERM23" )     rs >> fTherm23;
00086       else if ( colName == "FAR_THERM24" )     rs >> fTherm24;
00087       else if ( colName == "FAR_THERM25" )     rs >> fTherm25;
00088       else if ( colName == "FAR_THERM26" )     rs >> fTherm26;
00089       else if ( colName == "FAR_THERM27" )     rs >> fTherm27;
00090       else if ( colName == "FAR_THERM28" )     rs >> fTherm28;
00091       else if ( colName == "FAR_THERM29" )     rs >> fTherm29;
00092       else {
00093         MSG("Dbi",Msg::kDebug) << "Ignoring column " << curCol 
00094                                << "(" << colName << ")"
00095                               << "; not part of DcsMagNear" << endl;
00096         rs.IncrementCurCol();
00097       }
00098     }
00099     
00100   }
00101 */
00102 }

Short_t Dcs_Mag_Near::GetControlState (  )  const [inline]

Definition at line 48 of file Dcs_Mag_Near.h.

References b0LocalOrRemote.

00048 { return b0LocalOrRemote; }

Float_t Dcs_Mag_Near::GetCurrent (  )  const [inline]

Definition at line 44 of file Dcs_Mag_Near.h.

References fCurrent.

Referenced by CoilTools::CoilCurrent(), MadPIDAnalysis::CreatePAN(), NuExtraction::ExtractCoilCurrent(), ANtpInfoObjectFiller::FillHeaderInformation(), MadTVAnalysis::GetNDCoilCurrent(), ANtpEventInfoAna::GetNDCoilCurrent(), and CoilTools::IsMagNearOK().

00044 { return fCurrent; }

Short_t Dcs_Mag_Near::GetCurrentRegulateMode (  )  const [inline]

Definition at line 54 of file Dcs_Mag_Near.h.

References b6CurrentRegulateMode.

00054 { return b6CurrentRegulateMode; }

Short_t Dcs_Mag_Near::GetExternalReference (  )  const [inline]

Definition at line 55 of file Dcs_Mag_Near.h.

References b7ExternalReference.

00055 { return b7ExternalReference; }

Short_t Dcs_Mag_Near::GetGroundFault (  )  const [inline]

Definition at line 51 of file Dcs_Mag_Near.h.

References b3GroundFault.

Referenced by CoilTools::IsMagNearOK().

00051 { return b3GroundFault; }

UInt_t Dcs_Mag_Near::GetIndex ( UInt_t   )  const [inline, virtual]

Reimplemented from DbiTableRow.

Definition at line 42 of file Dcs_Mag_Near.h.

00042 { return 1; }

Short_t Dcs_Mag_Near::GetInterLocksComplete (  )  const [inline]

Definition at line 49 of file Dcs_Mag_Near.h.

References b1InterLocksComplete.

Referenced by CoilTools::IsMagNearOK().

00049 { return b1InterLocksComplete; }

Short_t Dcs_Mag_Near::GetOverCurrentDC (  )  const [inline]

Definition at line 52 of file Dcs_Mag_Near.h.

References b4OverCurrentDC.

Referenced by CoilTools::IsMagNearOK().

00052 { return b4OverCurrentDC; }

Short_t Dcs_Mag_Near::GetOverTemperature (  )  const [inline]

Definition at line 53 of file Dcs_Mag_Near.h.

References b5OverTemperature.

Referenced by CoilTools::IsMagNearOK().

00053 { return b5OverTemperature; }

Short_t Dcs_Mag_Near::GetPolarity (  )  const [inline]

Definition at line 56 of file Dcs_Mag_Near.h.

References b8Polarity.

Referenced by CoilTools::IsMagNearReverse().

00056 { return b8Polarity; }

Short_t Dcs_Mag_Near::GetPowerSupplyOn (  )  const [inline]

Definition at line 50 of file Dcs_Mag_Near.h.

References b2PowerSupplyOn.

Referenced by CoilTools::IsMagNearOK().

00050 { return b2PowerSupplyOn; }

Int_t Dcs_Mag_Near::GetRawData (  )  const [inline]

Definition at line 47 of file Dcs_Mag_Near.h.

References iRawData.

00047 { return iRawData; }

Int_t Dcs_Mag_Near::GetSupermodule (  )  const [inline]

Definition at line 43 of file Dcs_Mag_Near.h.

00043 { return 1; }

Float_t Dcs_Mag_Near::GetVoltage (  )  const [inline]

Definition at line 45 of file Dcs_Mag_Near.h.

References fVoltage.

00045 { return fVoltage; }

Float_t Dcs_Mag_Near::GetVoltageReference (  )  const [inline]

Definition at line 46 of file Dcs_Mag_Near.h.

References fVoltageRef.

00046 { return fVoltageRef; }

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

Reimplemented from DbiTableRow.

Definition at line 105 of file Dcs_Mag_Near.cxx.

References b0LocalOrRemote, b1InterLocksComplete, b2PowerSupplyOn, b3GroundFault, b4OverCurrentDC, b5OverTemperature, b6CurrentRegulateMode, b7ExternalReference, b8Polarity, fCurrent, fVoltage, fVoltageRef, and iRawData.

00106                                                                  {
00107 //  Purpose:  Stream object to output row stream
00108 //
00109 //  Arguments: 
00110 //    ors          in     Output row stream.
00111 //    vrec         in    Associated validity record (or 0 if filling
00112 //                                                    DbiValidityRec)
00113 //  o  Stream object to output row stream.
00114 
00115   ors << fCurrent << fVoltage << fVoltageRef << iRawData << b0LocalOrRemote << b1InterLocksComplete << b2PowerSupplyOn << b3GroundFault << b4OverCurrentDC << b5OverTemperature << b6CurrentRegulateMode << b7ExternalReference << b8Polarity;
00116 }


Member Data Documentation

Short_t Dcs_Mag_Near::b0LocalOrRemote [private]

Definition at line 72 of file Dcs_Mag_Near.h.

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

Short_t Dcs_Mag_Near::b1InterLocksComplete [private]

Definition at line 73 of file Dcs_Mag_Near.h.

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

Short_t Dcs_Mag_Near::b2PowerSupplyOn [private]

Definition at line 74 of file Dcs_Mag_Near.h.

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

Short_t Dcs_Mag_Near::b3GroundFault [private]

Definition at line 75 of file Dcs_Mag_Near.h.

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

Short_t Dcs_Mag_Near::b4OverCurrentDC [private]

Definition at line 76 of file Dcs_Mag_Near.h.

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

Short_t Dcs_Mag_Near::b5OverTemperature [private]

Definition at line 77 of file Dcs_Mag_Near.h.

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

Short_t Dcs_Mag_Near::b6CurrentRegulateMode [private]

Definition at line 78 of file Dcs_Mag_Near.h.

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

Short_t Dcs_Mag_Near::b7ExternalReference [private]

Definition at line 79 of file Dcs_Mag_Near.h.

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

Short_t Dcs_Mag_Near::b8Polarity [private]

Definition at line 80 of file Dcs_Mag_Near.h.

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

Float_t Dcs_Mag_Near::fCurrent [private]

Definition at line 68 of file Dcs_Mag_Near.h.

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

Float_t Dcs_Mag_Near::fVoltage [private]

Definition at line 69 of file Dcs_Mag_Near.h.

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

Float_t Dcs_Mag_Near::fVoltageRef [private]

Definition at line 70 of file Dcs_Mag_Near.h.

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

Int_t Dcs_Mag_Near::iRawData [private]

Definition at line 71 of file Dcs_Mag_Near.h.

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


The documentation for this class was generated from the following files:
Generated on Fri Oct 10 22:45:32 2014 for loon by  doxygen 1.4.7