Ignore:
Timestamp:
12/01/10 09:35:50 (14 years ago)
Author:
tbretz
Message:
Propagate the TPoint file name to the output in telesto.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosy/tpoint/TPointStar.h

    r9952 r10066  
    22#define COSY_TPointStar
    33
    4 #ifndef ROOT_TObject
    5 #include <TObject.h>
     4#ifndef ROOT_TNamed
     5#include <TNamed.h>
    66#endif
    77
     
    1414class MPointing;
    1515
    16 class TPointStar : public TObject
     16class TPointStar : public TNamed
    1717{
    1818    friend istream &operator>>(istream &fin,  TPointStar &set);
     
    2626
    2727    Double_t fMag;
     28
     29    void Init(const char *name=0, const char *title=0);
    2830public:
    29     TPointStar(Double_t sel=0, Double_t saz=0, Double_t rel=0, Double_t raz=0);/*
    30         fStarAz(saz*TMath::DegToRad()),
    31         fStarEl(sel*TMath::DegToRad()),
    32         fRawAz(raz*TMath::DegToRad()),
    33         fRawEl(rel*TMath::DegToRad()), fMag(-25)
    34     {
    35     }*/
    36 
    37     Double_t GetMag() const { return fMag; }
    38     Double_t GetResidual(Double_t *err=0) const;
    39     //Double_t GetResidual() const;
    40 
    41     void operator=(TPointStar &set)
     31    TPointStar(const char *name, const char *title=0) { Init(name, title); }
     32    TPointStar(Double_t sel=0, Double_t saz=0, Double_t rel=0, Double_t raz=0);
     33    TPointStar(const TPointStar &set) : TNamed(set)
    4234    {
    4335        fStarAz = set.fStarAz;
     
    4739        fMag    = set.fMag;
    4840    }
     41
     42    Double_t GetMag() const { return fMag; }
     43    Double_t GetResidual(Double_t *err=0) const;
     44    //Double_t GetResidual() const;
    4945
    5046    Double_t GetDEl() const;//     { return (fRawEl-fStarEl)*TMath::RadToDeg(); }
Note: See TracChangeset for help on using the changeset viewer.