Ignore:
Timestamp:
08/03/04 14:28:49 (20 years ago)
Author:
stark
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mtemp/meth/MFindStars.cc

    r4415 r4441  
    279279    const Double_t ra  = fAstro.Hms2Rad(fSrcRaHour,fSrcRaMin, fSrcRaSec);
    280280    const Double_t dec = fAstro.Dms2Rad(fSrcDecDeg, fSrcDecMin, fSrcDecSec);
     281    cout << "----------------------------FindStars,pos = "<<ra<<" , "<<dec<<" , "<<fSrcRaHour<<endl;
    281282    // Magnitude up to which the stars are loaded from the catalog
    282283    fAstroCamera->SetLimMag(6);
     
    10161017  else
    10171018    srcpos->SetY(starposy[magi1] - dist->Z()*abs(sin(sigma)));
    1018 
    10191019  return kTRUE;
    10201020}
    10211021
    10221022
    1023 void MFindStars::DistBetweenStars(TVector2 *star1, TVector2 *star2, TVector2 *source, TVector3 *dist)
     1023Bool_t MFindStars::DistBetweenStars(TVector2 *star1, TVector2 *star2, TVector2 *source, TVector3 *dist)
    10241024{
    10251025  dist->SetX(sqrt(abs((source->X()-star2->X())*(source->X()-star2->X())+(source->Y()-star2->Y())*(source->Y()-star2->Y()))));
    10261026  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.