Changeset 7196 for trunk/MagicSoft/Mars/mreport
- Timestamp:
- 07/19/05 11:04:43 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReportStarguider.cc
r7005 r7196 127 127 } 128 128 129 Double_t MReportStarguider::GetDevAbs() const 130 { 131 const Double_t pzd = fNominalZd * TMath::DegToRad(); 132 const Double_t azd = fDevZd/60 * TMath::DegToRad(); 133 const Double_t aaz = fDevAz/60 * TMath::DegToRad(); 134 135 const double el = TMath::Pi()/2-pzd; 136 137 const double dphi2 = aaz/2.; 138 const double cos2 = cos(dphi2)*cos(dphi2); 139 const double sin2 = sin(dphi2)*sin(dphi2); 140 const double d = cos(azd)*cos2 - cos(2*el)*sin2; 141 142 return acos(d)*TMath::RadToDeg()*60; 143 } 129 144 130 145 void MReportStarguider::Print(Option_t *o) const
Note:
See TracChangeset
for help on using the changeset viewer.