VZEROQA from library.
[u/mrichter/AliRoot.git] / prod / acrcaf / qa_pp / AddTaskVZEROQA.C
CommitLineData
c1c4ede6 1AliAnalysisTaskSE* AddTaskVZEROQA(Int_t runNumber)\r
08cff48a 2{\r
3 // Creates a QA task exploiting simple symmetries phi, eta +/-, charge ...\r
4 \r
5 // Get the pointer to the existing analysis manager via the static access method.\r
6 //==============================================================================\r
7 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();\r
8 if (!mgr) {\r
9 ::Error("AddTaskQAsym", "No analysis manager to connect to.");\r
10 return NULL;\r
11 } \r
12 \r
13 // Check the analysis type using the event handlers connected to the analysis manager.\r
14 //==============================================================================\r
15 if (!mgr->GetInputEventHandler()) {\r
16 ::Error("AddTasQAsym", "This task requires an input event handler");\r
17 return NULL;\r
18 }\r
19 TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"\r
20 \r
21 // Configure analysis\r
22 //===========================================================================\r
23 \r
24 \r
25 \r
26 AliAnaVZEROQA* task = new AliAnaVZEROQA("AliAnaVZEROQA");\r
27 mgr->AddTask(task);\r
28 \r
29 AliAnalysisDataContainer *cout = mgr->CreateContainer("QAVZEROHists",TList::Class(),\r
c1c4ede6 30 AliAnalysisManager::kOutputContainer, "VZERO.Performance.root");\r
08cff48a 31\r
32 mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer());\r
33 mgr->ConnectOutput (task, 1, cout);\r
c1c4ede6 34\r
35 return task;\r
36 \r
08cff48a 37 \r
38}\r
39\r
40\r