Changeset 3487 for trunk/MagicSoft/Mars/mastro
- Timestamp:
- 03/12/04 16:07:58 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mastro
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstroCamera.cc
r3457 r3487 286 286 mean *= 1./num; 287 287 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))); 289 289 } 290 290 } -
trunk/MagicSoft/Mars/mastro/MAstroCatalog.cc
r3478 r3487 468 468 // return; 469 469 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()); 472 472 473 473 Int_t idx[] = {1, 1, 1, 1}; … … 568 568 } 569 569 570 void MAstroCatalog::DrawStar(Double_t x, Double_t y, const TVector3 &v, Bool_t transparent )570 void MAstroCatalog::DrawStar(Double_t x, Double_t y, const TVector3 &v, Bool_t transparent, const char *txt) 571 571 { 572 572 const Double_t ra = v.Phi()*TMath::RadToDeg()/15; … … 577 577 str += Form(" Dec=%.1fd", dec); 578 578 str += Form(" Mag=%.1f", -2.5*log10(v.Mag())); 579 if (txt) 580 str += Form(" (%s)", txt); 579 581 580 582 // draw star on the camera display -
trunk/MagicSoft/Mars/mastro/MAstroCatalog.h
r3457 r3487 87 87 Float_t atof(const TString &s); 88 88 89 //#if ROOT_VERSION_CODE < ROOT_VERSION(4,00,03) 89 90 Bool_t fPlainScreen; //! Just a dummy!!!! ([Set,Is]Freezed) 91 //#endif 90 92 91 93 protected: … … 110 112 void Draw(const TVector2 &v0, const TRotation &rot, TArrayI &dx, TArrayI &dy, Int_t stepx, Int_t stepy, Int_t type); 111 113 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); 113 115 void Paint(Option_t *o=""); 114 116 Int_t DistancetoPrimitive(Int_t px, Int_t py); … … 173 175 void SetGuiActive(Bool_t b=kTRUE) { b ? SetBit(kGuiActive) : ResetBit(kGuiActive); } 174 176 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 176 178 Bool_t IsPlainScreen() const { return TestBit(kPlainScreen); } 177 179
Note:
See TracChangeset
for help on using the changeset viewer.