Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 7997)
+++ trunk/MagicSoft/Mars/Changelog	(revision 7998)
@@ -23,4 +23,8 @@
      - use the same spark cuts as in ganymed_onoff.rc. Seems to be
        unintentional that they were different.
+
+   * macros/train/trainenergy.C:
+     - fixed an oddity because there was artificial path
+     - added some comments
 
 
Index: trunk/MagicSoft/Mars/macros/train/trainenergy.C
===================================================================
--- trunk/MagicSoft/Mars/macros/train/trainenergy.C	(revision 7997)
+++ trunk/MagicSoft/Mars/macros/train/trainenergy.C	(revision 7998)
@@ -1,5 +1,43 @@
+/* ======================================================================== *\
+!
+! *
+! * 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, 11/2005 <mailto:tbretz@astro.uni-wuerzburg.de>
+!
+!   Copyright: MAGIC Software Development, 2000-2006
+!
+!
+\* ======================================================================== *//////////////////////////////////////////////////////////////////////////////
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// trainenergy.C
+// =============
+//
+// Trains a random forest for energy estimation.
+//
+// The additional code below shows how the MagicCuts can be used in
+// training and testing. There is also code which allows to change the
+// slope of the input spectrum. If a min- or max-break energy is given
+// the new slope is only applied in this region. Further possibilities
+// for additional cuts are shown.
+//
+/////////////////////////////////////////////////////////////////////////////
 void trainenergy()
 {
-    MDataSet set("/home/dorner/155vn/spec-ds0604/mcdataset.txt");
+    MDataSet set("mcdataset.txt");
     set.SetNumAnalysis(1);            // Necessary
 
@@ -54,4 +92,11 @@
     */
 
+    // Things which could be implemented in a future version
+    // PreCut in Energy oder Size?
+    // PreCut in Max Dist
+    // PreCut in Theta^2 (0.25 oder 0.3)
+    // New spectral slope
+    // Zenith angle distribution in OnTime
+
      opt.Train("rf-energy.root", set, 30000);
 }
