]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HMPID/AddTaskHMPID.C
Move HMPID QA code to PWG1.
[u/mrichter/AliRoot.git] / HMPID / AddTaskHMPID.C
diff --git a/HMPID/AddTaskHMPID.C b/HMPID/AddTaskHMPID.C
deleted file mode 100644 (file)
index 4a320a2..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-AliHMPIDAnalysisTask *AddTaskHMPID(Bool_t useMC=kTRUE)\r
-{\r
-// Creates a HMPID task, configures it and adds it to the analysis manager.\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("AddTaskHMPID", "No analysis manager to connect to.");\r
-      return NULL;\r
-   }\r
-\r
-   // Check the analysis type using the event handlers connected to the analysis manager.\r
-   //==============================================================================\r
-   if (!mgr->GetInputEventHandler()) {\r
-      ::Error("AddTaskHMPID", "This task requires an input event handler");\r
-      return NULL;\r
-   }\r
-\r
-   // Create the task and configure it.\r
-   //===========================================================================\r
-\r
-   AliHMPIDAnalysisTask *hmpTask = new AliHMPIDAnalysisTask("HMPIDAnalysisTask");\r
-   hmpTask->SetDebugLevel(0);\r
-   hmpTask->SelectCollisionCandidates();\r
-   hmpTask->SetUseMC(useMC);\r
-   mgr->AddTask(hmpTask);\r
-\r
-   AliAnalysisDataContainer *cout_hmpid= mgr->CreateContainer("HmpidOutput", TList::Class(),AliAnalysisManager::kOutputContainer,\r
-                                           "HmpidOutput.root");\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
-   mgr->ConnectInput  (hmpTask, 0, mgr->GetCommonInputContainer());\r
-   mgr->ConnectOutput (hmpTask, 0, mgr->GetCommonOutputContainer());\r
-   mgr->ConnectOutput (hmpTask, 1, cout_hmpid);\r
-\r
-   return hmpTask;\r
-}\r