Changeset 4441
- Timestamp:
- 08/03/04 14:28:49 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mtemp/meth/MFindStars.cc
r4415 r4441 279 279 const Double_t ra = fAstro.Hms2Rad(fSrcRaHour,fSrcRaMin, fSrcRaSec); 280 280 const Double_t dec = fAstro.Dms2Rad(fSrcDecDeg, fSrcDecMin, fSrcDecSec); 281 cout << "----------------------------FindStars,pos = "<<ra<<" , "<<dec<<" , "<<fSrcRaHour<<endl; 281 282 // Magnitude up to which the stars are loaded from the catalog 282 283 fAstroCamera->SetLimMag(6); … … 1016 1017 else 1017 1018 srcpos->SetY(starposy[magi1] - dist->Z()*abs(sin(sigma))); 1018 1019 1019 return kTRUE; 1020 1020 } 1021 1021 1022 1022 1023 voidMFindStars::DistBetweenStars(TVector2 *star1, TVector2 *star2, TVector2 *source, TVector3 *dist)1023 Bool_t MFindStars::DistBetweenStars(TVector2 *star1, TVector2 *star2, TVector2 *source, TVector3 *dist) 1024 1024 { 1025 1025 dist->SetX(sqrt(abs((source->X()-star2->X())*(source->X()-star2->X())+(source->Y()-star2->Y())*(source->Y()-star2->Y())))); 1026 1026 dist->SetY(sqrt(abs((star1->X()-star2->X())*(star1->X()-star2->X())+(star1->Y()-star2->Y())*(star1->Y()-star2->Y())))); 1027 dist->SetZ(sqrt(abs(source->X()-star1->X())*(source->X()-star1->X())+(source->Y()-star1->Y())*(source->Y()-star1->Y()))); 1028 1029 } 1027 dist->SetZ(sqrt(abs((source->X()-star1->X())*(source->X()-star1->X())+(source->Y()-star1->Y())*(source->Y()-star1->Y())))); 1028 return kTRUE; 1029 1030 }
Note:
See TracChangeset
for help on using the changeset viewer.