Changeset 18561 for trunk


Ignore:
Timestamp:
09/03/16 14:06:44 (8 years ago)
Author:
tbretz
Message:
Added a function to setup reading from a fits file SetupFits.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mpointing/MPointingPos.cc

    r8915 r18561  
    4141/////////////////////////////////////////////////////////////////////////////
    4242#include "MPointingPos.h"
     43
     44#include "fits.h"
    4345
    4446#include "MLog.h"
     
    144146    *fLog << GetDescriptor() << ": " << GetString(o) << endl;
    145147}
     148
     149Bool_t MPointingPos::SetupFits(fits &fin)
     150{
     151    if (!fin.SetRefAddress(Form("%s.fZd",  fName.Data()), fZd))  return kFALSE;
     152    if (!fin.SetRefAddress(Form("%s.fAz",  fName.Data()), fAz))  return kFALSE;
     153    if (!fin.SetRefAddress(Form("%s.fRa",  fName.Data()), fRa))  return kFALSE;
     154    if (!fin.SetRefAddress(Form("%s.fDec", fName.Data()), fDec)) return kFALSE;
     155    if (!fin.SetRefAddress(Form("%s.fHa",  fName.Data()), fHa))  return kFALSE;
     156
     157    return kTRUE;
     158}
Note: See TracChangeset for help on using the changeset viewer.