AliPhysics  251aa1e (251aa1e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AddTaskMyAnalysis.C
Go to the documentation of this file.
1 
21 {
22  AliAnalysisManager* mgr = AliAnalysisManager::GetAnalysisManager();
23 
24  MyAnalysis* task = new MyAnalysis("test");
25  mgr->AddTask(task);
26 
27  AliAnalysisDataContainer* sums =
28  mgr->CreateContainer("Sums", TList::Class(),
29  AliAnalysisManager::kOutputContainer,
30  AliAnalysisManager::GetCommonFileName());
31  AliAnalysisDataContainer* results = // Needed for output from Terminate
32  mgr->CreateContainer("Results", TList::Class(),
33  AliAnalysisManager::kParamContainer, // Important!
34  AliAnalysisManager::GetCommonFileName());
35 
36  mgr->ConnectOutput(task, 1, sums);
37  mgr->ConnectOutput(task, 2, results);
38  mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
39 
40  return task;
41 }
42 /*
43  * EOF
44  */
AliAnalysisTask * AddTaskMyAnalysis()