reduce binning and ranges
[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"
d4f4bb29 4#include "PWG1/TRD/AliTRDcheckESD.h"
1ee39b3a 5#endif
6
7void AddTRDcheckESD(AliAnalysisManager *mgr)
8{
f2e89a4c 9 AliTRDcheckESD *checkESD = new AliTRDcheckESD((char*)"checkESD");
3d83da78 10 Bool_t hasMCtruth = (mgr->GetMCtruthEventHandler() != 0);
11
12 checkESD->SetMC(hasMCtruth);
1ee39b3a 13 mgr->AddTask(checkESD);
3d83da78 14 mgr->ConnectInput(checkESD, 0, mgr->GetCommonInputContainer());
15 mgr->ConnectOutput(checkESD, 1, mgr->CreateContainer(checkESD->GetName(), TObjArray::Class(), AliAnalysisManager::kOutputContainer, "TRD.Performance.root"));
1ee39b3a 16}
17