]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG4/macros/AddTaskPhiCorrelationsQA.C
moving addtask macros to PWGCF
[u/mrichter/AliRoot.git] / PWG4 / macros / AddTaskPhiCorrelationsQA.C
diff --git a/PWG4/macros/AddTaskPhiCorrelationsQA.C b/PWG4/macros/AddTaskPhiCorrelationsQA.C
deleted file mode 100644 (file)
index 625f328..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-AliPhiCorrelationsQATask *AddTaskPhiCorrelationsQA()\r
-{\r
-  // Get the pointer to the existing analysis manager via the static access method.\r
-  //==============================================================================\r
-  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();\r
-  if (!mgr) {\r
-    ::Error("AddTaskPhiCorrelations", "No analysis manager to connect to.");\r
-    return NULL;\r
-  }  \r
-  \r
-  // Create the task and configure it.\r
-  //===========================================================================\r
-  AliPhiCorrelationsQATask* ana = new  AliPhiCorrelationsQATask("");\r
-  \r
-  ana->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kUserDefined);\r
-  \r
-  Bool_t isMC = (mgr->GetMCtruthEventHandler() != NULL);\r
-  if (isMC)\r
-    ana->SetUseUncheckedCentrality();\r
-  \r
-  mgr->AddTask(ana);\r
-  \r
-  // Create ONLY the output containers for the data produced by the task.\r
-  // Get and connect other common input/output containers via the manager as below\r
-  //==============================================================================\r
-  AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("histosPhiCorrelationsQA", TList::Class(),AliAnalysisManager::kOutputContainer,Form("%s", AliAnalysisManager::GetCommonFileName()));\r
-  \r
-  mgr->ConnectInput  (ana, 0, mgr->GetCommonInputContainer());\r
-  mgr->ConnectOutput (ana, 1, coutput1 );\r
-   \r
-  return ana;\r
-}\r