From: morsch Date: Wed, 6 Jan 2010 08:09:55 +0000 (+0000) Subject: Updates for physics selection. X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=4829e1b2426ed25d93aa464d7b6dd446c8dfb7a2;p=u%2Fmrichter%2FAliRoot.git Updates for physics selection. --- diff --git a/PWG1/PilotTrain/AddTaskEventStats.C b/PWG1/PilotTrain/AddTaskPhysicsSelection.C similarity index 90% rename from PWG1/PilotTrain/AddTaskEventStats.C rename to PWG1/PilotTrain/AddTaskPhysicsSelection.C index f752624f479..5be0b3ae6af 100644 --- a/PWG1/PilotTrain/AddTaskEventStats.C +++ b/PWG1/PilotTrain/AddTaskPhysicsSelection.C @@ -1,6 +1,6 @@ -AliEventStatsTask* AddTaskEventStats() { +AliPhysicsSelectionTask* AddTaskPhysicsSelection() { AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); if (!mgr) { @@ -21,7 +21,7 @@ AliEventStatsTask* AddTaskEventStats() { - AliEventStatsTask *task= new AliEventStatsTask(); + AliPhysicsSelectionTask *task= new AliPhysicsSelectionTask(""); mgr->AddTask(task); diff --git a/PWG1/PilotTrain/runPilot.C b/PWG1/PilotTrain/runPilot.C index cc2d0000d0f..aa9970c9a33 100644 --- a/PWG1/PilotTrain/runPilot.C +++ b/PWG1/PilotTrain/runPilot.C @@ -14,7 +14,7 @@ void runPilot() { - 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 @@ -30,7 +30,7 @@ void runPilot() { mgr->SetDebugLevel(2); - AliInputEventHandler* esdH = new AliESDInputHandlerRPITS(); + AliInputEventHandler* esdH = new AliESDInputHandlerRP(); esdH->SetActiveBranches("ESDfriend"); mgr->SetInputEventHandler(esdH); @@ -44,13 +44,7 @@ void runPilot() { // Wagons // // - // Collision Selector (static) - AliPhysicsSelection* colsel = new AliPhysicsSelection(); - colsel->AddBackgroundIdentification(new AliBackgroundSelection()); - - AliAnalysisTaskSE::SetCollisionSelector(colsel); - // TPC QA (E. Sicking) // if (doQAsym) { @@ -118,10 +112,10 @@ void runPilot() { // 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()); }