Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 9223)
+++ trunk/MagicSoft/Mars/Changelog	(revision 9224)
@@ -18,4 +18,20 @@
 
                                                  -*-*- END OF LINE -*-*-
+
+ 2009/01/15 Thomas Bretz
+
+   * callisto.cc:
+     - cosmetics to output
+
+   * mcorsika/MCorsikaRunHeader.cc:
+     - cosmetics (removed a ;;)
+
+   * mhist/MHEvent.[h,cc]:
+     - ReInit to allow the change of the camera geoemtry in ReInit
+
+   * mpedestal/MPedestalSubtract.[h,cc]:
+     - added Print function
+
+
 
  2009/01/15 Stefan Ruegamer
Index: trunk/MagicSoft/Mars/callisto.cc
===================================================================
--- trunk/MagicSoft/Mars/callisto.cc	(revision 9223)
+++ trunk/MagicSoft/Mars/callisto.cc	(revision 9224)
@@ -61,5 +61,6 @@
     gLog << "   --debug-env[=1]           Display untouched resources after program execution" << endl;
     gLog << "   --debug-env=2             Display untouched resources after eventloop setup" << endl;
-    gLog << "   --debug-env=3             Debug setting resources from resource file and command line" << endl;
+    gLog << "   --debug-env=3             Debug setting resources from resource file and" << endl;
+    gLog << "                             command line" << endl;
     gLog << "   --debug-mem               Debug memory usage" << endl << endl;
     gLog << "   --rc=Name:option          Set or overwrite a resource of the resource file." << endl;
Index: trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.cc
===================================================================
--- trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.cc	(revision 9223)
+++ trunk/MagicSoft/Mars/mcorsika/MCorsikaRunHeader.cc	(revision 9224)
@@ -236,5 +236,5 @@
     fViewConeOuterAngle = g[152];
 
-    return kTRUE;;
+    return kTRUE;
 }
 
Index: trunk/MagicSoft/Mars/mhist/MHEvent.cc
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHEvent.cc	(revision 9223)
+++ trunk/MagicSoft/Mars/mhist/MHEvent.cc	(revision 9224)
@@ -187,4 +187,24 @@
         break;
     }
+
+    return kTRUE;
+}
+
+// --------------------------------------------------------------------------
+//
+// The geometry read from the RunHeaders might have changed. This does not
+// effect anything in PreProcess. So we set a new geometry. We don't move
+// this away from PreProcess to support also loops without calling ReInit.
+//
+Bool_t MHEvent::ReInit(MParList *plist)
+{
+    MGeomCam *cam = (MGeomCam*)plist->FindObject("MGeomCam");
+    if (!cam)
+    {
+        *fLog << err << GetDescriptor() << ": No MGeomCam found... aborting." << endl;
+        return kFALSE;
+    }
+
+    fHist->SetGeometry(*cam);
 
     return kTRUE;
Index: trunk/MagicSoft/Mars/mhist/MHEvent.h
===================================================================
--- trunk/MagicSoft/Mars/mhist/MHEvent.h	(revision 9223)
+++ trunk/MagicSoft/Mars/mhist/MHEvent.h	(revision 9224)
@@ -53,4 +53,5 @@
     Bool_t SetupFill(const MParList *plist);
     Int_t  Fill(const MParContainer *par, const Stat_t weight=1);
+    Bool_t ReInit(MParList *par);
 
 public:
Index: trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.cc
===================================================================
--- trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.cc	(revision 9223)
+++ trunk/MagicSoft/Mars/mpedestal/MPedestalSubtract.cc	(revision 9224)
@@ -1,4 +1,4 @@
 /* ======================================================================== *\
-! $Name: not supported by cvs2svn $:$Id: MPedestalSubtract.cc,v 1.12 2008-06-02 08:46:54 tbretz Exp $
+! $Name: not supported by cvs2svn $:$Id: MPedestalSubtract.cc,v 1.13 2009-01-16 13:24:04 tbretz Exp $
 ! --------------------------------------------------------------------------
 !
