Changeset 7726 for trunk/MagicSoft/Mars/mreport
- Timestamp:
- 05/22/06 17:51:33 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mreport
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReport.cc
r7719 r7726 123 123 // 200510250 | 53801.5 | 53813.5 | 200603080 124 124 // 200510250 | 53813.5 | | 200603190 125 // 200604010 | 53863.5 | | 200605080 125 126 // 126 127 Int_t MReport::Interprete(TString &str, const MTime &start, const MTime &stop, Int_t ver) … … 153 154 ver=200603190; 154 155 156 if (ver==200604010 && GetMjd()>53864.5) 157 ver=200605080; 158 155 159 // Interprete body (contents) of report 156 160 const Int_t rc = InterpreteBody(str, ver); -
trunk/MagicSoft/Mars/mreport/MReportCC.cc
r7723 r7726 261 261 continue; 262 262 263 if (n==0 && i==0) 264 { 265 *fLog << inf << "Receiver Board Temperatures empty." << endl; 266 fRecTemp->Invalidate(); 267 break; 268 } 269 263 270 *fLog << warn << "WARNING - Reading Receiver Board Temperature information." << endl; 264 271 return kFALSE; … … 286 293 if (str.BeginsWith("RECEIVERS-COM-ERROR")) 287 294 { 295 *fLog << inf << "Receiver Com-error... threshold setting and receiver board temp. invalid." << endl; 288 296 fTD->Invalidate(); 289 297 fTH->Invalidate(); 298 fRecTemp->Invalidate(); 290 299 str.Remove(0, 19); 291 300 } … … 297 306 if (!InterpreteTD(str, ver)) 298 307 return kCONTINUE; 299 } 300 301 if (ver>=200510250)302 if (!InterpreteRecTemp(str))303 return kCONTINUE;308 309 if (ver>=200510250) 310 if (!InterpreteRecTemp(str)) 311 return kCONTINUE; 312 } 304 313 305 314 if (str.Strip(TString::kBoth)!=(TString)"OVER") -
trunk/MagicSoft/Mars/mreport/MReportStarguider.cc
r7639 r7726 58 58 // + Double_t fMjd; // Modified Julian Date matching the nominal position 59 59 // 60 // 61 // Class Version 3: 62 // ---------------- 63 // + UInt_t fNumCorrelatedStars; // Number of correlated stars identified by starguider algorithm 64 // 60 65 ////////////////////////////////////////////////////////////////////////////// 61 66 #include "MReportStarguider.h" … … 73 78 // Default constructor. Initialize identifier to "STARG-REPORT" 74 79 // 75 MReportStarguider::MReportStarguider() : MReport("STARG-REPORT") ,80 MReportStarguider::MReportStarguider() : MReport("STARG-REPORT")/*, 76 81 fDevAz(0), fDevZd(0), fNominalZd(0), fNominalAz(0), 77 82 fCameraCenterX(0), fCameraCenterY(0), fNumIdentifiedStars(0), 78 f SkyBrightness(0)83 fNumCorrelatedStars(0), fSkyBrightness(0)*/ 79 84 { 80 85 fName = "MReportStarguider"; 81 86 fTitle = "Class for STARG-REPORT information (telescope mispointing)"; 87 88 Clear(); 89 } 90 91 // -------------------------------------------------------------------------- 92 // 93 // Interprete the body of the STARG-REPORT string 94 // 95 void MReportStarguider::Clear(Option_t *o) 96 { 97 fDevAz = 0; 98 fDevZd = 0; 99 100 fNominalZd = 0; 101 fNominalAz = 0; 102 103 fCameraCenterX = 0; 104 fCameraCenterY = 0; 105 106 fNumIdentifiedStars = 0; 107 fNumCorrelatedStars = 0; 108 109 fSkyBrightness = 0; 82 110 } 83 111 … … 146 174 } 147 175 176 if (ver>=200605080) 177 { 178 // For the momment this are only placeholders.... 179 fNumCorrelatedStars = fNumIdentifiedStars; 180 n=sscanf(str.Data(), "%df %n", &fNumIdentifiedStars, &len); 181 if (n!=1) 182 { 183 *fLog << warn << "WARNING - Not enough arguments." << endl; 184 *fLog << str << endl; 185 return kCONTINUE; 186 } 187 188 str.Remove(0, len); 189 str = str.Strip(TString::kBoth); 190 } 191 148 192 return str.IsNull() ? kTRUE : kCONTINUE; 149 193 } -
trunk/MagicSoft/Mars/mreport/MReportStarguider.h
r7202 r7726 23 23 24 24 UInt_t fNumIdentifiedStars; // Number of stars identified by starguider algorithm 25 UInt_t fNumCorrelatedStars; // Number of correlated stars identified by starguider algorithm 25 26 26 27 Double_t fSkyBrightness; // [au] Sky Brightness as calcualted from the CCD image … … 31 32 public: 32 33 MReportStarguider(); 34 35 void Clear(Option_t *o=""); 33 36 34 37 Double_t GetDevAz() const { return fDevAz; } … … 46 49 47 50 UInt_t GetNumIdentifiedStars() const { return fNumIdentifiedStars; } 51 UInt_t GetNumCorrelatedStars() const { return fNumCorrelatedStars; } 48 52 49 53 Double_t GetSkyBrightness() const { return fSkyBrightness; } … … 52 56 void Print(Option_t *o="") const; 53 57 54 ClassDef(MReportStarguider, 2) // Class for STARG-REPORT information58 ClassDef(MReportStarguider, 3) // Class for STARG-REPORT information 55 59 }; 56 60
Note:
See TracChangeset
for help on using the changeset viewer.