1 AliAnalysisTaskSE* AddTaskT0QA()
3 // Creates a QA task to check T0 data
5 // Get the pointer to the existing analysis manager via the static access method.
6 //==============================================================================
7 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
9 ::Error("AddTaskT0QA", "No analysis manager to connect to.");
13 // Check the analysis type using the event handlers connected to the analysis manager.
14 //==============================================================================
15 if (!mgr->GetInputEventHandler()) {
16 ::Error("AddTaskT0QA", "This task requires an input event handler");
19 TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
22 //===========================================================================
26 AliT0AnalysisTaskQA* task = new AliT0AnalysisTaskQA("AliAnaT0QA");
29 AliAnalysisDataContainer *coutput = mgr->CreateContainer("QAT0chists", TObjArray::Class(),
30 AliAnalysisManager::kOutputContainer, Form("%s:T0_Performance",
31 mgr->GetCommonFileName()));
34 mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());
35 mgr->ConnectOutput (task, 1, coutput);