Changeset 9555 for trunk/MagicSoft/Cosy/main/MMoonPointing.cc
- Timestamp:
- 02/25/10 11:30:27 (16 years ago)
- File:
-
- 1 edited
-
trunk/MagicSoft/Cosy/main/MMoonPointing.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Cosy/main/MMoonPointing.cc
r9554 r9555 128 128 const Double_t fcos = const_cast<TGraph2D&>(fCos).Interpolate(moon.Az(), moon.Zd()); 129 129 const Double_t fsin = const_cast<TGraph2D&>(fSin).Interpolate(moon.Az(), moon.Zd()); 130 if (fcos*fcos + fsin*fsin<0.98) 130 131 // This is a sanity check for the case the Interpolation failed 132 const Double_t norm = TMath::Hypot(fcos, fsin); 133 if (TMath::Abs(norm-1)<0.001) 131 134 return kFALSE; 135 136 // Just a small numerical improvement 137 fsin /= norm; 138 fcos /= norm; 132 139 133 140 // Calculate Moon Shadow Position:
Note:
See TracChangeset
for help on using the changeset viewer.
