Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 9144)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 9145)
@@ -18,4 +18,13 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2008/10/29 Thomas Bretz
+
+   * mpointing/MSrcPosCalc.cc:
+     - return kERROR instead of kFALSE if source position is too far
+       away from the camera center
+     - DeltaPhi replaced by Angle to take declination into account
+
+
 
  2008/10/23 Daniel Hoehne-Moench
Index: /trunk/MagicSoft/Mars/NEWS
===================================================================
--- /trunk/MagicSoft/Mars/NEWS	(revision 9144)
+++ /trunk/MagicSoft/Mars/NEWS	(revision 9145)
@@ -44,4 +44,9 @@
      quite weak. Now sum events pass the calculation if and only if they
      have also a level 1 trigger.
+
+ ;ganymed
+
+   * If the source position is more than 1deg away from the camera
+     center an error is raised now.
 
 
Index: /trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc
===================================================================
--- /trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc	(revision 9144)
+++ /trunk/MagicSoft/Mars/mpointing/MSrcPosCalc.cc	(revision 9145)
@@ -439,7 +439,8 @@
     // source position given by the user. (Checking every individual
     // event is not the fastest, but the safest)
-    if (pos.DeltaPhi(pos0)*TMath::RadToDeg()>1)
-    {
-        *fLog << err << "ERROR - Defined source position deviates from pointing-ra/dec by more than 1deg!" << endl;
+    if (pos.Angle(pos0)*TMath::RadToDeg()>1)
+    {
+        *fLog << err << "ERROR - Defined source position deviates from pointing-ra/dec by more than 1deg (";
+        *fLog << pos.Angle(pos0) << ")!" << endl;
         *fLog << "User defined source pos:  ";
         fSourcePos->Print();
@@ -447,5 +448,5 @@
         fPointPos->Print();
 
-        return kFALSE;
+        return kERROR;
     }
 
