Index: trunk/MagicSoft/Mars/mmain/MAnalysis.cc
===================================================================
--- trunk/MagicSoft/Mars/mmain/MAnalysis.cc	(revision 1020)
+++ trunk/MagicSoft/Mars/mmain/MAnalysis.cc	(revision 1021)
@@ -31,14 +31,16 @@
 #include <TGButton.h>      // TGTextButton
 #include <TGTextEntry.h>   // TGNumberEntry
+#include <TGProgressBar.h> // TGHProgressBar
+
 
 ClassImp(MAnalysis)
 
 enum {
-    M_BUTTON_HILLAS
+    kButHillas
 };
 
 void MAnalysis::AddButtons()
 {
-    TGTextButton *hillas = new TGTextButton(fTop2, "Calculate Standard Hillas", M_BUTTON_HILLAS);
+    TGTextButton *hillas = new TGTextButton(fTop2, "Calculate Standard Hillas", kButHillas);
 
     hillas->Associate(this);
@@ -183,5 +185,5 @@
 #include "MHillas.h"
 
-void MAnalysis::CalculateHillas() const
+void MAnalysis::CalculateHillas()
 {
     //
@@ -207,4 +209,11 @@
     }
 
+    TGHProgressBar bar(fTop2);
+    TGLayoutHints laybar(kLHintsExpandX|kLHintsCenterY|kLHintsRight, 10, 10, 5, 5); //, 10); //, 5, 5);
+    bar.SetWidth(150);
+    fTop2->AddFrame(&bar, &laybar);
+    Layout();
+    MapSubwindows();
+
     //
     // Create a empty Parameter List and an empty Task List
@@ -242,5 +251,7 @@
     //   CalEvents:  Calibration Events
     //
-    MReadTree    read("Events", fInputFile);
+    MReadTree read("Events", fInputFile);
+    read.SetProgressBar(&bar);
+
     MCerPhotCalc ncalc;
     MImgCleanStd clean(cleanlvl1, cleanlvl2);
@@ -266,11 +277,16 @@
     MEvtLoop evtloop;
     evtloop.SetParList(&plist);
-
+    evtloop.SetProgressBar(&bar);
     //
     // Execute your analysis
     //
-    if (!evtloop.Eventloop())
+    Bool_t rc = evtloop.Eventloop();
+
+    fTop2->RemoveFrame(&bar);
+    Layout();
+    MapSubwindows();
+
+    if (!rc)
         return;
-
     //
     // After the analysis is finished we can display the histograms
@@ -297,5 +313,5 @@
     switch (parm1)
     {
-    case M_BUTTON_HILLAS:
+    case kButHillas:
         if (!InputFileSelected())
         {
@@ -306,5 +322,5 @@
         switch (parm1)
         {
-        case M_BUTTON_HILLAS:
+        case kButHillas:
             CalculateHillas();
             return kTRUE;
Index: trunk/MagicSoft/Mars/mmain/MAnalysis.h
===================================================================
--- trunk/MagicSoft/Mars/mmain/MAnalysis.h	(revision 1020)
+++ trunk/MagicSoft/Mars/mmain/MAnalysis.h	(revision 1021)
@@ -18,5 +18,5 @@
     TGTextEntry   *fNumEntry2;
 
-    void CalculateHillas() const;
+    void CalculateHillas();
 
     void AddButtons();
