Changeset 2566 for trunk/MagicSoft/Mars/mreport
- Timestamp:
- 11/24/03 01:34:31 (21 years ago)
- Location:
- trunk/MagicSoft/Mars/mreport
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mreport/MReport.h
r2557 r2566 41 41 const TString &GetIdentifier() const { return fIdentifier; } 42 42 43 Byte_t GetState() const { return fState; } 44 43 45 ClassDef(MReport, 1) // Base class for control reports 44 46 }; -
trunk/MagicSoft/Mars/mreport/MReportDrive.cc
r2557 r2566 71 71 return str.IsNull(); 72 72 } 73 74 Double_t MReportDrive::GetAbsError() const 75 { 76 const Double_t pzd = fNominalZd*TMath::DegToRad(); 77 const Double_t azd = fErrorZd *TMath::DegToRad(); 78 const Double_t aaz = fErrorAz *TMath::DegToRad(); 79 80 const double el = TMath::Pi()/2-pzd; 81 82 const double dphi2 = aaz/2.; 83 const double cos2 = cos(dphi2)*cos(dphi2); 84 const double sin2 = sin(dphi2)*sin(dphi2); 85 const double d = cos(azd)*cos2 - cos(2*el)*sin2; 86 87 // 88 // Original: 89 // cos(Zd1)*cos(Zd2)+sin(Zd1)*sin(Zd2)*cos(dAz) 90 // 91 // Correct: 92 // const double d = cos(azd)*cos2 - cos(el1+el2)*sin2; 93 // 94 // Estimated: 95 // const double d = cos(azd)*cos2 - cos(2*el)*sin2; 96 // 97 98 return acos(d)*TMath::RadToDeg(); 99 } -
trunk/MagicSoft/Mars/mreport/MReportDrive.h
r2557 r2566 28 28 Bool_t InterpreteBody(TString &str); 29 29 30 Double_t GetMjd() const 30 Double_t GetMjd() const { return fMjd; } 31 31 32 Double_t GetRa() const 33 Double_t GetDec() const 34 Double_t GetHa() const 32 Double_t GetRa() const { return fRa; } 33 Double_t GetDec() const { return fDec; } 34 Double_t GetHa() const { return fHa; } 35 35 36 37 Double_t GetNominalAz() const 38 Double_t GetCurrentZd() const 39 Double_t GetCurrentAz() const 36 Double_t GetNominalZd() const { return fNominalZd; } 37 Double_t GetNominalAz() const { return fNominalAz; } 38 Double_t GetCurrentZd() const { return fCurrentZd; } 39 Double_t GetCurrentAz() const { return fCurrentAz; } 40 40 41 Double_t GetErrorZd() const { return fErrorZd; } 42 Double_t GetErrorAz() const { return fErrorAz; } 41 Double_t GetErrorZd() const { return fErrorZd; } 42 Double_t GetErrorAz() const { return fErrorAz; } 43 44 Double_t GetAbsError() const; 43 45 44 46 ClassDef(MReportDrive, 1) // Base class for control reports
Note:
See TracChangeset
for help on using the changeset viewer.