From: cnattras Date: Wed, 9 Mar 2011 04:48:14 +0000 (+0000) Subject: tweaking the way the selection task is found X-Git-Url: http://git.uio.no/git/?p=u%2Fmrichter%2FAliRoot.git;a=commitdiff_plain;h=662437218b2fc7c6d30ecfb92fc47894a7f4623c tweaking the way the selection task is found --- diff --git a/PWG4/totEt/AliAnalysisTaskTransverseEnergy.cxx b/PWG4/totEt/AliAnalysisTaskTransverseEnergy.cxx index 51817961b03..6d4a0f69783 100644 --- a/PWG4/totEt/AliAnalysisTaskTransverseEnergy.cxx +++ b/PWG4/totEt/AliAnalysisTaskTransverseEnergy.cxx @@ -61,7 +61,7 @@ Int_t AliAnalysisTaskTransverseEnergy::CheckPhysicsSelection(Int_t runNumber) else { AliPhysicsSelection *selection = 0; - AliPhysicsSelectionTask *physSelTask = dynamic_cast(AliAnalysisManager::GetAnalysisManager()->GetTasks()->At(0)); + AliPhysicsSelectionTask *physSelTask = dynamic_cast(AliAnalysisManager::GetAnalysisManager()->GetTask("AliPhysicsSelectionTask")); if (physSelTask) {