Ignore:
Timestamp:
05/22/06 17:51:33 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mreport
Files:
4 edited

Legend:

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

    r7719 r7726  
    123123//    200510250  | 53801.5 | 53813.5 |  200603080
    124124//    200510250  | 53813.5 |         |  200603190
     125//    200604010  | 53863.5 |         |  200605080
    125126//
    126127Int_t MReport::Interprete(TString &str, const MTime &start, const MTime &stop, Int_t ver)
     
    153154        ver=200603190;
    154155
     156    if (ver==200604010 && GetMjd()>53864.5)
     157        ver=200605080;
     158
    155159    // Interprete body (contents) of report
    156160    const Int_t rc = InterpreteBody(str, ver);
  • trunk/MagicSoft/Mars/mreport/MReportCC.cc

    r7723 r7726  
    261261            continue;
    262262
     263        if (n==0 && i==0)
     264        {
     265            *fLog << inf << "Receiver Board Temperatures empty." << endl;
     266            fRecTemp->Invalidate();
     267            break;
     268        }
     269
    263270        *fLog << warn << "WARNING - Reading Receiver Board Temperature information." << endl;
    264271        return kFALSE;
     
    286293    if (str.BeginsWith("RECEIVERS-COM-ERROR"))
    287294    {
     295        *fLog << inf << "Receiver Com-error... threshold setting and receiver board temp. invalid." << endl;
    288296        fTD->Invalidate();
    289297        fTH->Invalidate();
     298        fRecTemp->Invalidate();
    290299        str.Remove(0, 19);
    291300    }
     
    297306        if (!InterpreteTD(str, ver))
    298307            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    }
    304313
    305314    if (str.Strip(TString::kBoth)!=(TString)"OVER")
  • trunk/MagicSoft/Mars/mreport/MReportStarguider.cc

    r7639 r7726  
    5858//  + Double_t fMjd;                // Modified Julian Date matching the nominal position
    5959//
     60//
     61// Class Version 3:
     62// ----------------
     63//  + UInt_t   fNumCorrelatedStars; // Number of correlated stars identified by starguider algorithm
     64//
    6065//////////////////////////////////////////////////////////////////////////////
    6166#include "MReportStarguider.h"
     
    7378// Default constructor. Initialize identifier to "STARG-REPORT"
    7479//
    75 MReportStarguider::MReportStarguider() : MReport("STARG-REPORT"),
     80MReportStarguider::MReportStarguider() : MReport("STARG-REPORT")/*,
    7681    fDevAz(0), fDevZd(0), fNominalZd(0), fNominalAz(0),
    7782    fCameraCenterX(0), fCameraCenterY(0), fNumIdentifiedStars(0),
    78     fSkyBrightness(0)
     83    fNumCorrelatedStars(0), fSkyBrightness(0)*/
    7984{
    8085    fName  = "MReportStarguider";
    8186    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//
     95void 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;
    82110}
    83111
     
    146174    }
    147175
     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
    148192    return str.IsNull() ? kTRUE : kCONTINUE;
    149193}
  • trunk/MagicSoft/Mars/mreport/MReportStarguider.h

    r7202 r7726  
    2323
    2424    UInt_t   fNumIdentifiedStars; // Number of stars identified by starguider algorithm
     25    UInt_t   fNumCorrelatedStars; // Number of correlated stars identified by starguider algorithm
    2526
    2627    Double_t fSkyBrightness;      // [au] Sky Brightness as calcualted from the CCD image
     
    3132public:
    3233    MReportStarguider();
     34
     35    void Clear(Option_t *o="");
    3336
    3437    Double_t GetDevAz() const { return fDevAz; }
     
    4649
    4750    UInt_t   GetNumIdentifiedStars() const { return fNumIdentifiedStars; }
     51    UInt_t   GetNumCorrelatedStars() const { return fNumCorrelatedStars; }
    4852
    4953    Double_t GetSkyBrightness() const { return fSkyBrightness; }
     
    5256    void Print(Option_t *o="") const;
    5357
    54     ClassDef(MReportStarguider, 2) // Class for STARG-REPORT information
     58    ClassDef(MReportStarguider, 3) // Class for STARG-REPORT information
    5559};
    5660
Note: See TracChangeset for help on using the changeset viewer.