Index: /trunk/MagicSoft/Mars/Changelog
===================================================================
--- /trunk/MagicSoft/Mars/Changelog	(revision 1548)
+++ /trunk/MagicSoft/Mars/Changelog	(revision 1549)
@@ -1,3 +1,16 @@
                                                                   -*-*- END -*-*-
+ 2002/10/18: Thomas Bretz
+
+   * mfileio/MWriteRootFile.cc
+     - make sure that the tree is created in the corresponding file
+
+
+
+ 2002/10/17: Thomas Bretz
+
+   * mraw/MRawEvtPixelIter.[h,cc]
+     - added function to get the sum of squares of the samples
+
+
 
  2002/10/16: Abelardo Moralejo
@@ -10,4 +23,6 @@
    * macros/MagicHillas.C
      - changed accordingly to changes above.
+
+
 
  2002/10/16: Thomas Bretz
Index: /trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc
===================================================================
--- /trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc	(revision 1548)
+++ /trunk/MagicSoft/Mars/mfileio/MWriteRootFile.cc	(revision 1549)
@@ -146,4 +146,5 @@
     while ((t=(TTree*)Next()))
         *fLog << t->GetName() << ": \t" << t->GetEntries() << " entries." << endl;
+    *fLog << endl;
 }
 
@@ -265,6 +266,11 @@
             // And add the tree to the list of trees
             //
+            TDirectory *save = gDirectory;
+            fOut->cd();
+
             tree = new TTree(tname, ttitle ? ttitle : tname);
             fTrees.AddLast(tree);
+
+            gDirectory = save;
 
             *fLog << "Created Tree " << tname << "." << endl;
