Index: trunk/MagicSoft/Mars/mhist/MHCamera.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 4300)
+++ trunk/MagicSoft/Mars/mhist/MHCamera.cc	(revision 4301)
@@ -69,4 +69,5 @@
 #include <TF1.h>
 #include <TCanvas.h>
+#include <TLegend.h>
 
 #include "MLog.h"
@@ -1664,4 +1665,5 @@
 // 6: Fit Inner and Outer pixels separately by a single Gaussian and display 
 //                 additionally the two camera halfs separately (for MAGIC camera)
+// 7: Single Gauss with TLegend to show the meaning of the colours
 //
 //
@@ -1708,5 +1710,5 @@
           inout[0]->SetDirectory(NULL);
           inout[1]->SetDirectory(NULL);
-          
+
           for (int i=0; i<2; i++)
             {
@@ -1716,9 +1718,6 @@
               inout[i]->Draw();
               inout[i]->Fit("gaus","Q");
-              /*
-              gPad->Modified();
-              gPad->Update();
-              gPad->SaveAs(Form("%s%s%i%s",GetName(),"AreaIdx",i,".eps"));
-              */
+              
+              
               if (fit == 6)
                 {
@@ -1778,4 +1777,6 @@
       halfInOut[2] = ProjectionS(s0, outer, "Sector 6-1-2 Outer");
       halfInOut[3] = ProjectionS(s1, outer, "Sector 3-4-5 Outer");
+
+      TLegend *leg = new TLegend(0.05,0.65,0.35,0.9);
       
       for (int i=0; i<4; i++)
@@ -1785,5 +1786,12 @@
           halfInOut[i]->SetBit(kCanDelete);
           halfInOut[i]->Draw("same");
+          leg->AddEntry(halfInOut[i],halfInOut[i]->GetTitle(),"l");
         }
+
+      if (fit==7)
+        leg->Draw();
+      
+      gPad->Modified();
+      gPad->Update();
     }
   
