X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=blobdiff_plain;f=ANALYSIS%2FAliAnalysisSelector.cxx;h=338a816bed6ca8d06b4316b2cfa38a0891397be0;hp=5e8fa35906ffdfc5f82d69cf7432777a26052cfe;hb=11c09e87c7128a359634d4169c4861b3a0085bd5;hpb=1f87e9fbd882ee6b0ab6014c2f8cf84e14a686d7 diff --git a/ANALYSIS/AliAnalysisSelector.cxx b/ANALYSIS/AliAnalysisSelector.cxx index 5e8fa35906f..338a816bed6 100644 --- a/ANALYSIS/AliAnalysisSelector.cxx +++ b/ANALYSIS/AliAnalysisSelector.cxx @@ -72,7 +72,7 @@ void AliAnalysisSelector::Init(TTree *tree) SetStatus(-1); return; } - if (fAnalysis->GetDebugLevel()>0) { + if (fAnalysis->GetDebugLevel()>1) { cout << "->AliAnalysisSelector->Init()" << endl; } if (!tree) { @@ -88,7 +88,7 @@ void AliAnalysisSelector::Init(TTree *tree) SetStatus(-1); return; } - if (fAnalysis->GetDebugLevel()>0) { + if (fAnalysis->GetDebugLevel()>1) { cout << "<-AliAnalysisSelector->Init()" << endl; } } @@ -98,7 +98,7 @@ void AliAnalysisSelector::Begin(TTree *) { // Assembly the input list. RestoreAnalysisManager(); - if (fAnalysis && fAnalysis->GetDebugLevel()>0) { + if (fAnalysis && fAnalysis->GetDebugLevel()>1) { cout << "->AliAnalysisSelector->Begin: Analysis manager restored" << endl; } } @@ -107,13 +107,14 @@ void AliAnalysisSelector::Begin(TTree *) void AliAnalysisSelector::SlaveBegin(TTree *tree) { // Called on each worker. We "unpack" analysis manager here and call InitAnalysis. + TObject::SetObjectStat(kFALSE); RestoreAnalysisManager(); if (fAnalysis) { - if (fAnalysis->GetDebugLevel()>0) { + if (fAnalysis->GetDebugLevel()>1) { cout << "->AliAnalysisSelector->SlaveBegin() after Restore" << endl; } fAnalysis->SlaveBegin(tree); - if (fAnalysis->GetDebugLevel()>0) { + if (fAnalysis->GetDebugLevel()>1) { cout << "<-AliAnalysisSelector->SlaveBegin()" << endl; } } @@ -135,14 +136,14 @@ Bool_t AliAnalysisSelector::Notify() Bool_t AliAnalysisSelector::Process(Long64_t entry) { // Event loop. - if (fAnalysis->GetDebugLevel() > 0) { + if (fAnalysis->GetDebugLevel() > 1) { cout << "->AliAnalysisSelector::Process()" << endl; } Int_t nobjCount = TProcessID::GetObjectCount(); fAnalysis->GetEntry(entry); fAnalysis->ExecAnalysis(); TProcessID::SetObjectCount(nobjCount); - if (fAnalysis->GetDebugLevel() > 0) { + if (fAnalysis->GetDebugLevel() > 1) { cout << "<-AliAnalysisSelector::Process()" << endl; } return kTRUE; @@ -159,7 +160,7 @@ void AliAnalysisSelector::RestoreAnalysisManager() if (obj->IsA() == AliAnalysisManager::Class()) { fAnalysis = (AliAnalysisManager*)obj; fAnalysis->SetSelector(this); - if (fAnalysis->GetDebugLevel()>0) { + if (fAnalysis->GetDebugLevel()>1) { cout << "->AliAnalysisSelector->RestoreAnalysisManager: Analysis manager restored" << endl; } break; @@ -180,11 +181,11 @@ void AliAnalysisSelector::SlaveTerminate() // on each slave server. if (fStatus == -1) return; // TSelector won't abort... if (fAnalysis->GetAnalysisType() == AliAnalysisManager::kMixingAnalysis) return; - if (fAnalysis->GetDebugLevel() > 0) { + if (fAnalysis->GetDebugLevel() > 1) { cout << "->AliAnalysisSelector::SlaveTerminate()" << endl; } fAnalysis->PackOutput(fOutput); - if (fAnalysis->GetDebugLevel() > 0) { + if (fAnalysis->GetDebugLevel() > 1) { cout << "<-AliAnalysisSelector::SlaveTerminate()" << endl; } } @@ -202,12 +203,12 @@ void AliAnalysisSelector::Terminate() } // No Terminate() in case of event mixing if (fAnalysis->GetAnalysisType() == AliAnalysisManager::kMixingAnalysis) return; - if (fAnalysis->GetDebugLevel() > 0) { + if (fAnalysis->GetDebugLevel() > 1) { cout << "->AliAnalysisSelector::Terminate()" << endl; } fAnalysis->UnpackOutput(fOutput); fAnalysis->Terminate(); - if (fAnalysis->GetDebugLevel() > 0) { + if (fAnalysis->GetDebugLevel() > 1) { cout << "<-AliAnalysisSelector::Terminate()" << endl; } }