Index: /trunk/Mars/Changelog
===================================================================
--- /trunk/Mars/Changelog	(revision 9928)
+++ /trunk/Mars/Changelog	(revision 9929)
@@ -18,4 +18,11 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2010/09/21 Thomas Bretz
+
+   * mjobs/MJSimulation.cc:
+     - correctly propagated run-number to the file-name
+
+
 
  2010/09/14 Daniela Dorner
Index: /trunk/Mars/mjobs/MJSimulation.cc
===================================================================
--- /trunk/Mars/mjobs/MJSimulation.cc	(revision 9928)
+++ /trunk/Mars/mjobs/MJSimulation.cc	(revision 9929)
@@ -516,5 +516,5 @@
     // -------------------------------------------------------------------
 
-    const char *fmt = Form("s/cer([0-9]+)([0-9][0-9][0-9])/%s\\/%08d.$2_%%c_MonteCarlo$1.root/", Esc(fPathOut).Data(), fRunNumber);
+    const char *fmt = Form("s/cer([0-9]+)([0-9][0-9][0-9])/%s\\/%08d.$2_%%c_MonteCarlo$1.root/", Esc(fPathOut).Data(), header.GetRunNumber());
 
     const TString rule1(Form(fmt, 'R'));
