tweaking the way the selection task is found
authorcnattras <cnattras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Mar 2011 04:48:14 +0000 (04:48 +0000)
committercnattras <cnattras@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 9 Mar 2011 04:48:14 +0000 (04:48 +0000)
PWG4/totEt/AliAnalysisTaskTransverseEnergy.cxx

index 5181796..6d4a0f6 100644 (file)
@@ -61,7 +61,7 @@ Int_t AliAnalysisTaskTransverseEnergy::CheckPhysicsSelection(Int_t runNumber)
     else
     {
         AliPhysicsSelection *selection = 0;
-        AliPhysicsSelectionTask *physSelTask = dynamic_cast<AliPhysicsSelectionTask*>(AliAnalysisManager::GetAnalysisManager()->GetTasks()->At(0));
+        AliPhysicsSelectionTask *physSelTask = dynamic_cast<AliPhysicsSelectionTask*>(AliAnalysisManager::GetAnalysisManager()->GetTask("AliPhysicsSelectionTask"));
         if (physSelTask)
         {