Index: trunk/MagicSoft/Mars/mbase/BaseLinkDef.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/BaseLinkDef.h	(revision 698)
+++ trunk/MagicSoft/Mars/mbase/BaseLinkDef.h	(revision 705)
@@ -4,4 +4,13 @@
 #pragma link off all classes;
 #pragma link off all functions;
+
+#pragma link C++ global kCONTINUE;
+#pragma link C++ global kGAMMA;
+#pragma link C++ global kPROTON;
+#pragma link C++ global kHELIUM;
+#pragma link C++ global kOXIGEN;
+#pragma link C++ global kIRON;
+#pragma link C++ global kPI;
+#pragma link C++ global kRad2Deg;
 
 #pragma link C++ global gLog;
Index: trunk/MagicSoft/Mars/mbase/MLogManip.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MLogManip.h	(revision 698)
+++ trunk/MagicSoft/Mars/mbase/MLogManip.h	(revision 705)
@@ -53,5 +53,5 @@
 //
 #ifndef __CINT__
-#define dbginf        __FILE__ << " l." << __LINE__ << ": "
+#define dbginf      __FILE__ << " l." << __LINE__ << ": "
 #endif
 //
@@ -63,5 +63,5 @@
 //
 #ifndef __CINT__
-#define DEBUG(lvl)    flush << debug(lvl) << dbginf
+#define DEBUG(lvl)  flush << debug(lvl) << dbginf
 #endif
 
Index: trunk/MagicSoft/Mars/mbase/MParList.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MParList.cc	(revision 698)
+++ trunk/MagicSoft/Mars/mbase/MParList.cc	(revision 705)
@@ -21,4 +21,5 @@
 
 #include "MLog.h"
+#include "MLogManip.h"
 
 ClassImp(MParList)
@@ -91,5 +92,5 @@
   if (fContainer.FindObject(obj))
   {
-      *fLog << "WARNING: MParList::add: Container already added" << endl;
+      *fLog << dbginf << "Container already added" << endl;
       return kTRUE;
   }
@@ -103,5 +104,5 @@
       if (!fContainer.FindObject(where))
       {
-          *fLog << "ERROR: MParList::add: Cannot find parameter container after which the new one should be added!" << endl;
+          *fLog << dbginf << "Cannot find parameter container after which the new one should be added!" << endl;
           return kFALSE;
       }
@@ -139,5 +140,5 @@
     // if object is not existing in the list try to create one
     //
-    *fLog << "MParList::CreateObject - Warning: '" << name << "' not found... creating." << endl;
+    *fLog << dbginf << "'" << name << "' not found... creating." << endl;
 
     //
@@ -151,5 +152,5 @@
         // if class is not existing in the root environment
         //
-        *fLog << "MParList::CreateObject - Warning: Class '" << name << "' not existing in dictionary." << endl;
+        *fLog << dbginf << "Class '" << name << "' not existing in dictionary." << endl;
         return NULL;
     }
@@ -175,5 +176,5 @@
   //   print some information about the current status of MParList
   //
-  *fLog << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;
+  *fLog << dbginf << "ParList: " << this->GetName() << " <" << this->GetTitle() << ">" << endl;
   *fLog << endl;
   
Index: trunk/MagicSoft/Mars/mbase/MReadTree.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MReadTree.h	(revision 698)
+++ trunk/MagicSoft/Mars/mbase/MReadTree.h	(revision 705)
@@ -7,5 +7,5 @@
 
 class TFile;
-class TTree;
+class TChain;
 
 class MReadTree : public MTask
@@ -13,18 +13,18 @@
 private:
     TFile  *fFile;       // Pointer to file
-    TTree  *fTree;       // Pointer to tree
+    TChain *fChain;      // Pointer to tree
 
     UInt_t  fNumEntry;   // Number of actual entry
     UInt_t  fNumEntries; // Number of Events in Tree
 
-    TString fFileName;   // Name of File
-    TString fTreeName;   // Name of Tree
-
 public:
-    MReadTree(const char *filename, const char *treename, const char *name=NULL, const char *title=NULL);
+    MReadTree(const char *treename, const char *filename=NULL, const char *name=NULL, const char *title=NULL);
+    ~MReadTree();
 
     Bool_t PreProcess(MParList *pList);
     Bool_t Process();
     Bool_t PostProcess();
+
+    void AddFile(const char *fname);
 
     Bool_t GetEvent() ; 
@@ -33,6 +33,7 @@
     Bool_t IncEventNum(UInt_t inc=1); // increase number of event (position in tree)
     Bool_t SetEventNum(UInt_t nr);    // set number of event (position in tree)
-    UInt_t GetEventNum() {return fNumEntry;}
-    UInt_t GetEntries() {return fNumEntries;}
+
+    UInt_t GetEventNum() const { return fNumEntry;   }
+    UInt_t GetEntries() const  { return fNumEntries; }
 
     ClassDef(MReadTree, 0)	// Reads one tree
