Index: trunk/MagicSoft/Mars/mbase/MArray.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArray.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MArray.cc	(revision 749)
@@ -1,14 +1,39 @@
-/////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-// MArray                                                                  //
-//                                                                         //
-// This is an abstract base class for TObject derived Arrays. In principal //
-// it is almost the same than TArray. The difference is that this array    //
-// base classed is derived from TObject which makes storage of variable    //
-// sized arrays possible with splitlevel=1.                                //
-//                                                                         //
-// This should not be needed anymore for root >3.00                        //
-//                                                                         //
-/////////////////////////////////////////////////////////////////////////////
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
+
+//////////////////////////////////////////////////////////////////////////////
+//                                                                          //
+// MArray                                                                   //
+//                                                                          //
+// This is an abstract base class for TObject derived Arrays. In principal  //
+// it is almost the same than TArray. The difference is that this array     //
+// base classed is derived from TObject which makes storage of variable     //
+// sized arrays possible with splitlevel=1.                                 //
+//                                                                          //
+// This should not be needed anymore for root >3.00                         //
+//                                                                          //
+//////////////////////////////////////////////////////////////////////////////
 #include "MArray.h"
 
Index: trunk/MagicSoft/Mars/mbase/MArrayB.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArrayB.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MArrayB.cc	(revision 749)
@@ -1,11 +1,20 @@
-/////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-// MArrayB                                                                 //
-//                                                                         //
-// Array of Byte_t. It is almost the same than TArrayC, but it containes   //
-// Byte_t instead of Char_t and it can be stored with splitlevel=1 to a    //
-// a root-file because of it's derivement from MArray (TObject)            //                                                                       //
-//                                                                         //
-/////////////////////////////////////////////////////////////////////////////
+/* ======================================================================== *\
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+\* ======================================================================== */
+
+
+//////////////////////////////////////////////////////////////////////////////
+//                                                                          //
+// MArrayB                                                                  //
+//                                                                          //
+// Array of Byte_t. It is almost the same than TArrayC, but it containes    //
+// Byte_t instead of Char_t and it can be stored with splitlevel=1 to a     //
+// a root-file because of it's derivement from MArray (TObject)             //                                                                       //
+//                                                                          //
+//////////////////////////////////////////////////////////////////////////////
 #include "MArrayB.h"
 
Index: trunk/MagicSoft/Mars/mbase/MArrayS.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MArrayS.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MArrayS.cc	(revision 749)
@@ -1,11 +1,36 @@
-/////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-// MArrayS                                                                 //
-//                                                                         //
-// Array of UShort_t. It is almost the same than TArrayS, but it containes //
-// UShort_t instead of Short_t and it can be stored with splitlevel=1 to a //
-// a root-file because of it's derivement from MArray (TObject)            //                                                                       //
-//                                                                         //
-/////////////////////////////////////////////////////////////////////////////
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
+
+//////////////////////////////////////////////////////////////////////////////
+//                                                                          //
+// MArrayS                                                                  //
+//                                                                          //
+// Array of UShort_t. It is almost the same than TArrayS, but it containes  //
+// UShort_t instead of Short_t and it can be stored with splitlevel=1 to a  //
+// a root-file because of it's derivement from MArray (TObject)             //                                                                       //
+//                                                                          //
+//////////////////////////////////////////////////////////////////////////////
 #include "MArrayS.h"
 
Index: trunk/MagicSoft/Mars/mbase/MEvtLoop.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MEvtLoop.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MEvtLoop.cc	(revision 749)
@@ -1,25 +1,50 @@
-/////////////////////////////////////////////////////////////////////////////
-//                                                                         //
-// MEvtLoop                                                                //
-//                                                                         //
-// This class is the core of each event processing.                        //
-// First you must set the parameter list to use. The parameter list        //
-// must contain the task list (MTaskList) to use. The name of the task     //
-// list can be specified if you call Eventloop. The standard name is       //
-// "MTaskList". The name you specify must match the name of the MTaskList  //
-// object.                                                                 //
-//                                                                         //
-// If you call Eventloop first all PreProcess functions - with the         //
-// parameter list as an argument - of the tasks in the task list are       //
-// executed. If one of them returns kFALSE then the execution is stopped.  //
-// If the preprocessing was ok. The Process funtion of the tasks are       //
-// as long as one function returns kSTOP. Only the tasks which are marked  //
-// marked as "All" or with a string which matches the MInputStreamID of    //
-// MTaskList are executed. If one tasks returns kCONTINUE the pending      //
-// tasks in the list are skipped and the execution in continued with       //
-// the first one in the list.                                              //
-// Afterwards the PostProcess functions are executed.                      //
-//                                                                         //
-/////////////////////////////////////////////////////////////////////////////
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
+
+//////////////////////////////////////////////////////////////////////////////
+//                                                                          //
+// MEvtLoop                                                                 //
+//                                                                          //
+// This class is the core of each event processing.                         //
+// First you must set the parameter list to use. The parameter list         //
+// must contain the task list (MTaskList) to use. The name of the task      //
+// list can be specified if you call Eventloop. The standard name is        //
+// "MTaskList". The name you specify must match the name of the MTaskList   //
+// object.                                                                  //
+//                                                                          //
+// If you call Eventloop first all PreProcess functions - with the          //
+// parameter list as an argument - of the tasks in the task list are        //
+// executed. If one of them returns kFALSE then the execution is stopped.   //
+// If the preprocessing was ok. The Process funtion of the tasks are        //
+// as long as one function returns kSTOP. Only the tasks which are marked   //
+// marked as "All" or with a string which matches the MInputStreamID of     //
+// MTaskList are executed. If one tasks returns kCONTINUE the pending       //
+// tasks in the list are skipped and the execution in continued with        //
+// the first one in the list.                                               //
+// Afterwards the PostProcess functions are executed.                       //
+//                                                                          //
+//////////////////////////////////////////////////////////////////////////////
 #include "MEvtLoop.h"
 
@@ -149,6 +174,6 @@
 {
     //
-    // The postprocessing part of the eventloop. Be careful, this is
-    // for developers use only!
+    //  The postprocessing part of the eventloop. Be careful, this is
+    //  for developers use only!
     //
 
@@ -161,6 +186,7 @@
 void MEvtLoop::Eventloop(Int_t maxcnt, const char *tlist)
 {
+    //
     // See class description above.
-
+    //
     if (!PreProcess(tlist))
         return;
Index: trunk/MagicSoft/Mars/mbase/MInputStreamID.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MInputStreamID.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MInputStreamID.cc	(revision 749)
@@ -1,17 +1,40 @@
-///////////////////////////////////////////////////////////////////////
-//                                                                   //
-// MInpuStreamID                                                     //
-//                                                                   //
-// This is a ID which is assigned to tasks and to a task list.       //
-// It depends on this ID whether a task is executed by the           //
-// MTaskList::Process member funtion or not.                         //
-//                                                                   //
-///////////////////////////////////////////////////////////////////////
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
+
+//////////////////////////////////////////////////////////////////////////////
+//                                                                          //
+// MInpuStreamID                                                            //
+//                                                                          //
+// This is a ID which is assigned to tasks and to a task list.              //
+// It depends on this ID whether a task is executed by the                  //
+// MTaskList::Process member funtion or not.                                //
+//                                                                          //
+//////////////////////////////////////////////////////////////////////////////
 
 #include "MInputStreamID.h"
 
 ClassImp(MInputStreamID);
-
-// ---------------------------------------------------------------------
 
 MInputStreamID::MInputStreamID(const char *name, const char *title)
Index: trunk/MagicSoft/Mars/mbase/MLog.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MLog.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MLog.cc	(revision 749)
@@ -1,2 +1,44 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
+
+//////////////////////////////////////////////////////////////////////////////
+//                                                                          //
+// MLog                                                                     //
+//                                                                          //
+// This is what we call the logging-system.                                 //
+//                                                                          //
+// It is derived from the C++ streaming classes and can handle our          //
+// logging. The log output can be redirected to stdout, stderr, any other   //
+// stream or a root window.                                                 //
+//                                                                          //
+// There is a global log-instance which you can use like cout, id is gLog.  //
+// A log-instance of your choice (gLog by default) is destributed to all    //
+// Task which are used in an eventloop, so that you can redirect the output //
+// of one eventloop to where you want..                                     //
+//                                                                          //
+//////////////////////////////////////////////////////////////////////////////
+
 #include "MLog.h"
 
@@ -75,5 +117,4 @@
 int MLog::sync()
 {
-//    cout << "*sync*";
     WriteBuffer();
 
Index: trunk/MagicSoft/Mars/mbase/MLogManip.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MLogManip.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MLogManip.cc	(revision 749)
@@ -1,2 +1,26 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
 #include "MLog.h"
 #include "MLogManip.h"
Index: trunk/MagicSoft/Mars/mbase/MParContainer.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MParContainer.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MParContainer.cc	(revision 749)
@@ -1,14 +1,38 @@
-///////////////////////////////////////////////////////////////////////////
-//                                                                       //
-// MParContainer                                                         //
-//                                                                       //
-// The MParContainer class is the base class for all MARS parameter      //
-// containers. At the moment it is almost the same than ROOT's TNamed.   //
-// A TNamed contains the essential elements (name, title)                //
-// to identify a derived object in lists like our MParList or MTaskList. //
-// The main difference is that the name and title isn't stored and read  //
-// to and from root files ("\\!")                                        //
-//                                                                      //
-//////////////////////////////////////////////////////////////////////////
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
+//////////////////////////////////////////////////////////////////////////////
+//                                                                          //
+// MParContainer                                                            //
+//                                                                          //
+// The MParContainer class is the base class for all MARS parameter         //
+// containers. At the moment it is almost the same than ROOT's TNamed.      //
+// A TNamed contains the essential elements (name, title)                   //
+// to identify a derived object in lists like our MParList or MTaskList.    //
+// The main difference is that the name and title isn't stored and read     //
+// to and from root files ("//!")                                           //
+//                                                                          //
+//////////////////////////////////////////////////////////////////////////////
 #include "MParContainer.h"
 
@@ -19,121 +43,114 @@
 #include "MLog.h"
 
-ClassImp(MParContainer)
+ClassImp(MParContainer);
 
-//______________________________________________________________________________
 MParContainer::MParContainer(const MParContainer &named)
 {
-   // MParContainer copy ctor.
-
-   *fName = *(named.fName);
-   *fTitle = *(named.fTitle);
+    //
+    //  MParContainer copy ctor.
+    //
+    *fName = *(named.fName);
+    *fTitle = *(named.fTitle);
 }
 
-//______________________________________________________________________________
 MParContainer& MParContainer::operator=(const MParContainer& rhs)
 {
-   // MParContainer assignment operator.
-
-   if (this != &rhs) {
-      TObject::operator=(rhs);
-      *fName  = *(rhs.fName);
-      *fTitle = *(rhs.fTitle);
-   }
-   return *this;
+    //
+    //  MParContainer assignment operator.
+    //
+    if (this != &rhs) {
+        TObject::operator=(rhs);
+        *fName  = *(rhs.fName);
+        *fTitle = *(rhs.fTitle);
+    }
+    return *this;
 }
 
-//______________________________________________________________________________
 Int_t MParContainer::Compare(TObject *obj)
 {
-   // Compare two MParContainer objects. Returns 0 when equal, -1 when this is
-   // smaller and +1 when bigger (like strcmp).
-
-   if (this == obj) return 0;
-   return fName->CompareTo(obj->GetName());
+    //
+    //  Compare two MParContainer objects. Returns 0 when equal, -1 when this is
+    //  smaller and +1 when bigger (like strcmp).
+    //
+    if (this == obj) return 0;
+    return fName->CompareTo(obj->GetName());
 }
 
-//______________________________________________________________________________
 void MParContainer::Copy(TObject &obj)
 {
-   // Copy this to obj.
-
-   TObject::Copy(obj);
-   *(((MParContainer&)obj).fName)  = *fName;
-   *(((MParContainer&)obj).fTitle) = *fTitle;
+    //
+    //  Copy this to obj.
+    //
+    TObject::Copy(obj);
+    *(((MParContainer&)obj).fName)  = *fName;
+    *(((MParContainer&)obj).fTitle) = *fTitle;
 }
 
-//______________________________________________________________________________
 void MParContainer::FillBuffer(char *&buffer)
 {
-   // Encode MParContainer into output buffer.
-
-   fName->FillBuffer(buffer);
-   fTitle->FillBuffer(buffer);
+    //
+    //  Encode MParContainer into output buffer.
+    //
+    fName->FillBuffer(buffer);
+    fTitle->FillBuffer(buffer);
 }
 
-//______________________________________________________________________________
 void MParContainer::ls(Option_t *)
 {
-   // List MParContainer name and title.
-
-   TROOT::IndentLevel();
-   *fLog <<"OBJ: " << IsA()->GetName() << "\t" << GetName() << "\t" << GetTitle() << " : "
+    //
+    //  List MParContainer name and title.
+    //
+    TROOT::IndentLevel();
+    *fLog <<"OBJ: " << IsA()->GetName() << "\t" << GetName() << "\t" << GetTitle() << " : "
         << Int_t(TestBit(kCanDelete)) << endl;
 }
 
-//______________________________________________________________________________
 void MParContainer::Print(Option_t *)
 {
-   // Print MParContainer name and title.
-
-   *fLog <<"OBJ: " << IsA()->GetName() << "\t" << GetName() << "\t" << GetTitle() << endl;
+    //
+    //  Print MParContainer name and title.
+    //
+    *fLog <<"OBJ: " << IsA()->GetName() << "\t" << GetName() << "\t" << GetTitle() << endl;
 }
 
-//______________________________________________________________________________
 void MParContainer::SetName(const char *name)
 {
-   // Change (i.e. set) the name of the MParContainer.
-   // WARNING !!
-   // If the object is a member of a THashTable, THashList container
-   // The HashTable must be Rehashed after SetName
-   // For example the list of objects in the current directory is a THashList
-
-   *fName = name;
-   if (gPad && TestBit(kMustCleanup)) gPad->Modified();
+    //
+    //  Change (i.e. set) the name of the MParContainer.
+    //  WARNING !!
+    //  If the object is a member of a THashTable, THashList container
+    //  The HashTable must be Rehashed after SetName
+    //  For example the list of objects in the current directory is a THashList
+    //
+    *fName = name;
+    if (gPad && TestBit(kMustCleanup)) gPad->Modified();
 }
 
-//______________________________________________________________________________
 void MParContainer::SetObject(const char *name, const char *title)
 {
-   // Change (i.e. set) all the MParContainer parameters (name and title).
-   // See also WARNING in SetName
-
-   *fName  = name;
-   *fTitle = title;
-   if (gPad && TestBit(kMustCleanup)) gPad->Modified();
+    //
+    //  Change (i.e. set) all the MParContainer parameters (name and title).
+    //  See also WARNING in SetName
+    //
+    *fName  = name;
+    *fTitle = title;
+    if (gPad && TestBit(kMustCleanup)) gPad->Modified();
 }
 
-//______________________________________________________________________________
 void MParContainer::SetTitle(const char *title)
 {
-   // Change (i.e. set) the title of the MParContainer.
-
-   *fTitle = title;
-   if (gPad && TestBit(kMustCleanup)) gPad->Modified();
+    //
+    //  Change (i.e. set) the title of the MParContainer.
+    //
+    *fTitle = title;
+    if (gPad && TestBit(kMustCleanup)) gPad->Modified();
 }
 
-//______________________________________________________________________________
 Int_t MParContainer::Sizeof() const
 {
-   // Return size of the MParContainer part of the TObject.
-
-   Int_t nbytes = fName->Sizeof() + fTitle->Sizeof();
-   return nbytes;
+    //
+    //  Return size of the MParContainer part of the TObject.
+    //
+    Int_t nbytes = fName->Sizeof() + fTitle->Sizeof();
+    return nbytes;
 }
-
-
-
-
-
-
-
Index: trunk/MagicSoft/Mars/mbase/MParList.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MParList.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MParList.cc	(revision 749)
@@ -1,2 +1,26 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
 /////////////////////////////////////////////////////////////////////////////
 //                                                                         //
@@ -124,5 +148,5 @@
 }
 
-MParContainer *MParList::FindCreateObj(const char *name)
+MParContainer *MParList::FindCreateObj(const char *classname, const char *objname)
 {
     //
@@ -132,5 +156,17 @@
     //  dictionary. If this isn't possible NULL is returned
     //
-    MParContainer *pcont = (MParContainer*)FindObject(name);
+
+    //
+    // If now object name (name of the object to identify it in the
+    // List) is given use it's classname as the objectname
+    //
+    if (!objname)
+        objname = classname;
+
+    //
+    // Try to find a object with this object name which is already
+    // in the List. If we can find one we are done.
+    //
+    MParContainer *pcont = (MParContainer*)FindObject(objname);
 
     if (pcont)
@@ -140,10 +176,10 @@
     // if object is not existing in the list try to create one
     //
-    *fLog << dbginf << "'" << name << "' not found... creating." << endl;
+    *fLog << dbginf << "'" << classname << "' not found... creating." << endl;
 
     //
     // try to get class from root environment
     //
-    TClass *cls = gROOT->GetClass(name);
+    TClass *cls = gROOT->GetClass(classname);
 
     if (!cls)
@@ -152,14 +188,28 @@
         // if class is not existing in the root environment
         //
-        *fLog << dbginf << "Class '" << name << "' not existing in dictionary." << endl;
+        *fLog << dbginf << "Class '" << classname << "' not existing in dictionary." << endl;
         return NULL;
     }
 
     //
-    // create the container and add it to the list
+    // create the parameter container of the the given class type
     //
     pcont = (MParContainer*)cls->New();
+
+    //
+    // If a name different to the classname was given,
+    // set the new object name of the object
+    //
+    pcont->SetName(objname);
+
+    //
+    // Now add the object to the parameter list
+    //
     AddToList(pcont);
 
+    //
+    // The object was automatically created. This makes sure, that such an
+    // object is deleted together with the list
+    //
     fAutodelete.Add(pcont);
 
Index: trunk/MagicSoft/Mars/mbase/MParList.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MParList.h	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MParList.h	(revision 749)
@@ -42,5 +42,5 @@
 
     TObject       *FindObject(const char *name) const;
-    MParContainer *FindCreateObj(const char *name);
+    MParContainer *FindCreateObj(const char *classname, const char *objname=NULL);
 
     void Print(Option_t *t = NULL);
Index: trunk/MagicSoft/Mars/mbase/MReadTree.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MReadTree.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MReadTree.cc	(revision 749)
@@ -1,2 +1,26 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
 /////////////////////////////////////////////////////////////////////////////
 //                                                                         //
Index: trunk/MagicSoft/Mars/mbase/MTask.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTask.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MTask.cc	(revision 749)
@@ -1,2 +1,26 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
 /////////////////////////////////////////////////////////////////////////////
 //                                                                         //
Index: trunk/MagicSoft/Mars/mbase/MTaskList.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTaskList.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MTaskList.cc	(revision 749)
@@ -1,2 +1,26 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
 ///////////////////////////////////////////////////////////////////////
 //                                                                   //
Index: trunk/MagicSoft/Mars/mbase/MTime.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTime.cc	(revision 706)
+++ trunk/MagicSoft/Mars/mbase/MTime.cc	(revision 749)
@@ -1,2 +1,26 @@
+/* ======================================================================== *\
+!
+! *
+! * This file is part of MARS, the MAGIC Analysis and Reconstruction
+! * Software. It is distributed to you in the hope that it can be a useful
+! * and timesaving tool in analysing Data of imaging Cerenkov telescopes.
+! * It is distributed WITHOUT ANY WARRANTY.
+! *
+! * Permission to use, copy, modify and distribute this software and its
+! * documentation for any purpose is hereby granted without fee,
+! * provided that the above copyright notice appear in all copies and
+! * that both that copyright notice and this permission notice appear
+! * in supporting documentation. It is provided "as is" without express
+! * or implied warranty.
+! *
+!
+!
+!   Author(s): Thomas Bretz  12/2000 (tbretz@uni-sw.gwdg.de)
+!
+!   Copyright: MAGIC Software Development, 2000-2001
+!
+!
+\* ======================================================================== */
+
 /////////////////////////////////////////////////////////////////////////////
 //                                                                         //
