Changeset 6920
- Timestamp:
- 04/08/05 13:33:12 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mreport
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReportStarguider.cc
r5796 r6920 16 16 ! 17 17 ! 18 ! Author(s): Benjamin Riegel, 01/2005 <mailto:riegel@astro.uni-wuerzburg.de> 18 19 ! Author(s): Thomas Bretz, 11/2003 <mailto:tbretz@astro.uni-wuerzburg.de> 19 ! Benjamin Riegel, 01/2005 <mailto:riegel@astro.uni-wuerzburg.de>20 20 ! 21 21 ! Copyright: MAGIC Software Development, 2000-2005 … … 34 34 // 35 35 // 36 // Class Version 1: 37 // ---------------- 38 // + Double_t fDevAz; // [deg] azimuth mispointing 39 // + Double_t fDevZd; // [deg] zenith mispointing 36 40 // 37 // Double_t fDevAz; // [deg] azimuth mispointing38 // Double_t fDevZd; // [deg] zenith mispointing39 41 // 42 // Class Version 2: 43 // ---------------- 44 // + Double_t fNominalZd; // [deg] Nominal zenith distance 45 // + Double_t fNominalAz; // [deg] Nominal azimuth 46 // 47 // + Float_t fCameraCenterX; // [CCD pix] PMT Camera center found 48 // + Float_t fCameraCenterY; // [CCD pix] PMT Camera center found 49 // 50 // + UInt_t fNumIdentifiedStars; // Number of stars identified by starguider algorithm 51 // 52 // + Double_t fSkyBrightness; // [au] Sky Brightness as calcualted from the CCD image 53 // + Double_t fMjd; // Modified Julian Date matching the nominal position 40 54 // 41 55 ////////////////////////////////////////////////////////////////////////////// … … 43 57 44 58 #include "MLogManip.h" 59 60 #include "MAstro.h" 45 61 46 62 ClassImp(MReportStarguider); … … 53 69 // 54 70 MReportStarguider::MReportStarguider() : MReport("STARG-REPORT"), 55 fDevAz(0), fDevZd(0) 71 fDevAz(0), fDevZd(0), fNominalZd(0), fNominalAz(0), 72 fCameraCenterX(0), fCameraCenterY(0), fNumIdentifiedStars(0), 73 fSkyBrightness(0) 56 74 { 57 75 fName = "MReportStarguider"; … … 74 92 75 93 str.Remove(0, len); 94 str = str.Strip(TString::kBoth); 76 95 77 str = str.Strip(TString::kBoth); 96 if (ver < 200503170) 97 return str.IsNull() ? kTRUE : kCONTINUE; 98 99 MAstro::String2Angle(str, fNominalZd); // Nom Zd 100 MAstro::String2Angle(str, fNominalAz); // Nom Az 101 102 n=sscanf(str.Data(), "%f %f %d %lf %lf %n", 103 &fCameraCenterX, &fCameraCenterY, &fNumIdentifiedStars, 104 &fSkyBrightness, &fMjd, &len); 105 if (n!=5) 106 { 107 *fLog << warn << "WARNING - Not enough arguments." << endl; 108 return kCONTINUE; 109 } 110 111 str.Remove(0, len); 112 str = str.Strip(TString::kBoth); 78 113 79 114 return str.IsNull() ? kTRUE : kCONTINUE; … … 83 118 void MReportStarguider::Print(Option_t *o) const 84 119 { 85 *fLog << GetDescriptor() << ": DevZd=" << fDevZd << " DevAz=" << fDevAz << endl; 120 *fLog << GetDescriptor() << ":" << endl; 121 *fLog << " DevZd=" << fDevZd << " DevAz=" << fDevAz << endl; 122 *fLog << " NominalZd=" << fNominalZd << " NominalAz=" << fDevAz << " MJD=" << fMjd << endl; 123 *fLog << " CameraCenterX=" << fCameraCenterX << " CameraCenterY=" << fCameraCenterY << endl; 124 *fLog << " NumIdentifiedStars=" << fNumIdentifiedStars << endl; 125 *fLog << " NumIdentifiedStars=" << fNumIdentifiedStars << " SkyBrightness=" << fSkyBrightness << endl; 86 126 } -
trunk/MagicSoft/Mars/mreport/MReportStarguider.h
r5796 r6920 9 9 { 10 10 private: 11 Double_t fDevAz; // [deg] azimuth mispointing 12 Double_t fDevZd; // [deg] zenith mispointing 11 Double_t fDevAz; // [deg] azimuth mispointing 12 Double_t fDevZd; // [deg] zenith mispointing 13 14 Double_t fNominalZd; // [deg] Nominal zenith distance 15 Double_t fNominalAz; // [deg] Nominal azimuth 16 17 Float_t fCameraCenterX; // [CCD pix] PMT Camera center found 18 Float_t fCameraCenterY; // [CCD pix] PMT Camera center found 19 20 UInt_t fNumIdentifiedStars; // Number of stars identified by starguider algorithm 21 22 Double_t fSkyBrightness; // [au] Sky Brightness as calcualted from the CCD image 23 Double_t fMjd; // Modified Julian Date matching the nominal position 13 24 14 25 Int_t InterpreteBody(TString &str, Int_t ver); … … 20 31 Double_t GetDevZd() const { return fDevZd; } 21 32 33 Double_t GetNominalZd() const { return fNominalZd; } 34 Double_t GetNominalAz() const { return fNominalAz; } 35 36 Float_t GetCameraCenterX() const { return fCameraCenterX; } 37 Float_t GetCameraCenterY() const { return fCameraCenterY; } 38 39 UInt_t GetNumIdentifiedStars() const { return fNumIdentifiedStars; } 40 41 Double_t GetSkyBrightness() const { return fSkyBrightness; } 42 Double_t GetMjd() const { return fMjd; } 43 22 44 void Print(Option_t *o="") const; 23 45
Note:
See TracChangeset
for help on using the changeset viewer.