]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGLF/SPECTRA/MultEvShape/AddTaskCentral.C
Split: removed dirs now in AliPhysics
[u/mrichter/AliRoot.git] / PWGLF / SPECTRA / MultEvShape / AddTaskCentral.C
diff --git a/PWGLF/SPECTRA/MultEvShape/AddTaskCentral.C b/PWGLF/SPECTRA/MultEvShape/AddTaskCentral.C
deleted file mode 100644 (file)
index a060ba1..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-AliAnalysisTaskCentral* AddTaskCentral(){
-
-// Get the pointer to the existing analysis manager via the static access method.
-//==============================================================================
-       AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
-       if (!mgr) {
-       ::Error("AddTaskCentral", "No analysis manager to connect to!");
-       return NULL;
-       }
-
-// Check the analysis type using the event handlers connected to the analysis manager.
-//==============================================================================
-       if (!mgr->GetInputEventHandler()) {
-       ::Error("AddTaskCentral", "This task requires an input event handler!");
-       return NULL;
-       }
-  
-       TString type = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
-  
-       if (type=="AOD"){
-               ::Error("AddTaskCentral", "This task is not tested for AOD analysis!");
-       return NULL;
-       }
-
-       // Create and configure the task
-       AliAnalysisTaskCentral *taskcentral = new AliAnalysisTaskCentral("TaskCentral");
-       mgr->AddTask(taskcentral);
-
-       // Create ONLY the output containers for the data produced by the task.
-       // Get and connect other common input/output containers via the manager as below
-       //==============================================================================
-       TString outputFileName = AliAnalysisManager::GetCommonFileName();
-       outputFileName += ":PWG2Central";
-
-       AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("cobCentral",
-                                                                 TList::Class(),
-                                                                 AliAnalysisManager::kOutputContainer,
-                                                                 outputFileName );
-       
-       mgr->ConnectInput(taskcentral, 0, mgr->GetCommonInputContainer()); 
-       mgr->ConnectOutput(taskcentral, 0, coutput1);
-       return taskcentral;
-}