#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 28 of file Dcs_Mag_Near.h. 00028 { }
|
|
|
Definition at line 29 of file Dcs_Mag_Near.h. 00029 : DbiTableRow(from) { *this = from; }
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Definition at line 30 of file Dcs_Mag_Near.h. References b0LocalOrRemote, b1InterLocksComplete, b2PowerSupplyOn, b3GroundFault, b4OverCurrentDC, b5OverTemperature, b6CurrentRegulateMode, b7ExternalReference, b8Polarity, fCurrent, fVoltage, fVoltageRef, and iRawData. 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(){ };
|
|
|
Definition at line 32 of file Dcs_Mag_Near.h. 00032 { };
|
|
|
Reimplemented from DbiTableRow. Definition at line 36 of file Dcs_Mag_Near.h. 00036 { return kTRUE; }
|
|
|
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; }
|
|
|
Implements DbiTableRow. Definition at line 73 of file Dcs_Mag_Near.h. 00073 { return new Dcs_Mag_Near; }
|
|
||||||||||||
|
Implements DbiTableRow. Definition at line 30 of file Dcs_Mag_Near.cxx. 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 }
|
|
|
Reimplemented from DbiTableRow. Definition at line 54 of file Dcs_Mag_Near.h. 00054 { return 1; }
|
|
|
Definition at line 59 of file Dcs_Mag_Near.h. 00059 { return b0LocalOrRemote; }
|
|
|
Definition at line 55 of file Dcs_Mag_Near.h. Referenced by CoilTools::CoilCurrent(), MadPIDAnalysis::CreatePAN(), NuExtraction::ExtractCoilCurrent(), ANtpInfoObjectFiller::FillHeaderInformation(), MadTVAnalysis::GetNDCoilCurrent(), ANtpEventInfoAna::GetNDCoilCurrent(), and CoilTools::IsMagNearOK(). 00055 { return fCurrent; }
|
|
|
Definition at line 65 of file Dcs_Mag_Near.h. 00065 { return b6CurrentRegulateMode; }
|
|
|
Definition at line 66 of file Dcs_Mag_Near.h. 00066 { return b7ExternalReference; }
|
|
|
Definition at line 62 of file Dcs_Mag_Near.h. Referenced by CoilTools::IsMagNearOK(). 00062 { return b3GroundFault; }
|
|
|
Reimplemented from DbiTableRow. Definition at line 52 of file Dcs_Mag_Near.h. 00052 { return 1; }
|
|
|
Definition at line 60 of file Dcs_Mag_Near.h. Referenced by CoilTools::IsMagNearOK(). 00060 { return b1InterLocksComplete; }
|
|
|
Definition at line 63 of file Dcs_Mag_Near.h. Referenced by CoilTools::IsMagNearOK(). 00063 { return b4OverCurrentDC; }
|
|
|
Definition at line 64 of file Dcs_Mag_Near.h. Referenced by CoilTools::IsMagNearOK(). 00064 { return b5OverTemperature; }
|
|
|
Definition at line 67 of file Dcs_Mag_Near.h. Referenced by CoilTools::IsMagNearReverse(). 00067 { return b8Polarity; }
|
|
|
Definition at line 61 of file Dcs_Mag_Near.h. Referenced by CoilTools::IsMagNearOK(). 00061 { return b2PowerSupplyOn; }
|
|
|
Definition at line 58 of file Dcs_Mag_Near.h. 00058 { return iRawData; }
|
|
|
Definition at line 53 of file Dcs_Mag_Near.h. 00053 { return 1; }
|
|
|
Definition at line 56 of file Dcs_Mag_Near.h. 00056 { return fVoltage; }
|
|
|
Definition at line 57 of file Dcs_Mag_Near.h. 00057 { return fVoltageRef; }
|
|
||||||||||||
|
Reimplemented from DbiTableRow. Definition at line 105 of file Dcs_Mag_Near.cxx. References b0LocalOrRemote, b1InterLocksComplete, b2PowerSupplyOn, b3GroundFault, b4OverCurrentDC, b5OverTemperature, b6CurrentRegulateMode, b7ExternalReference, 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 }
|
|
|
Definition at line 83 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 84 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 85 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 86 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 87 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 88 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 89 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 90 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 91 of file Dcs_Mag_Near.h. Referenced by Compare(), and Dcs_Mag_Near(). |
|
|
Definition at line 79 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 80 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 81 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
|
|
Definition at line 82 of file Dcs_Mag_Near.h. Referenced by Compare(), Dcs_Mag_Near(), and Store(). |
1.3.9.1