Ignore:
Timestamp:
03/12/04 16:07:58 (21 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mastro
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mastro/MAstroCamera.cc

    r3457 r3487  
    286286        mean *= 1./num;
    287287
    288         DrawStar(mean(1), mean(0), *radec, !hasmean);
     288        DrawStar(mean(1), mean(0), *radec, !hasmean, Form("x=%.1fmm y=%.1fmm", mean(1), mean(0)));
    289289    }
    290290}
  • trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc

    r3478 r3487  
    468468    //        return;
    469469
    470     const Int_t v0x = (int)(v0.X()*TMath::RadToDeg());
    471     const Int_t v0y = (int)(v0.Y()*TMath::RadToDeg());
     470    //    const Int_t v0x = (int)(v0.X()*TMath::RadToDeg());
     471    //    const Int_t v0y = (int)(v0.Y()*TMath::RadToDeg());
    472472
    473473    Int_t idx[] = {1, 1, 1, 1};
     
    568568}
    569569
    570 void MAstroCatalog::DrawStar(Double_t x, Double_t y, const TVector3 &v, Bool_t transparent)
     570void MAstroCatalog::DrawStar(Double_t x, Double_t y, const TVector3 &v, Bool_t transparent, const char *txt)
    571571{
    572572    const Double_t ra  = v.Phi()*TMath::RadToDeg()/15;
     
    577577    str += Form("  Dec=%.1fd", dec);
    578578    str += Form("  Mag=%.1f", -2.5*log10(v.Mag()));
     579    if (txt)
     580        str += Form("  (%s)", txt);
    579581
    580582    // draw star on the camera display
  • trunk/MagicSoft/Mars/mastro/MAstroCatalog.h

    r3457 r3487  
    8787    Float_t atof(const TString &s);
    8888
     89//#if ROOT_VERSION_CODE < ROOT_VERSION(4,00,03)
    8990    Bool_t fPlainScreen;  //! Just a dummy!!!! ([Set,Is]Freezed)
     91//#endif
    9092
    9193protected:
     
    110112    void  Draw(const TVector2 &v0, const TRotation &rot, TArrayI &dx, TArrayI &dy, Int_t stepx, Int_t stepy, Int_t type);
    111113    void  DrawNet(const TVector2 &v0, const TRotation &rot, Int_t type);
    112     void  DrawStar(Double_t x, Double_t y, const TVector3 &v, Bool_t t);
     114    void  DrawStar(Double_t x, Double_t y, const TVector3 &v, Bool_t t, const char *txt=0);
    113115    void  Paint(Option_t *o="");
    114116    Int_t DistancetoPrimitive(Int_t px, Int_t py);
     
    173175    void SetGuiActive(Bool_t b=kTRUE)        { b ? SetBit(kGuiActive) : ResetBit(kGuiActive); }
    174176
    175     void   SetPlainScreen(Bool_t b=kTRUE)    { b ? SetBit(kPlainScreen) : ResetBit(kPlainScreen); Update(); } // *TOGGLE*
     177    void   SetPlainScreen(Bool_t b=kTRUE)    { b ? SetBit(kPlainScreen) : ResetBit(kPlainScreen); Update(); } // *TOGGLE* *GETTER=IsPlainScreen
    176178    Bool_t IsPlainScreen() const             { return TestBit(kPlainScreen); }
    177179
Note: See TracChangeset for help on using the changeset viewer.