Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7541)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7542)
@@ -66,4 +66,7 @@
      - added some code for upcomming automatic event selection
 
+   * datacenter/macros/plotstat.C:
+     - improved macro description
+     - added arguments to main function
 
 
Index: trunk/MagicSoft/Mars/NEWS
===================================================================
--- trunk/MagicSoft/Mars/NEWS	(revision 7541)
+++ trunk/MagicSoft/Mars/NEWS	(revision 7542)
@@ -5,4 +5,7 @@
    - macros: fixed a typo optimwoble.C (SetThetaCut instead SetAlphaCut)
      and added the standard Disp-parametrization
+
+   - macros: added a new macro datacenter/macros/plotstat.C allowing
+     to plot statistics about the data processing
 
    - showplot: path inflation for ganymed files was broken
Index: trunk/MagicSoft/Mars/datacenter/macros/plotstat.C
===================================================================
--- trunk/MagicSoft/Mars/datacenter/macros/plotstat.C	(revision 7541)
+++ trunk/MagicSoft/Mars/datacenter/macros/plotstat.C	(revision 7542)
@@ -30,4 +30,11 @@
 //
 // This macro is used to plot processing statistics from the db.
+//
+// Normally all period are processed. If you want to restric processing to
+// less periods, use:
+//   > root plotstat.C+(20, -1)
+// means that all periods since 20 are taken into account. The two numbers
+// denote the first and last period taken into account, -1 means
+// open start or open end.
 // 
 // Make sure, that database and password are corretly set in a resource
@@ -251,5 +258,5 @@
 }
 
-Bool_t plot(MStatusDisplay &d, MSQLServer &serv)
+Bool_t plot(MStatusDisplay &d, MSQLServer &serv, Int_t first, Int_t last)
 {
     TString query[8];
@@ -311,7 +318,4 @@
     MTime past;
     past.Set(2004, 1, 1, 13, 1);
-
-    int first=-1;
-    int last =-1;
 
     if (first<0)
@@ -520,5 +524,5 @@
 }
 
-int plotstat()
+int plotstat(Int_t first=-1, Int_t last=-1)
 {
     TEnv env("sql.rc");
@@ -541,5 +545,5 @@
     d->SetTitle(serv.GetName());
 
-    plot(*d, serv);
+    plot(*d, serv, first, last);
 
     //d->SaveAsRoot("plotstat.root");
