Index: trunk/MagicSoft/Mars/mpointing/MPointingDev.h
===================================================================
--- trunk/MagicSoft/Mars/mpointing/MPointingDev.h	(revision 7217)
+++ trunk/MagicSoft/Mars/mpointing/MPointingDev.h	(revision 7220)
@@ -4,4 +4,7 @@
 #ifndef MARS_MParContainer
 #include "MParContainer.h"
+#endif
+#ifndef ROOT_TVector2
+#include <TVector2.h>
 #endif
 
@@ -11,4 +14,7 @@
     Double_t fDevZd;  // [deg] Pointing offset zenith distance as calculated from starguider data
     Double_t fDevAz;  // [deg] Pointing offset azimuth as calculated from starguider dat
+
+    Double_t fDevX;   // [mm]
+    Double_t fDevY;   // [mm]
 
 public:
@@ -20,7 +26,13 @@
 
     void SetDevZdAz(Double_t devzd, Double_t devaz) { fDevZd=devzd; fDevAz=devaz; }
+    void SetDevXY(Double_t dx, Double_t dy) { fDevX=dx; fDevY=dy; }
 
     Double_t GetDevZd() const  { return fDevZd; }
     Double_t GetDevAz() const  { return fDevAz; }
+
+    Double_t GetDevX() const  { return fDevX; }
+    Double_t GetDevY() const  { return fDevY; }
+
+    TVector2 GetDevXY() const { return TVector2(fDevX, fDevY); }
 
     Double_t GetDevZdRad() const  { return fDevZd*TMath::DegToRad(); }
Index: trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc	(revision 7217)
+++ trunk/MagicSoft/Mars/mpointing/MPointingDevCalc.cc	(revision 7220)
@@ -176,20 +176,22 @@
     }
 
+    // Calculate absolute deviation
+    const Double_t dev = MAstro::GetDevAbs(fReport->GetNominalZd(), devzd, devaz);
+
+    // Sanity check... larger deviation are strange and ignored
+    if (dev*60>fMaxAbsDev)
+    {
+        fSkip[4]++;
+        return kTRUE;
+    }
+
+    fDeviation->SetDevZdAz(devzd, devaz);
+
     // Linear starguider calibration taken from April/May data
     // For calibration add MDriveReport::GetErrorZd/Az !
-    devzd -= 2.686/60;   // 1arcmin ~ 5mm
-    devaz -= 2.840/60;
-
-    // Calculate absolute deviation
-    const Double_t dev = MAstro::GetDevAbs(fReport->GetNominalZd(), devzd, devaz);
-
-    // Sanity check... larger deviation are strange and ignored
-    if (dev*60>fMaxAbsDev)
-    {
-        fSkip[4]++;
-        return kTRUE;
-    }
-
-    fDeviation->SetDevZdAz(devzd, devaz);
+    fDeviation->SetDevXY(-7.0, 16);
+    //devzd -= 2.686/60;   // 1arcmin ~ 5mm
+    //devaz -= 2.840/60;
+
     fSkip[0]++;
 
Index: trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
===================================================================
--- trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc	(revision 7217)
+++ trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc	(revision 7220)
@@ -371,5 +371,5 @@
     if (fDeviation)
     {
-        vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
+        //vx = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
         pos0.SetZdAz(pos0.Theta()-fDeviation->GetDevZdRad(),
                      pos0.Phi()  -fDeviation->GetDevAzRad());
@@ -378,4 +378,8 @@
     // Calculate source position in camera, and convert to mm:
     TVector2 v = CalcXYinCamera(pos0, pos)*fGeom->GetCameraDist()*1000;
+
+    if (fDeviation)
+        v -= fDeviation->GetDevXY();
+
     SetSrcPos(v);
 
