Changeset 7028 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 05/13/05 15:28:58 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
r6992 r7028 291 291 //-------------------------------------------- 292 292 293 // pos0[3] = TMath::Cos(theta0) 294 295 const Double_t YC0 = TMath::Cos(theta0)*TMath::Tan(theta)*TMath::Cos(phi-phi0) - TMath::Sin(theta0); 296 const Double_t YC1 = TMath::Cos(theta0) + TMath::Sin(theta0)*TMath::Tan(theta); 297 const Double_t YC = YC0 / YC1; 298 299 //-------------------------------------------- 300 301 const Double_t XC0 = TMath::Cos(theta0) - YC*TMath::Sin(theta0); 302 const Double_t XC = -TMath::Sin(phi-phi0) * TMath::Tan(theta) * XC0; 293 /* --- OLD --- 294 const Double_t YC0 = TMath::Cos(theta0)*TMath::Tan(theta)*TMath::Cos(phi-phi0) - TMath::Sin(theta0); 295 const Double_t YC1 = TMath::Cos(theta0) + TMath::Sin(theta0)*TMath::Tan(theta); 296 const Double_t YC = YC0 / YC1; 297 298 const Double_t XC0 = TMath::Cos(theta0) - YC*TMath::Sin(theta0); 299 const Double_t XC = -TMath::Sin(phi-phi0) * TMath::Tan(theta) * XC0; 300 */ 301 302 /* --- NEW --- */ 303 const Double_t XC0 = TMath::Sin(theta)*TMath::Sin(phi-phi0); 304 const Double_t XC1 = TMath::Cos(theta0)*TMath::Cos(theta); 305 const Double_t XC2 = TMath::Sin(theta0)*TMath::Sin(theta)*TMath::Cos(phi-phi0); 306 307 const Double_t YC0 = TMath::Sin(theta0)*TMath::Cos(theta); 308 const Double_t YC1 = TMath::Cos(theta0)*TMath::Sin(theta)*TMath::Cos(phi-phi0); 309 310 const Double_t XC = - XC0 / (XC1 + XC2); 311 const Double_t YC = (-YC0+YC1) / (XC1 + XC2); 303 312 304 313 //--------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.