Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7223)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7224)
@@ -20,4 +20,20 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2005/07/27 Thomas Bretz
+
+   * mhflux/MAlphaFitter.cc:
+     - added a line at the cut value to PaintResults
+
+   * mhflux/MHDisp.cc:
+     - replaced GetCosDelta/GetSinDelta by new GetNormAxis
+
+   * mhist/MHRate.cc:
+     - replaced some warn by err
+
+   * mimage/MHillas.[h,cc]:
+     - added new member function GetNormAxis
+
+
 
  2005/07/26 Daniela Dorner
Index: trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc	(revision 7223)
+++ trunk/MagicSoft/Mars/mhflux/MAlphaFitter.cc	(revision 7224)
@@ -45,5 +45,7 @@
 #include <TRandom.h>
 
+#include <TLine.h>
 #include <TLatex.h>
+#include <TVirtualPad.h>
 
 #include "MMath.h"
@@ -274,4 +276,8 @@
     text.SetTextSize(size);
     text.Paint();
+
+    TLine line;
+    line.SetLineColor(14);
+    line.PaintLine(m, gPad->GetUymin(), m, gPad->GetUymax());
 }
 
Index: trunk/MagicSoft/Mars/mhflux/MHDisp.cc
===================================================================
--- trunk/MagicSoft/Mars/mhflux/MHDisp.cc	(revision 7223)
+++ trunk/MagicSoft/Mars/mhflux/MHDisp.cc	(revision 7224)
@@ -153,8 +153,6 @@
 
     // Vector of length disp in direction of shower
-    const TVector2 p(hil->GetCosDelta(), hil->GetSinDelta());
-
     // Move origin of vector to center-of-gravity of shower and derotate
-    TVector2 pos1 = hil->GetMean()*fMm2Deg + p*fDisp->GetVal();
+    TVector2 pos1 = hil->GetMean()*fMm2Deg + hil->GetNormAxis()*fDisp->GetVal();
 
     Double_t w0 = 1;
Index: trunk/MagicSoft/Mars/mhist/MHRate.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHRate.cc	(revision 7223)
+++ trunk/MagicSoft/Mars/mhist/MHRate.cc	(revision 7224)
@@ -32,5 +32,4 @@
 #include "MHRate.h"
 
-#include <TPad.h>
 #include <TCanvas.h>
 #include <TGaxis.h>
@@ -123,5 +122,5 @@
     if (!fEvtRate)
     {
-        *fLog << warn << "MEventRate not found... abort." << endl;
+        *fLog << err << "MEventRate not found... abort." << endl;
         return kFALSE;
     }
@@ -129,5 +128,5 @@
     if (!fPointPos)
     {
-        *fLog << warn << "MPointingPos not found... abort." << endl;
+        *fLog << err << "MPointingPos not found... abort." << endl;
         return kFALSE;
     }
Index: trunk/MagicSoft/Mars/mimage/MHillas.cc
===================================================================
--- trunk/MagicSoft/Mars/mimage/MHillas.cc	(revision 7223)
+++ trunk/MagicSoft/Mars/mimage/MHillas.cc	(revision 7224)
@@ -118,4 +118,14 @@
 // --------------------------------------------------------------------------
 //
+//  return the direction of the main axis (normalized). The main axis
+//  always has the direction  -->  x>0
+//
+TVector2 MHillas::GetNormAxis() const
+{
+    return TVector2(fCosDelta, fSinDelta);
+}
+
+// --------------------------------------------------------------------------
+//
 //  Analytical estimation of length of border line:
 //    U = pi*(a+b - sqrt(a*b))
Index: trunk/MagicSoft/Mars/mimage/MHillas.h
===================================================================
--- trunk/MagicSoft/Mars/mimage/MHillas.h	(revision 7223)
+++ trunk/MagicSoft/Mars/mimage/MHillas.h	(revision 7224)
@@ -46,4 +46,5 @@
 
     TVector2 GetMean() const;
+    TVector2 GetNormAxis() const;
 
     Double_t GetBorderLine() const;
