Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7134)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7135)
@@ -54,4 +54,11 @@
    * msignal/MExtractTimeAndChargeDigitalFilter.cc:
      - don't try to find automatic weights without template file name
+
+   * mjobs/MJStar.cc:
+     - set bit MFillH::kDoNotDisplay for fillmuon
+
+   * mmuon/MHSingleMuon.[h,cc]:
+     - store function in hist
+     - added Paint member function
 
 
Index: trunk/MagicSoft/Mars/mars.cc
===================================================================
--- trunk/MagicSoft/Mars/mars.cc	(revision 7134)
+++ trunk/MagicSoft/Mars/mars.cc	(revision 7135)
@@ -103,5 +103,9 @@
         new MCameraDisplay;
     else
-        new MEventDisplay(kFilename);
+    {
+        MEventDisplay *d = new MEventDisplay(kFilename);
+        d->SetBit(MStatusDisplay::kExitLoopOnExit);
+        d->SetTitle(kFilename);
+    }
 
     //
Index: trunk/MagicSoft/Mars/mjobs/MJStar.cc
===================================================================
--- trunk/MagicSoft/Mars/mjobs/MJStar.cc	(revision 7134)
+++ trunk/MagicSoft/Mars/mjobs/MJStar.cc	(revision 7135)
@@ -407,4 +407,5 @@
     fillmuon.SetFilter(&fmuon2);
     fillmpar.SetFilter(&fmuon3);
+    fillmuon.SetBit(MFillH::kDoNotDisplay);
 
     if (fMuonAnalysis)
Index: trunk/MagicSoft/Mars/mmain/MEventDisplay.cc
===================================================================
--- trunk/MagicSoft/Mars/mmain/MEventDisplay.cc	(revision 7134)
+++ trunk/MagicSoft/Mars/mmain/MEventDisplay.cc	(revision 7135)
@@ -343,4 +343,5 @@
     MMuonCalibParCalc  *mcalc   = new MMuonCalibParCalc;
     MFillH *fillmuon = new MFillH("MHSingleMuon", "", "FillMuon");
+    fillmuon->SetNameTab("Muon");
     tlist->AddToList(muscalc);
     tlist->AddToList(fillmuon);
@@ -351,5 +352,5 @@
     // Now distribute Display to all tasks
     //
-    fEvtLoop = new MEvtLoop(Form("Mars %s", gSystem->BaseName(fname)));
+    fEvtLoop = new MEvtLoop(gSystem->BaseName(fname));
     fEvtLoop->SetOwner();
     fEvtLoop->SetParList(plist);
Index: trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc
===================================================================
--- trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc	(revision 7134)
+++ trunk/MagicSoft/Mars/mmuon/MHSingleMuon.cc	(revision 7135)
@@ -349,4 +349,5 @@
     // Setup the function and perform the fit
     TF1 f1("f1", "gaus", startfitval, endfitval);
+    f1.SetLineColor(kBlue);
 
     // Choose starting values as accurate as possible
@@ -360,5 +361,5 @@
     //           R  use the range specified in the function range
     //           Q  quiet mode
-    fHistWidth.Fit(&f1, "NQR");
+    fHistWidth.Fit(&f1, "QR0");
 
     chi = f1.GetChisquare()/f1.GetNDF();
@@ -451,2 +452,28 @@
 }
 */
+
+void MHSingleMuon::Paint(Option_t *o)
+{
+    TF1 *f = fHistWidth.GetFunction("f1");
+    if (f)
+        f->ResetBit(1<<9);
+}
+
+void MHSingleMuon::Draw(Option_t *o)
+{
+    TVirtualPad *pad = gPad ? gPad : MakeDefCanvas(this);
+    pad->SetBorderMode(0);
+
+    AppendPad("");
+
+    pad->Divide(1,2);
+
+    pad->cd(1);
+    gPad->SetBorderMode(0);
+    fHistPhi.Draw();
+
+    pad->cd(2);
+    gPad->SetBorderMode(0);
+    fHistWidth.Draw();
+
+}
Index: trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h
===================================================================
--- trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h	(revision 7134)
+++ trunk/MagicSoft/Mars/mmuon/MHSingleMuon.h	(revision 7135)
@@ -41,4 +41,7 @@
     const TH1F &GetHistWidth() const { return fHistWidth; }
 
+    void Draw(Option_t *o="");
+    void Paint(Option_t *o="");
+
     ClassDef(MHSingleMuon, 1)
 };
