copy TRD performance train to PWG1
[u/mrichter/AliRoot.git] / PWG1 / TRD / macros / AddTRDcheckESD.C
CommitLineData
1ee39b3a 1#if ! defined (__CINT__) || defined (__MAKECINT__)
2#include "AliAnalysisManager.h"
3#include "AliAnalysisDataContainer.h"
4#include "TRD/qaRec/AliTRDcheckESD.h"
5#endif
6
7void AddTRDcheckESD(AliAnalysisManager *mgr)
8{
9 AliTRDcheckESD *checkESD = new AliTRDcheckESD();
10 checkESD->SetMC(mgr->GetMCtruthEventHandler());
11 mgr->AddTask(checkESD);
12 mgr->ConnectInput(checkESD, 0, mgr->GetCommonInputContainer()); mgr->ConnectOutput(checkESD, 0, mgr->CreateContainer(checkESD->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, "TRD.Performance.root"));
13}
14