Changeset 12734 for trunk/Mars/mreport


Ignore:
Timestamp:
12/22/11 15:46:19 (13 years ago)
Author:
tbretz
Message:
added SetupReadingFits and InterpreteFits
Location:
trunk/Mars/mreport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mreport/MReportDrive.cc

    r9470 r12734  
    6666#include "MReportDrive.h"
    6767
     68#include "fits.h"
     69
    6870#include "MLogManip.h"
    6971
     
    8486    fName  = "MReportDrive";
    8587    fTitle = "Class for DRIVE-REPORT information (raw telescope position)";
     88}
     89
     90Bool_t MReportDrive::SetupReadingFits(std::fits &file)
     91{
     92    return
     93        file.SetRefAddress("Ra",  fRa)  &&
     94        file.SetRefAddress("Dec", fDec) &&
     95        file.SetRefAddress("Ha",  fHa)  &&
     96        file.SetRefAddress("Az",  fNominalAz) &&
     97        file.SetRefAddress("Zd",  fNominalZd) &&
     98        file.SetRefAddress("dAz", fErrorAz)   &&
     99        file.SetRefAddress("dZd", fErrorZd);
     100}
     101
     102Int_t MReportDrive::InterpreteFits(const std::fits &fits)
     103{
     104    fCurrentZd = fNominalZd + fErrorZd;
     105    fCurrentAz = fNominalAz + fErrorAz;
     106
     107    return kTRUE;
    86108}
    87109
  • trunk/Mars/mreport/MReportDrive.h

    r4840 r12734  
    2323    Double_t fErrorAz;    // [deg] sistem error in the azimuth angle axis
    2424
    25     Int_t InterpreteBody(TString &str, Int_t ver);
     25    Bool_t SetupReadingFits(std::fits &fits);
     26    Int_t  InterpreteFits(const std::fits &fits);
     27    Int_t  InterpreteBody(TString &str, Int_t ver);
    2628
    2729public:
Note: See TracChangeset for help on using the changeset viewer.