Index: trunk/MagicSoft/Mars/mfileio/MWriteFile.cc
===================================================================
--- trunk/MagicSoft/Mars/mfileio/MWriteFile.cc	(revision 2859)
+++ trunk/MagicSoft/Mars/mfileio/MWriteFile.cc	(revision 2958)
@@ -18,5 +18,5 @@
 !   Author(s): Thomas Bretz, 6/2001 <mailto:tbretz@astro.uni-wuerzburg.de>
 !
-!   Copyright: MAGIC Software Development, 2000-2003
+!   Copyright: MAGIC Software Development, 2000-2004
 !
 !
@@ -24,15 +24,14 @@
 
 /////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-// MWriteFile                                                              //
-//                                                                         //
-// This is a base class for writing tasks. If you want to implement        //
-// writing out parameter containers in a new file format, this is a good   //
-// starting point.                                                         //
-// The class defines a generalized interface between writing out data in   //
-// an eventloop and your file format.                                      //
-//                                                                         //
+//
+// MWriteFile
+//
+// This is a base class for writing tasks. If you want to implement
+// writing out parameter containers in a new file format, this is a good
+// starting point.
+// The class defines a generalized interface between writing out data in
+// an eventloop and your file format.
+//
 /////////////////////////////////////////////////////////////////////////////
-
 #include "MWriteFile.h"
 
@@ -86,6 +85,17 @@
 // --------------------------------------------------------------------------
 //
-// Checks if the HasChanged flag of the output container is set. If it is set
-// the container should be written to the output.
+// Checks if the SetReadyToSave flag of the output container is set. If it
+// is set the container should be written to the output.
+//
+Bool_t MWriteFile::ReInit(MParList *pList)
+{
+    CheckAndWrite();
+    return kTRUE;
+}
+
+// --------------------------------------------------------------------------
+//
+// Checks if the SetReadyToSave flag of the output container is set. If it is
+// set the container should be written to the output.
 //
 Int_t MWriteFile::Process()
@@ -97,6 +107,6 @@
 // --------------------------------------------------------------------------
 //
-// Checks if the HasChanged flag of the output container is set. If it is set
-// the container should be written to the output.
+// Checks if the SetReadyToSave flag of the output container is set. If it is
+// set the container should be written to the output.
 //
 Int_t MWriteFile::PostProcess()
@@ -108,3 +118,2 @@
     return kTRUE;
 }
-
