Changeset 7220 for trunk/MagicSoft/Mars/mpointing
- Timestamp:
- 07/25/05 18:44:24 (20 years ago)
- Location:
- trunk/MagicSoft/Mars/mpointing
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mpointing/MPointingDev.h
r7203 r7220 4 4 #ifndef MARS_MParContainer 5 5 #include "MParContainer.h" 6 #endif 7 #ifndef ROOT_TVector2 8 #include <TVector2.h> 6 9 #endif 7 10 … … 11 14 Double_t fDevZd; // [deg] Pointing offset zenith distance as calculated from starguider data 12 15 Double_t fDevAz; // [deg] Pointing offset azimuth as calculated from starguider dat 16 17 Double_t fDevX; // [mm] 18 Double_t fDevY; // [mm] 13 19 14 20 public: … … 20 26 21 27 void SetDevZdAz(Double_t devzd, Double_t devaz) { fDevZd=devzd; fDevAz=devaz; } 28 void SetDevXY(Double_t dx, Double_t dy) { fDevX=dx; fDevY=dy; } 22 29 23 30 Double_t GetDevZd() const { return fDevZd; } 24 31 Double_t GetDevAz() const { return fDevAz; } 32 33 Double_t GetDevX() const { return fDevX; } 34 Double_t GetDevY() const { return fDevY; } 35 36 TVector2 GetDevXY() const { return TVector2(fDevX, fDevY); } 25 37 26 38 Double_t GetDevZdRad() const { return fDevZd*TMath::DegToRad(); } -
trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc
r7214 r7220 176 176 } 177 177 178 // Calculate absolute deviation 179 const Double_t dev = MAstro::GetDevAbs(fReport->GetNominalZd(), devzd, devaz); 180 181 // Sanity check... larger deviation are strange and ignored 182 if (dev*60>fMaxAbsDev) 183 { 184 fSkip[4]++; 185 return kTRUE; 186 } 187 188 fDeviation->SetDevZdAz(devzd, devaz); 189 178 190 // Linear starguider calibration taken from April/May data 179 191 // For calibration add MDriveReport::GetErrorZd/Az ! 180 devzd -= 2.686/60; // 1arcmin ~ 5mm 181 devaz -= 2.840/60; 182 183 // Calculate absolute deviation 184 const Double_t dev = MAstro::GetDevAbs(fReport->GetNominalZd(), devzd, devaz); 185 186 // Sanity check... larger deviation are strange and ignored 187 if (dev*60>fMaxAbsDev) 188 { 189 fSkip[4]++; 190 return kTRUE; 191 } 192 193 fDeviation->SetDevZdAz(devzd, devaz); 192 fDeviation->SetDevXY(-7.0, 16); 193 //devzd -= 2.686/60; // 1arcmin ~ 5mm 194 //devaz -= 2.840/60; 195 194 196 fSkip[0]++; 195 197 -
trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
r7216 r7220 371 371 if (fDeviation) 372 372 { 373 vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;373 //vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000; 374 374 pos0.SetZdAz(pos0.Theta()-fDeviation->GetDevZdRad(), 375 375 pos0.Phi() -fDeviation->GetDevAzRad()); … … 378 378 // Calculate source position in camera, and convert to mm: 379 379 TVector2 v = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000; 380 381 if (fDeviation) 382 v -= fDeviation->GetDevXY(); 383 380 384 SetSrcPos(v); 381 385
Note:
See TracChangeset
for help on using the changeset viewer.