X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=ANALYSIS%2Fmacros%2FAddTaskEventplane.C;fp=ANALYSIS%2Fmacros%2FAddTaskEventplane.C;h=3d33454a527f4cce159d8a1a4b26e60206b6b356;hb=e51055a0104c1ff7de03240412978c9d006dbb9a;hp=fe35e6ab592482933eabc788aa9acd6f838da212;hpb=48b634ff934842fabcb6cfedda2ada1875d97b1f;p=u%2Fmrichter%2FAliRoot.git diff --git a/ANALYSIS/macros/AddTaskEventplane.C b/ANALYSIS/macros/AddTaskEventplane.C index fe35e6ab592..3d33454a527 100644 --- a/ANALYSIS/macros/AddTaskEventplane.C +++ b/ANALYSIS/macros/AddTaskEventplane.C @@ -13,13 +13,13 @@ AliEPSelectionTask *AddTaskEventplane() return NULL; } TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD" - if (inputDataType != "ESD") { - ::Error("AddTaskEventplane", "This task works only on ESD analysis"); - return NULL; - } + AliEPSelectionTask *eventplaneTask = new AliEPSelectionTask("EventplaneSelection"); eventplaneTask->SelectCollisionCandidates(AliVEvent::kMB); + if (inputDataType == "AOD"){ + eventplaneTask->SetInput("AOD"); + } eventplaneTask->SetTrackType("TPC"); eventplaneTask->SetUsePtWeight(); eventplaneTask->SetUsePhiWeight();