update wagon to produce histos in common file
authorgconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Nov 2009 09:23:26 +0000 (09:23 +0000)
committergconesab <gconesab@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 Nov 2009 09:23:26 +0000 (09:23 +0000)
PWG4/macros/AddTaskomega3pi.C

index 4a2d561..ffb682e 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);