Index: trunk/MagicSoft/Mars/Changelog
===================================================================
--- trunk/MagicSoft/Mars/Changelog	(revision 6068)
+++ trunk/MagicSoft/Mars/Changelog	(revision 6069)
@@ -20,4 +20,12 @@
 
                                                  -*-*- END OF LINE -*-*-
+ 2005/01/28 Thomas Bretz
+
+   * mjobs/MJCalibrateSignal.cc:
+     - fixed that extract1,2,3 haven't been deleted if loop failed.
+     - print tasklist also if loop failed.
+
+
+
  2005/01/28 Markus Gaug
 
@@ -25,4 +33,5 @@
      - introduce a security check for the time fine adjustment in case, 
        it is too large.
+
 
 
@@ -33,4 +42,6 @@
        fraction of total). Moved MSrcPosCam in output from RunHeaders
        to Events tree.
+
+
 
  2005/01/27 Daniel Mazin and Markus Gaug
Index: trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc
===================================================================
--- trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc	(revision 6068)
+++ trunk/MagicSoft/Mars/mjobs/MJCalibrateSignal.cc	(revision 6069)
@@ -573,4 +573,7 @@
     MFillH fill7(&evt7, "MArrivalTime",           "FillTimes");
     MFillH fill8(&evt8, "MCalibrateData",         "FillConv");
+
+    MTaskEnv fillflorian("FinalFantasy");
+    fillflorian.SetDefault();
 
     // The second rule is for the case reading raw-files!
@@ -686,4 +689,6 @@
       tlist2.AddToList(&fill7);
 
+    tlist2.AddToList(&fillflorian);
+
     // Setup List for Drive-tree
     MPointingPosCalc pcalc;
@@ -711,5 +716,19 @@
 
     // Execute first analysis
-    if (!evtloop.Eventloop(fMaxEvents))
+    const Bool_t rc = evtloop.Eventloop(fMaxEvents);
+
+    // Print statistics
+    tlist.PrintStatistics();
+
+    // make sure owned object are deleted
+    if (extractor1)
+        delete extractor1;
+    if (extractor2)
+        delete extractor2;
+    if (extractor3)
+        delete extractor3;
+
+    // return if job failed
+    if (!rc)
     {
         *fLog << err << GetDescriptor() << ": Failed." << endl;
@@ -717,6 +736,5 @@
     }
 
-    tlist.PrintStatistics();
-
+    // if everything went ok write and display result
     DisplayResult(plist);
 
@@ -724,11 +742,5 @@
         return kFALSE;
 
-    if (extractor1)
-      delete extractor1;
-    if (extractor2)
-      delete extractor2;
-    if (extractor3)
-      delete extractor3;
- 
+    // return if job went ok
     *fLog << all << GetDescriptor() << ": Done." << endl;
     *fLog << endl << endl;
