update wagon to produce histos in common file
[u/mrichter/AliRoot.git] / PWG4 / macros / AddTaskomega3pi.C
index 4a2d5619d770d19b006d699e4a3bbbe74cae07be..ffb682e0170e53c396004b255d41128d9ead1700 100644 (file)
@@ -22,7 +22,11 @@ AliAnalysisTaskOmegaPi0PiPi* AddTaskomega3pi()
 
   // Create containers for input/output
   AliAnalysisDataContainer *cinput  = mgr->GetCommonInputContainer();
-  AliAnalysisDataContainer *coutput = mgr->CreateContainer("histos",TList::Class(),AliAnalysisManager::kOutputContainer,"histos.root");
+  //AliAnalysisDataContainer *coutput = mgr->CreateContainer("histos",TList::Class(),AliAnalysisManager::kOutputContainer,"histos.root");
+
+
+  TString outputfile = AliAnalysisManager::GetCommonFileName();
+  AliAnalysisDataContainer *coutput = mgr->CreateContainer("omega3pi", TList::Class(), AliAnalysisManager::kOutputContainer, Form("%s:omega3pi",outputfile.Data()));
   
   // Connect input/output
   mgr->ConnectInput(omegaTask, 0, cinput);