-AliEventStatsTask* AddTaskEventStats() {
+AliPhysicsSelectionTask* AddTaskPhysicsSelection() {
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
if (!mgr) {
- AliEventStatsTask *task= new AliEventStatsTask();
+ AliPhysicsSelectionTask *task= new AliPhysicsSelectionTask("");
mgr->AddTask(task);
- gROOT->LoadMacro("AliESDInputHandlerRPITS.cxx++g");
+// gROOT->LoadMacro("AliESDInputHandlerRPITS.cxx++g");
Bool_t doQAsym = 1; // output ok
Bool_t doVZERO = 1; // output ok but there is a 2nd file
mgr->SetDebugLevel(2);
- AliInputEventHandler* esdH = new AliESDInputHandlerRPITS();
+ AliInputEventHandler* esdH = new AliESDInputHandlerRP();
esdH->SetActiveBranches("ESDfriend");
mgr->SetInputEventHandler(esdH);
// Wagons
//
//
- // Collision Selector (static)
- AliPhysicsSelection* colsel = new AliPhysicsSelection();
- colsel->AddBackgroundIdentification(new AliBackgroundSelection());
-
- AliAnalysisTaskSE::SetCollisionSelector(colsel);
-
// TPC QA (E. Sicking)
//
if (doQAsym) {
//
if (doEventStat) {
- gROOT->LoadMacro("AddTaskEventStats.C");
- evtStats = AddTaskEventStats();
- evtStats->SetPhysicsSelection(colsel);
- AliLog::SetClassDebugLevel("AliPhysicsSelection", AliLog::kDebug);
+ gROOT->LoadMacro("AddTaskPhysicsSelection.C");
+ AliPhysicsSelectionTask* physSelTask = AddTaskPhysicsSelection();
+ AliPhysicsSelection* physSel = physSelTask->GetPhysicsSelection();
+ physSel->AddBackgroundIdentification(new AliBackgroundSelection());
}