]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONPreprocessor.cxx
remove print
[u/mrichter/AliRoot.git] / MUON / AliMUONPreprocessor.cxx
index 2488db2a5e9ec2e37dc905777c13b4afa5cfda38..9265a1cc873e2adb57cd2ff6aebb267bef6c9533 100644 (file)
@@ -120,13 +120,17 @@ AliMUONPreprocessor::Initialize(Int_t run, UInt_t startTime, UInt_t endTime)
     }
   }
   
+  Int_t nok(0);
+
   if (IsValid())
   {
     // loop over subtasks and initialize them
     for ( Int_t i = 0; i <= fSubprocessors->GetLast(); ++i )
     {
-      Subprocessor(i)->Initialize(run,startTime,endTime);
+      Bool_t ok = Subprocessor(i)->Initialize(run,startTime,endTime);
+      if (ok) ++nok;
     }
+    if (nok !=  fSubprocessors->GetLast()+1) fIsValid = kFALSE;
   }
   Log(Form("Initialize was %s",( IsValid() ? "fine" : "NOT OK")));
 }