macro to run standalone ESD filtering
[u/mrichter/AliRoot.git] / PWGPP / PilotTrain / AddTaskSPDQA.C
CommitLineData
f97ea980 1
2
3AliAnalysisTaskSE* AddTaskSPDQA() {
4
5 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
6 if (!mgr) {
7 ::Error("AddTaskQAsym", "No analysis manager to connect to.");
8 return NULL;
9 }
10
11 // Check the analysis type using the event handlers connected to the analysis manager.
12 //==============================================================================
13 if (!mgr->GetInputEventHandler()) {
14 ::Error("AddTasQAsym", "This task requires an input event handler");
15 return NULL;
16 }
17 TString inputDataType = mgr->GetInputEventHandler()->GetDataType(); // can be "ESD" or "AOD"
18
19 // Configure analysis
20 //===========================================================================
21
22
23
24 AliAnalysisTaskSPD *task= new AliAnalysisTaskSPD("qaFromRP");
25 mgr->AddTask(task);
26
27
28
29 AliAnalysisDataContainer *cinput0 = mgr->GetCommonInputContainer();
30 AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("coutput1",
31 TList::Class(),
32 AliAnalysisManager::kOutputContainer,
997f86cb 33 Form("%s:SPD_Performance",mgr->GetCommonFileName()));
f97ea980 34
35
36
37 mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
38 mgr->ConnectOutput(task,1,coutput1);
39
40 return task;
41
42}
43//_____________________________________________________________________________