Ignore:
Timestamp:
02/25/10 11:26:20 (15 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Cosy/main/MMoonPointing.cc

    r9551 r9554  
    119119Bool_t MMoonPointing::CalcPosition(const ZdAz &moon, ZdAz &srcpos, ZdAz &pointpos) const
    120120{
     121    // Avoid unnecessary calculations
     122    if (fOffsetShadow==0)
     123    {
     124        pointpos = srcpos = moon;
     125        return kTRUE;
     126    }
     127
    121128    const Double_t fcos = const_cast<TGraph2D&>(fCos).Interpolate(moon.Az(), moon.Zd());
    122129    const Double_t fsin = const_cast<TGraph2D&>(fSin).Interpolate(moon.Az(), moon.Zd());
     
    133140        return kFALSE;
    134141
     142    // Avoid unnecessary calculations
     143    if (fOffsetWobble==0)
     144    {
     145        pointpos = srcpos;
     146        return kTRUE;
     147    }
     148
    135149    // Calaculate Telescope pointing position:
    136150    const MPositionOffsetCalc calc2(fOffsetWobble, cs, sn);
Note: See TracChangeset for help on using the changeset viewer.