Changeset 9005 for trunk/MagicSoft/Mars/mreport
- Timestamp:
- 07/17/08 15:58:20 (16 years ago)
- Location:
- trunk/MagicSoft/Mars/mreport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReportCamera.cc
r8955 r9005 33 33 // there. 34 34 // 35 // Version 2: 36 // ---------- 37 // - fStstusDC 38 // 35 39 ////////////////////////////////////////////////////////////////////////////// 36 40 #include "MReportCamera.h" … … 43 47 #include "MCameraCalibration.h" 44 48 #include "MCameraCooling.h" 49 #include "MCameraDC.h" 45 50 #include "MCameraHV.h" 46 51 #include "MCameraLV.h" … … 53 58 54 59 using namespace std; 55 56 const Int_t MReportCamera::gkActiveLoadControlVersNum = 200504130;57 60 58 61 // -------------------------------------------------------------------------- … … 94 97 return kFALSE; 95 98 99 fDC = (MCameraDC*)plist.FindCreateObj("MCameraDC"); 100 if (!fDC) 101 return kFALSE; 102 96 103 fLV = (MCameraLV*)plist.FindCreateObj("MCameraLV"); 97 104 if (!fLV) … … 122 129 return kFALSE; 123 130 124 str.Remove(0, 577*4); // Remove DC currents 125 str=str.Strip(TString::kLeading); 126 return kTRUE; 131 return fDC->Interprete(str); 127 132 } 128 133 … … 548 553 fCalibration->fStatusLoVoltage = (Bool_t)clv; 549 554 fStatus = (Byte_t)stat; 550 f StatusDC= (Byte_t)dc;555 fDC->fStatus = (Byte_t)dc; 551 556 fActiveLoad->fStatus = 0xff; 552 557 553 558 Int_t len2=0; 554 if (ver > gkActiveLoadControlVersNum)559 if (ver > 200504130) 555 560 { 556 561 Short_t actl; … … 608 613 } 609 614 610 if (ver > gkActiveLoadControlVersNum)615 if (ver > 200504130) 611 616 { 612 617 if (!InterpreteActiveLoad(str)) -
trunk/MagicSoft/Mars/mreport/MReportCamera.h
r8955 r9005 9 9 class MCameraLids; 10 10 class MCameraHV; 11 class MCameraDC; 11 12 class MCameraLV; 12 13 class MCameraAUX; … … 18 19 { 19 20 private: 20 21 static const Int_t gkActiveLoadControlVersNum; //!22 23 21 Byte_t fStatus; // CaCo monitored status of the sentinel (0-9), Sentinel_state 24 Byte_t fStatusDC; // CaCo monitored status of the DC currents (0-9), Cam.DC_state25 22 26 23 MCameraCooling *fCooling; //! … … 28 25 MCameraAUX *fAUX; //! 29 26 MCameraHV *fHV; //! 27 MCameraDC *fDC; //! 30 28 MCameraLV *fLV; //! 31 29 MCameraActiveLoad *fActiveLoad; //! … … 56 54 57 55 Byte_t GetStatus() const { return fStatus; } 58 Byte_t GetStatusDC() const { return fStatusDC; }59 56 60 ClassDef(MReportCamera, 1) // Class for CAMERA-REPORT information57 ClassDef(MReportCamera, 2) // Class for CAMERA-REPORT information 61 58 }; 62 59 -
trunk/MagicSoft/Mars/mreport/MReportCurrents.cc
r8957 r9005 84 84 fStatus2 = (Byte_t)err2; 85 85 86 const char *pos = str.Data()+len; 87 const char *end = pos+577*4; 86 // FIXME: Set fDC->fStatus ??? 88 87 89 Int_t i=0; 90 while (pos<end) 91 { 92 Int_t c; 93 const Char_t hex[5] = { pos[0], pos[1], pos[2], pos[3], 0 }; 94 pos += 4; 95 96 const Int_t nn=sscanf(hex, "%4x", &c); 97 if (nn!=1) 98 { 99 *fLog << warn << "WARNING - Reading hexadecimal DC information." << endl; 100 return kCONTINUE; 101 } 102 103 (*fDC)[i++] = 0.001*c; 104 } 105 106 str.Remove(0, pos-str.Data()); // Remove DC currents 107 str=str.Strip(TString::kLeading); 108 109 return str.IsNull() ? kTRUE : kCONTINUE; 88 return fDC->Interprete(str, len); 110 89 }
Note:
See TracChangeset
for help on using the changeset viewer.