// AliAnalysisManager to handle analysis.
//==============================================================================
-#include "Riostream.h"
+#include <Riostream.h>
+#include <TProcessID.h>
#include "AliAnalysisManager.h"
#include "AliAnalysisTask.h"
// Assembly the input list.
RestoreAnalysisManager();
if (fAnalysis && fAnalysis->GetDebugLevel()>1) {
- cout << "->AliAnalysisSelector->Init: Analysis manager restored" << endl;
- }
+ cout << "->AliAnalysisSelector->Begin: Analysis manager restored" << endl;
+ }
}
//______________________________________________________________________________
cout << "<-AliAnalysisSelector->SlaveBegin()" << endl;
}
}
-}
+}
//______________________________________________________________________________
Bool_t AliAnalysisSelector::Notify()
// is started when using PROOF. It is normaly not necessary to make changes
// to the generated code, but the routine can be extended by the
// user if needed. The return value is currently not used.
- if (fAnalysis) fAnalysis->Notify();
-}
+ if (fAnalysis) return fAnalysis->Notify();
+ return kFALSE;
+}
//______________________________________________________________________________
Bool_t AliAnalysisSelector::Process(Long64_t entry)
// Event loop.
if (fAnalysis->GetDebugLevel() >1 ) {
cout << "->AliAnalysisSelector::Process()" << endl;
- }
- fAnalysis->GetEntry(entry); // Not needed anymore in version 2
+ }
+ Int_t nobjCount = TProcessID::GetObjectCount();
+ fAnalysis->GetEntry(entry);
fAnalysis->ExecAnalysis();
+ TProcessID::SetObjectCount(nobjCount);
if (fAnalysis->GetDebugLevel() >1 ) {
cout << "<-AliAnalysisSelector::Process()" << endl;
}
// a query. It always runs on the client, it can be used to present
// the results graphically or save the results to file.
if (!fAnalysis) {
- Error("Terminate","AliAnalysisSelector::Terminate: No analysisManager!!!");
+ Error("Terminate","AliAnalysisSelector::Terminate: No analysis manager!!!");
return;
}
if (fAnalysis->GetDebugLevel() >1 ) {