Index: trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc
===================================================================
--- trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc	(revision 762)
+++ trunk/MagicSoft/Mars/mraw/MRawFileWrite.cc	(revision 763)
@@ -49,4 +49,8 @@
 ClassImp(MRawFileWrite)
 
+// --------------------------------------------------------------------------
+//
+// Default constructor. It opens the output file (root-file)
+//
 MRawFileWrite::MRawFileWrite(const char *fname, Option_t *opt,
                              const char *ftitle, Int_t comp,
@@ -73,4 +77,18 @@
 }
 
+// --------------------------------------------------------------------------
+//
+// The PreProcess function checks for the following input containers:
+//  - MRawEvtHeader
+//  - MRawEvtData
+//  - MRawCrateArray
+//  - MRawEvtTime <MTime>
+//  - MRawRunHeader
+// if a container isn't found the eventloop is stopped.
+//
+// The tree which should containe the run header is created. <RunHeaders>
+// The trees which contains the Events <Events>, <PedEvents>, <CalEvents>
+// are created.
+//
 Bool_t MRawFileWrite::PreProcess (MParList *pList)
 {
@@ -156,4 +174,9 @@
 }
     
+// --------------------------------------------------------------------------
+//
+// Gets the trigger type from the run header to decide into which tree the
+// event should be filled in and fills  it into this tree.
+//
 Bool_t MRawFileWrite::Process()
 {
@@ -187,4 +210,9 @@
 }
 
+
+// --------------------------------------------------------------------------
+//
+// Close the TFile object and delete it.
+//
 Bool_t MRawFileWrite::PostProcess()
 {
