Index: trunk/MagicSoft/Mars/mbase/MPrint.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MPrint.cc	(revision 1540)
+++ trunk/MagicSoft/Mars/mbase/MPrint.cc	(revision 1542)
@@ -67,4 +67,7 @@
 //  must be overloaded. You can also set an option string to use
 //  when calling TObject::Print
+//  If you want that the MPrint instance is removed from the tasklist
+//  if the container to be printed is not found in the PreProcess, call:
+//     MPrint::EnableSkip();
 //
 MPrint::MPrint(const char *obj, const char *option,
@@ -84,4 +87,6 @@
 //  must be overloaded. You can also set an option string to use
 //  when calling TObject::Print
+//  if the container to be printed is not found in the PreProcess, call:
+//     MPrint::EnableSkip();
 //
 MPrint::MPrint(const TObject *obj, const char *option,
@@ -118,6 +123,15 @@
     // If it couldn't get found stop Eventloop
     //
-    *fLog << err << dbginf << fObjName << " not found... aborting." << endl;
-    return kFALSE;
+    *fLog << err << dbginf << fObjName << " not found... ";
+    if (TestBit(kSKIP))
+    {
+        *fLog << "removing task from list." << endl;
+        return kSKIP;
+    }
+    else
+    {
+        *fLog << "aborting." << endl;
+        return kFALSE;
+    }
 }
 
Index: trunk/MagicSoft/Mars/mbase/MPrint.h
===================================================================
--- trunk/MagicSoft/Mars/mbase/MPrint.h	(revision 1540)
+++ trunk/MagicSoft/Mars/mbase/MPrint.h	(revision 1542)
@@ -15,4 +15,6 @@
     TString fOption;         // Print option
 
+    enum { kSkip = BIT(14) };
+
     void Init(const char *name, const char *title);
 
@@ -22,4 +24,5 @@
 
     void SetOption(Option_t *option) { fOption = option; }
+    void EnableSkip(Bool_t skip=kTRUE) { skip ? SetBit(kSkip) : ResetBit(kSkip); }
 
     Bool_t PreProcess(MParList *pList);
Index: trunk/MagicSoft/Mars/mbase/MTaskList.cc
===================================================================
--- trunk/MagicSoft/Mars/mbase/MTaskList.cc	(revision 1540)
+++ trunk/MagicSoft/Mars/mbase/MTaskList.cc	(revision 1542)
@@ -380,5 +380,5 @@
     if (!noreset)
     {
-        fParList->SetReadyToSave();
+        fParList->SetReadyToSave(kFALSE);
         fParList->Reset();
         fParList->SetBit(MParList::kDoNotReset);
