Changeset 18580


Ignore:
Timestamp:
09/06/16 10:35:30 (8 years ago)
Author:
tbretz
Message:
Added SetupFits to be able to read the container from a fits file.
Location:
trunk/Mars/mpointing
Files:
2 edited

Legend:

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

    r8912 r18580  
    3434#include "MSrcPosCam.h"
    3535
    36 #include <fstream>
     36#include "fits.h"
    3737
    3838#include <TMarker.h>
     
    172172    out << "   " << GetUniqueName() << ".SetXY(" << fX << ", " << fY << ");" << endl;
    173173}
     174
     175Bool_t MSrcPosCam::SetupFits(fits &fin)
     176{
     177    if (!fin.SetRefAddress(Form("%s.fX", fName.Data()), fX)) return kFALSE;
     178    if (!fin.SetRefAddress(Form("%s.fY", fName.Data()), fY)) return kFALSE;
     179
     180    return kTRUE;
     181}
  • trunk/Mars/mpointing/MSrcPosCam.h

    r14447 r18580  
    88#include <TMath.h>
    99
     10class fits;
    1011class TVector2;
    1112
     
    4344    //void AsciiWrite(ofstream &fout) const;
    4445
     46    Bool_t SetupFits(fits &fin);
     47
    4548    ClassDef(MSrcPosCam, 1) // container to store source position in the camera plain
    4649};
Note: See TracChangeset for help on using the changeset viewer.