Changeset 9554 for trunk/MagicSoft/Cosy/main
- Timestamp:
- 02/25/10 11:26:20 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MMoonPointing.cc
r9551 r9554 119 119 Bool_t MMoonPointing::CalcPosition(const ZdAz &moon, ZdAz &srcpos, ZdAz &pointpos) const 120 120 { 121 // Avoid unnecessary calculations 122 if (fOffsetShadow==0) 123 { 124 pointpos = srcpos = moon; 125 return kTRUE; 126 } 127 121 128 const Double_t fcos = const_cast<TGraph2D&>(fCos).Interpolate(moon.Az(), moon.Zd()); 122 129 const Double_t fsin = const_cast<TGraph2D&>(fSin).Interpolate(moon.Az(), moon.Zd()); … … 133 140 return kFALSE; 134 141 142 // Avoid unnecessary calculations 143 if (fOffsetWobble==0) 144 { 145 pointpos = srcpos; 146 return kTRUE; 147 } 148 135 149 // Calaculate Telescope pointing position: 136 150 const MPositionOffsetCalc calc2(fOffsetWobble, cs, sn);
Note:
See TracChangeset
for help on using the changeset viewer.