X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONPreprocessor.cxx;h=9265a1cc873e2adb57cd2ff6aebb267bef6c9533;hb=d20bc070e82f2a74897b3fff05dbcab2b529731e;hp=2488db2a5e9ec2e37dc905777c13b4afa5cfda38;hpb=2fbe202bd2a728e819f288fe282d5001909202b2;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONPreprocessor.cxx b/MUON/AliMUONPreprocessor.cxx index 2488db2a5e9..9265a1cc873 100644 --- a/MUON/AliMUONPreprocessor.cxx +++ b/MUON/AliMUONPreprocessor.cxx @@ -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"))); }