Skip to content

Commit

Permalink
This commit was manufactured by cvs2svn to create tag 'v4-06-00'.
Browse files Browse the repository at this point in the history
  • Loading branch information
(no author) committed Jun 11, 2007
1 parent a9c8e53 commit e7f1e11
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1,696 deletions.
25 changes: 15 additions & 10 deletions ANALYSIS/AliAnalysisManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,14 @@ void AliAnalysisManager::SlaveBegin(TTree *tree)
cout << "->AliAnalysisManager::SlaveBegin()" << endl;
}
// Call InitIO of EventHandler
if (fMode == kProofAnalysis) {
fEventHandler->InitIO("proof");
} else {
fEventHandler->InitIO("local");
if (fEventHandler) {
if (fMode == kProofAnalysis) {
fEventHandler->InitIO("proof");
} else {
fEventHandler->InitIO("local");
}
}


//
TIter next(fTasks);
Expand Down Expand Up @@ -297,7 +300,7 @@ void AliAnalysisManager::PackOutput(TList *target)
return;
}

fEventHandler->Terminate();
if (fEventHandler) fEventHandler->Terminate();

if (fMode == kProofAnalysis) {
TIter next(fOutputs);
Expand Down Expand Up @@ -381,8 +384,10 @@ void AliAnalysisManager::UnpackOutput(TList *source)
}
// Check if the output need to be written to a file.
const char *filename = output->GetFileName();
if (!(strcmp(filename, "default"))) filename = fEventHandler->GetOutputFileName();

if (!(strcmp(filename, "default"))) {
if (fEventHandler) filename = fEventHandler->GetOutputFileName();
}

if (!filename || !strlen(filename)) continue;
TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(filename);
if (file) file->cd();
Expand Down Expand Up @@ -420,7 +425,7 @@ void AliAnalysisManager::Terminate()
cout << "<-AliAnalysisManager::Terminate()" << endl;
}
//
fEventHandler->TerminateIO();
if (fEventHandler) fEventHandler->TerminateIO();
}

//______________________________________________________________________________
Expand Down Expand Up @@ -733,7 +738,7 @@ void AliAnalysisManager::ExecAnalysis(Option_t *option)
}
task->ExecuteTask(option);
}
fEventHandler->Fill();
if (fEventHandler) fEventHandler->Fill();
return;
}
// The event loop is not controlled by TSelector
Expand All @@ -745,7 +750,7 @@ void AliAnalysisManager::ExecAnalysis(Option_t *option)
}
task->ExecuteTask(option);
}
fEventHandler->Fill();
if (fEventHandler) fEventHandler->Fill();
}

//______________________________________________________________________________
Expand Down
Loading

0 comments on commit e7f1e11

Please sign in to comment.