]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/TRD/macros/AddTRDonlineTrackletQA.C
Merge branch 'feature-movesplit'
[u/mrichter/AliRoot.git] / PWGPP / TRD / macros / AddTRDonlineTrackletQA.C
CommitLineData
6911c7f9 1#if ! defined (__CINT__) || defined (__MAKECINT__)
2#include "TList.h"
3#include "AliAnalysisManager.h"
4#include "AliAnalysisDataContainer.h"
5#include "AliAnalysisTask.h"
6#include "PWGPP/TRD/AliTRDonlineTrackletQA.h"
7#endif
8
9AliAnalysisTask *AddTRDonlineTrackletQA(AliAnalysisManager *mgr)
b220e595 10{
b220e595 11 if (!mgr) {
12 cerr << "No Analysis manager available" << endl;
13 return 0x0;
14 }
15
6911c7f9 16 AliTRDonlineTrackletQA *task = new AliTRDonlineTrackletQA("TRDtrackletQA");
b220e595 17 mgr->AddTask(task);
18
19 AliAnalysisDataContainer *cinput = mgr->GetCommonInputContainer();
20 AliAnalysisDataContainer *coutput = mgr->GetCommonOutputContainer();
21 AliAnalysisDataContainer *ctracklets =
6911c7f9 22 (AliAnalysisDataContainer*) AliAnalysisManager::GetAnalysisManager()->GetContainers()->FindObject("TRDtrackletFilter");
b220e595 23
24 AliAnalysisDataContainer *ctrklqa =
6911c7f9 25 mgr->CreateContainer("TRDtrackletQA", TList::Class(),
b220e595 26 AliAnalysisManager::kOutputContainer,
6911c7f9 27 Form("%s:TRD_Performance", mgr->GetCommonFileName()));
b220e595 28
29 task->ConnectInput(0, cinput);
30 task->ConnectInput(1, ctracklets);
31
b220e595 32 task->ConnectOutput(1, ctrklqa);
33
34 return task;
35}