]>
Commit | Line | Data |
---|---|---|
a65a7e70 | 1 | AliAnalysisTaskSE* AddTaskVZEROQATrig(Int_t runNumber) |
2 | { | |
3 | // Creates a QA task exploiting simple symmetries phi, eta +/-, charge ... | |
4 | ||
5 | // Get the pointer to the existing analysis manager via the static access method. | |
6 | //============================================================================== | |
7 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); | |
8 | if (!mgr) { | |
9 | ::Error("AddTaskQAsym", "No analysis manager to connect to."); | |
10 | return NULL; | |
11 | } | |
12 | ||
13 | // Check the analysis type using the event handlers connected to the analysis manager. | |
14 | //============================================================================== | |
15 | if (!mgr->GetInputEventHandler()) { | |
16 | ::Error("AddTasQAsym", "This task requires an input event handler"); | |
17 | return NULL; | |
18 | } | |
19 | TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD" | |
20 | ||
21 | // Configure analysis | |
22 | //=========================================================================== | |
23 | ||
24 | ||
25 | ||
26 | AliAnaVZEROQA* task = new AliAnaVZEROQA("AliAnaVZEROQATrig"); | |
27 | mgr->AddTask(task); | |
28 | ||
29 | AliAnalysisDataContainer *cout = mgr->CreateContainer("QAVZEROHistsTrig",TList::Class(), | |
30 | AliAnalysisManager::kOutputContainer, Form("%s:VZERO_Performance_Trig", | |
31 | mgr->GetCommonFileName())); | |
32 | ||
33 | mgr->ConnectInput (task, 0, mgr->GetCommonInputContainer()); | |
34 | mgr->ConnectOutput (task, 1, cout); | |
35 | ||
36 | return task; | |
37 | ||
38 | ||
39 | } | |
40 | ||
41 |