Ignore:
Timestamp:
07/19/05 11:04:43 (20 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mreport/MReportStarguider.cc

    r7005 r7196  
    127127}
    128128
     129Double_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}
    129144
    130145void MReportStarguider::Print(Option_t *o) const
Note: See TracChangeset for help on using the changeset viewer.