Unique container name for each task
authorcoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 May 2012 08:56:22 +0000 (08:56 +0000)
committercoppedis <coppedis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 23 May 2012 08:56:22 +0000 (08:56 +0000)
PWGLF/FORWARD/macros/AddTaskZDCPbPb.C

index f300582..480aa5b 100644 (file)
@@ -49,9 +49,10 @@ AliAnalysisTaskSE* AddTaskZDCPbPb(Bool_t  applyPS = kFALSE,
 
    TString outputFileName = AliAnalysisManager::GetCommonFileName();
    
-   AliAnalysisDataContainer *coutput  = mgr->CreateContainer("ZDChistos", TList::Class(),
+   AliAnalysisDataContainer *coutput  = mgr->CreateContainer(outfname.Data(), 
+                                       TList::Class(),
                                        AliAnalysisManager::kOutputContainer,   
-                                       Form("%s:%s", mgr->GetCommonFileName(), outfname.Data()));
+                                       Form("%s:ZDCHistos", mgr->GetCommonFileName()));
 
    mgr->ConnectInput  (task, 0, mgr->GetCommonInputContainer());
    mgr->ConnectOutput (task, 1, coutput);