Changeset 7202 for trunk/MagicSoft/Mars/mastro
- Timestamp:
- 07/21/05 11:44:05 (19 years ago)
- Location:
- trunk/MagicSoft/Mars/mastro
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mastro/MAstro.cc
r7179 r7202 601 601 return v1.XYvector(); //TVector2(v1.Y(), -v1.X());//v1.XYvector(); 602 602 } 603 604 // -------------------------------------------------------------------------- 605 // 606 // Calculate the absolute misspointing from the nominal zenith angle nomzd 607 // and the deviations in zd (devzd) and az (devaz). 608 // All values given in deg, the return value, too. 609 // 610 Double_t MAstro::GetDevAbs(Double_t nomzd, Double_t devzd, Double_t devaz) 611 { 612 const Double_t pzd = nomzd * TMath::DegToRad(); 613 const Double_t azd = devzd * TMath::DegToRad(); 614 const Double_t aaz = devaz * TMath::DegToRad(); 615 616 const double el = TMath::Pi()/2-pzd; 617 618 const double dphi2 = aaz/2.; 619 const double cos2 = TMath::Cos(dphi2)*TMath::Cos(dphi2); 620 const double sin2 = TMath::Sin(dphi2)*TMath::Sin(dphi2); 621 const double d = TMath::Cos(azd)*cos2 - TMath::Cos(2*el)*sin2; 622 623 return TMath::ACos(d)*TMath::RadToDeg(); 624 } -
trunk/MagicSoft/Mars/mastro/MAstro.h
r7179 r7202 70 70 static Int_t GetMagicPeriod(Double_t mjd); 71 71 72 // Get distance between v1 and v0 in a plain perpendicular to v0 in distance dist 72 73 static TVector2 GetDistOnPlain(const TVector3 &v0, TVector3 v1, Double_t dist=1); 74 75 // Calculate absolute misspointing from error in zd and error in az 76 static Double_t GetDevAbs(Double_t nomzd, Double_t devzd, Double_t devaz); 73 77 74 78 ClassDef(MAstro, 0)
Note:
See TracChangeset
for help on using the changeset viewer.