AliPhysics  b555aef (b555aef)
AddTaskMCParticleFilter.C
Go to the documentation of this file.
1 
21 {
22  AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
23  if (!mgr) Fatal("", "No analysis manager to connect to.");
24 
25  AliAnalysisTaskMCParticleFilter* mctask =
26  new AliAnalysisTaskMCParticleFilter("mcfilter");
27  mgr->AddTask(mctask);
28  AliAnalysisDataContainer* histOut =
29  mgr->CreateContainer("mcfilter", TList::Class(),
30  AliAnalysisManager::kOutputContainer,
31  "mcParticles.root");
32  mgr->ConnectInput(mctask, 0, mgr->GetCommonInputContainer());
33  mgr->ConnectOutput(mctask, 0, mgr->GetCommonOutputContainer());
34  mgr->ConnectOutput(mctask, 1, histOut);
35 
36  return mctask;
37 }
38 /*
39  * EOF
40  */
AliAnalysisTask * AddTaskMCParticleFilter()