Changeset 6920


Ignore:
Timestamp:
04/08/05 13:33:12 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mreport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreport/MReportStarguider.cc

    r5796 r6920  
    1616!
    1717!
     18!   Author(s): Benjamin Riegel, 01/2005 <mailto:riegel@astro.uni-wuerzburg.de>
    1819!   Author(s): Thomas Bretz, 11/2003 <mailto:tbretz@astro.uni-wuerzburg.de>
    19 !              Benjamin Riegel, 01/2005 <mailto:riegel@astro.uni-wuerzburg.de>
    2020!
    2121!   Copyright: MAGIC Software Development, 2000-2005
     
    3434//
    3535//
     36// Class Version 1:
     37// ----------------
     38//  + Double_t fDevAz;          // [deg]   azimuth mispointing
     39//  + Double_t fDevZd;          // [deg]   zenith  mispointing
    3640//
    37 // Double_t fDevAz;          // [deg]   azimuth mispointing
    38 // Double_t fDevZd;          // [deg]   zenith  mispointing
    3941//
     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
    4054//
    4155//////////////////////////////////////////////////////////////////////////////
     
    4357
    4458#include "MLogManip.h"
     59
     60#include "MAstro.h"
    4561
    4662ClassImp(MReportStarguider);
     
    5369//
    5470MReportStarguider::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)
    5674{
    5775    fName  = "MReportStarguider";
     
    7492
    7593    str.Remove(0, len);
     94    str = str.Strip(TString::kBoth);
    7695
    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);
    78113
    79114    return str.IsNull() ? kTRUE : kCONTINUE;
     
    83118void MReportStarguider::Print(Option_t *o) const
    84119{
    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;
    86126}
  • trunk/MagicSoft/Mars/mreport/MReportStarguider.h

    r5796 r6920  
    99{
    1010private:
    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
    1324
    1425    Int_t InterpreteBody(TString &str, Int_t ver);
     
    2031    Double_t GetDevZd() const { return fDevZd; }
    2132
     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
    2244    void Print(Option_t *o="") const;
    2345
Note: See TracChangeset for help on using the changeset viewer.