Ignore:
Timestamp:
07/25/05 18:44:24 (19 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/mpointing
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/mpointing/MPointingDev.h

    r7203 r7220  
    44#ifndef MARS_MParContainer
    55#include "MParContainer.h"
     6#endif
     7#ifndef ROOT_TVector2
     8#include <TVector2.h>
    69#endif
    710
     
    1114    Double_t fDevZd;  // [deg] Pointing offset zenith distance as calculated from starguider data
    1215    Double_t fDevAz;  // [deg] Pointing offset azimuth as calculated from starguider dat
     16
     17    Double_t fDevX;   // [mm]
     18    Double_t fDevY;   // [mm]
    1319
    1420public:
     
    2026
    2127    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; }
    2229
    2330    Double_t GetDevZd() const  { return fDevZd; }
    2431    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); }
    2537
    2638    Double_t GetDevZdRad() const  { return fDevZd*TMath::DegToRad(); }
  • trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc

    r7214 r7220  
    176176    }
    177177
     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
    178190    // Linear starguider calibration taken from April/May data
    179191    // 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
    194196    fSkip[0]++;
    195197
  • trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc

    r7216 r7220  
    371371    if (fDeviation)
    372372    {
    373         vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
     373        //vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
    374374        pos0.SetZdAz(pos0.Theta()-fDeviation->GetDevZdRad(),
    375375                     pos0.Phi()  -fDeviation->GetDevAzRad());
     
    378378    // Calculate source position in camera, and convert to mm:
    379379    TVector2 v = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
     380
     381    if (fDeviation)
     382        v -= fDeviation->GetDevXY();
     383
    380384    SetSrcPos(v);
    381385
Note: See TracChangeset for help on using the changeset viewer.