Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 9021)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 9022)
@@ -71,4 +71,13 @@
    * mjobs/MSequenceSQL.[h,cc]:
      - adapted to changes in MSequence
+
+   * datacenter/macros/stage.C
+     - added
+
+   * mjobs/MJStar.cc:
+     - changed displayed title according to the other jobs
+     - changed Setup*Runs to GetRuns
+     - unified output when finished
+     - make sure the weight for the rate tab is not 0
 
 
Index: /trunk/MagicSoft/Mars/datacenter/macros/plotdb.C
===================================================================
--- /trunk/MagicSoft/Mars/datacenter/macros/plotdb.C	(revision 9021)
+++ /trunk/MagicSoft/Mars/datacenter/macros/plotdb.C	(revision 9022)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.49 2008-07-20 14:21:40 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: plotdb.C,v 1.50 2008-07-20 17:33:22 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
@@ -460,7 +460,8 @@
         else
         {
-            TString v(value);
-
-            TString as = v(TPRegexp(" +[aA][sS] +[a-zA-Z0-9]+ *$"));
+            TString  v(value);
+            TPRegexp regexp(" +[aA][sS] +[a-zA-Z0-9]+ *$");
+
+            TString as = v(regexp);
             Ssiz_t  p  = v.Index(as);
 
Index: /trunk/MagicSoft/Mars/mjobs/MJStar.cc
===================================================================
--- /trunk/MagicSoft/Mars/mjobs/MJStar.cc	(revision 9021)
+++ /trunk/MagicSoft/Mars/mjobs/MJStar.cc	(revision 9022)
@@ -119,5 +119,12 @@
 
     if (fDisplay)
+    {
+        TString title = "--  Star: ";
+        title += fSequence.GetSequence();
+        title += "  --";
+        fDisplay->SetTitle(title, kFALSE);
+
         cont.Add(fDisplay);
+    }
 
     const TString oname = Form("star%08d.root", fSequence.GetSequence());
@@ -145,9 +152,9 @@
     *fLog << fSequence.GetFileName() << endl;
     *fLog << endl;
-
+ 
     // --------------------------------------------------------------------------------
 
     MDirIter iter;
-    if (fSequence.SetupDatRuns(iter, MSequence::kCalibrated)<=0)
+    if (fSequence.GetRuns(iter, MSequence::kCalibrated)<=0)
         return kFALSE;
 
@@ -269,5 +276,5 @@
     // Plot the trigger pattern rates vs. run-number
     MH3 hrate("MRawRunHeader.GetFileID", "MTriggerPattern.GetUnprescaled");
-    hrate.SetWeight("1./MRawRunHeader.GetRunLength");
+    hrate.SetWeight("1./TMath::Max(MRawRunHeader.GetRunLength,1)");
     hrate.SetName("Rate");
     hrate.SetTitle("Event rate after cleaning [Hz];File Id;Trigger Type;");
@@ -546,6 +553,5 @@
         return kFALSE;
 
-    *fLog << all << GetDescriptor() << ": Done." << endl;
-    *fLog << endl << endl;
+    *fLog << all << GetDescriptor() << ": Done." << endl << endl << endl;;
 
     return kTRUE;
