New directory for the VMC tests (Ivana, Eva)
[u/mrichter/AliRoot.git] / TRD / qaRec / macros / AddTRDinfoGen.C
CommitLineData
873458ab 1#if ! defined (__CINT__) || defined (__MAKECINT__)
2#include "AliAnalysisManager.h"
3#include "AliAnalysisDataContainer.h"
4#include "TRD/qaRec/AliTRDinfoGen.h"
5#include "TRD/qaRec/info/AliTRDeventInfo.h"
6da3eee3 6#include "TRD/qaRec/macros/AliTRDperformanceTrain.h"
873458ab 7#endif
8
c82c70b6 9#include "TRD/qaRec/macros/helper.C"
6da3eee3 10void AddTRDinfoGen(AliAnalysisManager *mgr, Char_t *trd, AliAnalysisDataContainer **/*ci*/, AliAnalysisDataContainer **co)
873458ab 11{
6da3eee3 12 Int_t map = ParseOptions(trd);
13 if(!(TSTBIT(map, kInfoGen))) return;
14
873458ab 15 AliTRDinfoGen *info = 0x0;
16 mgr->AddTask(info = new AliTRDinfoGen());
17 info->SetDebugLevel(0);
18 info->SetMCdata(mgr->GetMCtruthEventHandler());
19 mgr->ConnectInput( info, 0, mgr->GetCommonInputContainer());
20 co[0] = mgr->CreateContainer("trackInfo", TObjArray::Class(), AliAnalysisManager::kExchangeContainer);
21 co[1] = mgr->CreateContainer("eventInfo", AliTRDeventInfo::Class(), AliAnalysisManager::kExchangeContainer);
98233fc0 22 co[2] = mgr->CreateContainer("v0Info", TObjArray::Class(), AliAnalysisManager::kExchangeContainer);
873458ab 23 mgr->ConnectOutput(info, 0, co[0]);
24 mgr->ConnectOutput(info, 1, co[1]);
98233fc0 25 mgr->ConnectOutput(info, 2, co[2]);
873458ab 26}
27