Changeset 12773
- Timestamp:
- 01/27/12 08:38:27 (13 years ago)
- Location:
- trunk/Mars/mreport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mreport/MReportCC.cc
r9385 r12773 37 37 // + Float_t fDifRubGPS; // [us] Difference between the Rubidium clock time and the time provided by the GPS receiver 38 38 // 39 // Class Version 3: 40 // ---------------- 41 // * Moved weather data to new base class 42 // 39 43 // 40 44 ////////////////////////////////////////////////////////////////////////////// 41 45 #include "MReportCC.h" 46 47 #include "fits.h" 42 48 43 49 #include "MLogManip.h" … … 51 57 #include "MCameraRecTemp.h" 52 58 59 ClassImp(MReportWeather); 53 60 ClassImp(MReportCC); 54 61 … … 60 67 // is expected to have no 'subsystem' time. 61 68 // 62 MReportCC::MReportCC() : MReport ("CC-REPORT", kFALSE)69 MReportCC::MReportCC() : MReportWeather("CC-REPORT") 63 70 { 64 71 fName = "MReportCC"; … … 239 246 // Print contents of report 240 247 // 241 void MReport CC::Print(Option_t *opt) const248 void MReportWeather::Print(Option_t *opt) const 242 249 { 243 250 *fLog << all << GetDescriptor() << ": Status=" << (int)GetState(); … … 247 254 *fLog << "km/h SolarRad=" << Form("%4.0f", fSolarRadiation) << "W/m^2" << endl; 248 255 } 256 257 Bool_t MReportWeather::SetupReadingFits(std::fits &file) 258 { 259 return 260 file.SetRefAddress("T", fTemperature) && 261 file.SetRefAddress("H", fHumidity) && 262 file.SetRefAddress("v", fWindSpeed); 263 } -
trunk/Mars/mreport/MReportCC.h
r9385 r12773 11 11 class MCameraRecTemp; 12 12 13 class MReport CC: public MReport13 class MReportWeather : public MReport 14 14 { 15 pr ivate:15 protected: 16 16 Float_t fHumidity; // [%] 17 17 Float_t fTemperature; // [deg] celsius … … 19 19 Float_t fSolarRadiation; // [W/m^2] IR-Radiation 20 20 21 Bool_t SetupReadingFits(std::fits &fits); 22 23 public: 24 MReportWeather(const char *rep="WEATHER-REPORT") : MReport(rep, kFALSE) 25 { 26 fName = "MReportWeather"; 27 fTitle = "Class for Weather data"; 28 } 29 30 void Print(Option_t *opt) const; 31 32 ClassDef(MReportWeather, 1) // Class for Weather information 33 }; 34 35 class MReportCC : public MReportWeather 36 { 37 private: 21 38 Float_t fUPSStatus; // arbitrary units (still not properly defined) 22 39 Float_t fDifRubGPS; // [us] Difference between the Rubidium clock time and the time provided by the GPS receiver … … 45 62 Float_t GetSolarRadiation() const { return fSolarRadiation; } 46 63 47 void Print(Option_t *opt) const; 48 49 ClassDef(MReportCC, 2) // Class for CC-REPORT information 64 ClassDef(MReportCC, 3) // Class for CC-REPORT information 50 65 }; 51 66
Note:
See TracChangeset
for help on using the changeset viewer.