Changeset 7026 for trunk/MagicSoft
- Timestamp:
- 05/13/05 13:51:38 (20 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/Changelog
r7024 r7026 21 21 22 22 -*-*- END OF LINE -*-*- 23 2005/05/13 Thomas Bretz 24 25 * mreport/MReportCC.cc: 26 - fixed reading of rep-files for versions newer than V200404070 27 28 29 23 30 2005/05/13 Daniela Dorner 24 31 -
trunk/MagicSoft/Mars/NEWS
r7022 r7026 91 91 + MHCalibrationChargeCam.NumHiGainSaturationLimit 92 92 + MHCalibrationChargeCam.NumLoGainSaturationLimit 93 94 - fixed reading of CC-REPORTS (weather data) for Arehucas file versions 95 newer than V200404070 93 96 94 97 -
trunk/MagicSoft/Mars/mreport/MReportCC.cc
r4575 r7026 60 60 Int_t MReportCC::InterpreteBody(TString &str, Int_t ver) 61 61 { 62 // Remove the 30 tokens of the subsystem status 63 // table 12.1 p59 64 for (int i=0; i<30; i++) 62 if (ver<200404070) 63 { 64 *fLog << err << "ERROR - MReportCC::InterpreteBody not prepared for "; 65 *fLog << " report-files with version<200404070" << endl; 66 return kFALSE; 67 } 68 69 const Int_t skip = ver<200407270 ? 30 : 31; 70 71 for (int i=0; i<skip; i++) 65 72 str.Remove(0, str.First(' ')+1); 66 73 … … 75 82 return kCONTINUE; 76 83 } 77 /* 84 78 85 str.Remove(0, len); 79 86 80 *fLog << dbg << str << endl; 87 for (int i=0; i<4; i++) // 2*UPS, TH, 577%x, TD, 577%x 88 str.Remove(0, str.First(' ')+1); 81 89 82 if (str !=(TString)"OVER")90 if (str.Strip(TString::kBoth)!=(TString)"OVER") 83 91 { 84 92 *fLog << err << "ERROR - Termination (OVER) too far away." << endl; 85 return k FALSE;93 return kCONTINUE; 86 94 } 87 */ 95 88 96 return kTRUE; 89 97 } 98 99 // -------------------------------------------------------------------------- 100 // 101 // Print contents of report 102 // 103 void MReportCC::Print(Option_t *opt) const 104 { 105 *fLog << all << GetDescriptor() << ": Status=" << (int)GetState(); 106 *fLog << " Hum=" << Form("%3.0f", fHumidity); 107 *fLog << "% Temp=" << Form("%+3.0f", fTemperature); 108 *fLog << "°C Wind=" << Form("%3.0f", fWindSpeed); 109 *fLog << "km/h SolarRad=" << Form("%4.0f", fSolarRadiation) << "W/m^2" << endl; 110 }
Note:
See TracChangeset
for help on using the changeset viewer.