Int_t AliAnalysisManager::GetEntry(Long64_t entry, Int_t getall)
{
// Read one entry of the tree or a whole branch.
Int_t AliAnalysisManager::GetEntry(Long64_t entry, Int_t getall)
{
// Read one entry of the tree or a whole branch.
if (fDebug > 0) printf("== AliAnalysisManager::GetEntry(%lld)\n", entry);
fCurrentEntry = entry;
return fTree ? fTree->GetTree()->GetEntry(entry, getall) : 0;
if (fDebug > 0) printf("== AliAnalysisManager::GetEntry(%lld)\n", entry);
fCurrentEntry = entry;
return fTree ? fTree->GetTree()->GetEntry(entry, getall) : 0;
{
// Start analysis for this manager. Analysis task can be: LOCAL, PROOF, GRID or
// MIX. Process nentries starting from firstentry
{
// Start analysis for this manager. Analysis task can be: LOCAL, PROOF, GRID or
// MIX. Process nentries starting from firstentry
// Run tree-based analysis via AliAnalysisSelector
cout << "===== RUNNING LOCAL ANALYSIS " << GetName() << " ON TREE " << tree->GetName() << endl;
fSelector = new AliAnalysisSelector(this);
// Run tree-based analysis via AliAnalysisSelector
cout << "===== RUNNING LOCAL ANALYSIS " << GetName() << " ON TREE " << tree->GetName() << endl;
fSelector = new AliAnalysisSelector(this);
- tree->Process(fSelector, "", nentries, firstentry);
+ retv = tree->Process(fSelector, "", nentries, firstentry);
- chain->Process("AliAnalysisSelector", "", nentries, firstentry);
+ retv = chain->Process("AliAnalysisSelector", "", nentries, firstentry);
// Call NotifyBinChange for all tasks
while ((task=(AliAnalysisTask*)next()))
if (!task->IsPostEventLoop()) task->NotifyBinChange();
// Call NotifyBinChange for all tasks
while ((task=(AliAnalysisTask*)next()))
if (!task->IsPostEventLoop()) task->NotifyBinChange();
sprintf(line, "gProof->Process(\"%s\", \"AliAnalysisSelector\", \"\", %lld, %lld);",
dataset, nentries, firstentry);
cout << "===== RUNNING PROOF ANALYSIS " << GetName() << " ON DATASET " << dataset << endl;
sprintf(line, "gProof->Process(\"%s\", \"AliAnalysisSelector\", \"\", %lld, %lld);",
dataset, nentries, firstentry);
cout << "===== RUNNING PROOF ANALYSIS " << GetName() << " ON DATASET " << dataset << endl;