.so cleanup: removed from gSystem->Load()
[u/mrichter/AliRoot.git] / PWGHF / hfe / macros / AddTaskHFEdebugTreeAOD.C
1 AliAnalysisTask *AddTaskHFEdebugTreeAOD(){
2
3   // libraries in case
4   gSystem->Load("libANALYSIS");
5   gSystem->Load("libANALYSISalice");
6
7   
8   AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
9   
10   if (!mgr->GetInputEventHandler()) {
11     printf("AddTask_hfe_HFEdebugTreeTaskAOD", "This task requires an input event handler");
12     return NULL;
13   }
14
15   AliHFEdebugTreeTaskAOD *task = new AliHFEdebugTreeTaskAOD("HFEdebugTreeCreator");
16   task->SetFileName("HFEdebug.root");
17   task->SetMinNclustersTPC(30);
18   task->SetMinNclustersITS(2);
19   task->SelectCollisionCandidates(AliVEvent::kMB | AliVEvent::kCentral | AliVEvent::kSemiCentral);
20
21    
22   mgr->AddTask(task);
23
24   TString containerName = mgr->GetCommonFileName();
25   containerName += ":";
26   containerName += "debugtreeaod";
27
28   AliAnalysisDataContainer *cinput  = mgr->GetCommonInputContainer();
29   mgr->ConnectOutput(task,1, mgr->CreateContainer("debugtreeaod", TTree::Class(),AliAnalysisManager::kOutputContainer,containerName.Data()));
30   mgr->ConnectInput(task,0, cinput );    
31
32   return task;
33   
34 }