#include <Dcs_Mag_Near.h>
Inheritance diagram for Dcs_Mag_Near:

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 |
| Int_t | GetAggregateNo () 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 DbiTableRow * | CreateTableRow () 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 |
Definition at line 21 of file Dcs_Mag_Near.h.
| Dcs_Mag_Near::Dcs_Mag_Near | ( | ) | [inline] |
| Dcs_Mag_Near::Dcs_Mag_Near | ( | const Dcs_Mag_Near & | from | ) | [inline] |
| 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 30 of file Dcs_Mag_Near.h.
00030 : 00031 fCurrent(a),fVoltage(b),fVoltageRef(c),iRawData(d),b0LocalOrRemote(e),b1InterLocksComplete(f),b2PowerSupplyOn(g),b3GroundFault(h),b4OverCurrentDC(i),b5OverTemperature(j),b6CurrentRegulateMode(k),b7ExternalReference(m),b8Polarity(n) { } virtual ~Dcs_Mag_Near(){ };
| virtual Dcs_Mag_Near::~Dcs_Mag_Near | ( | ) | [inline, virtual] |
| Bool_t Dcs_Mag_Near::CanL2Cache | ( | ) | const [inline, virtual] |
| Bool_t Dcs_Mag_Near::Compare | ( | const Dcs_Mag_Near & | that | ) | const [inline] |
Definition at line 37 of file Dcs_Mag_Near.h.
References b0LocalOrRemote, b1InterLocksComplete, b2PowerSupplyOn, b3GroundFault, b4OverCurrentDC, b5OverTemperature, b6CurrentRegulateMode, b7ExternalReference, b8Polarity, fCurrent, fVoltage, fVoltageRef, and iRawData.
00037 { 00038 return fCurrent == that.fCurrent 00039 && fVoltage == that.fVoltage 00040 && fVoltageRef == that.fVoltageRef 00041 && b0LocalOrRemote == that.b0LocalOrRemote 00042 && b1InterLocksComplete== that.b1InterLocksComplete 00043 && b2PowerSupplyOn== that.b2PowerSupplyOn 00044 && b3GroundFault== that.b3GroundFault 00045 && b4OverCurrentDC== that.b4OverCurrentDC 00046 && b5OverTemperature== that.b5OverTemperature 00047 && b6CurrentRegulateMode== that.b6CurrentRegulateMode 00048 && b7ExternalReference== that.b7ExternalReference 00049 && b8Polarity== that.b8Polarity 00050 && iRawData == that.iRawData; }
| virtual DbiTableRow* Dcs_Mag_Near::CreateTableRow | ( | ) | const [inline, virtual] |
Implements DbiTableRow.
Definition at line 73 of file Dcs_Mag_Near.h.
00073 { 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 }
| Int_t Dcs_Mag_Near::GetAggregateNo | ( | ) | const [inline, virtual] |
| Short_t Dcs_Mag_Near::GetControlState | ( | ) | const [inline] |
Definition at line 59 of file Dcs_Mag_Near.h.
References b0LocalOrRemote.
00059 { return b0LocalOrRemote; }
| Float_t Dcs_Mag_Near::GetCurrent | ( | ) | const [inline] |
Definition at line 55 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().
00055 { return fCurrent; }
| Short_t Dcs_Mag_Near::GetCurrentRegulateMode | ( | ) | const [inline] |
Definition at line 65 of file Dcs_Mag_Near.h.
References b6CurrentRegulateMode.
00065 { return b6CurrentRegulateMode; }
| Short_t Dcs_Mag_Near::GetExternalReference | ( | ) | const [inline] |
Definition at line 66 of file Dcs_Mag_Near.h.
References b7ExternalReference.
00066 { return b7ExternalReference; }
| Short_t Dcs_Mag_Near::GetGroundFault | ( | ) | const [inline] |
Definition at line 62 of file Dcs_Mag_Near.h.
References b3GroundFault.
Referenced by CoilTools::IsMagNearOK().
00062 { return b3GroundFault; }
| UInt_t Dcs_Mag_Near::GetIndex | ( | UInt_t | ) | const [inline, virtual] |
| Short_t Dcs_Mag_Near::GetInterLocksComplete | ( | ) | const [inline] |
Definition at line 60 of file Dcs_Mag_Near.h.
References b1InterLocksComplete.
Referenced by CoilTools::IsMagNearOK().
00060 { return b1InterLocksComplete; }
| Short_t Dcs_Mag_Near::GetOverCurrentDC | ( | ) | const [inline] |
Definition at line 63 of file Dcs_Mag_Near.h.
References b4OverCurrentDC.
Referenced by CoilTools::IsMagNearOK().
00063 { return b4OverCurrentDC; }
| Short_t Dcs_Mag_Near::GetOverTemperature | ( | ) | const [inline] |
Definition at line 64 of file Dcs_Mag_Near.h.
References b5OverTemperature.
Referenced by CoilTools::IsMagNearOK().
00064 { return b5OverTemperature; }
| Short_t Dcs_Mag_Near::GetPolarity | ( | ) | const [inline] |
Definition at line 67 of file Dcs_Mag_Near.h.
References b8Polarity.
Referenced by CoilTools::IsMagNearReverse().
00067 { return b8Polarity; }
| Short_t Dcs_Mag_Near::GetPowerSupplyOn | ( | ) | const [inline] |
Definition at line 61 of file Dcs_Mag_Near.h.
References b2PowerSupplyOn.
Referenced by CoilTools::IsMagNearOK().
00061 { return b2PowerSupplyOn; }
| Int_t Dcs_Mag_Near::GetRawData | ( | ) | const [inline] |
| Int_t Dcs_Mag_Near::GetSupermodule | ( | ) | const [inline] |
| Float_t Dcs_Mag_Near::GetVoltage | ( | ) | const [inline] |
| Float_t Dcs_Mag_Near::GetVoltageReference | ( | ) | const [inline] |
| 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 }
Short_t Dcs_Mag_Near::b0LocalOrRemote [private] |
Definition at line 83 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetControlState(), and Store().
Short_t Dcs_Mag_Near::b1InterLocksComplete [private] |
Definition at line 84 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetInterLocksComplete(), and Store().
Short_t Dcs_Mag_Near::b2PowerSupplyOn [private] |
Definition at line 85 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetPowerSupplyOn(), and Store().
Short_t Dcs_Mag_Near::b3GroundFault [private] |
Definition at line 86 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetGroundFault(), and Store().
Short_t Dcs_Mag_Near::b4OverCurrentDC [private] |
Definition at line 87 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetOverCurrentDC(), and Store().
Short_t Dcs_Mag_Near::b5OverTemperature [private] |
Definition at line 88 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetOverTemperature(), and Store().
Short_t Dcs_Mag_Near::b6CurrentRegulateMode [private] |
Definition at line 89 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetCurrentRegulateMode(), and Store().
Short_t Dcs_Mag_Near::b7ExternalReference [private] |
Definition at line 90 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetExternalReference(), and Store().
Short_t Dcs_Mag_Near::b8Polarity [private] |
Definition at line 91 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetPolarity(), and Store().
Float_t Dcs_Mag_Near::fCurrent [private] |
Definition at line 79 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetCurrent(), and Store().
Float_t Dcs_Mag_Near::fVoltage [private] |
Definition at line 80 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetVoltage(), and Store().
Float_t Dcs_Mag_Near::fVoltageRef [private] |
Definition at line 81 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetVoltageReference(), and Store().
Int_t Dcs_Mag_Near::iRawData [private] |
Definition at line 82 of file Dcs_Mag_Near.h.
Referenced by Compare(), Fill(), GetRawData(), and Store().
1.4.7