Use folder in ouput file: savannah 57874 (Markus)
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Nov 2009 15:38:55 +0000 (15:38 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 6 Nov 2009 15:38:55 +0000 (15:38 +0000)
PWG3/hfe/AddTaskHFE.C

index 174987e..9a39e9b 100644 (file)
@@ -38,13 +38,15 @@ AliAnalysisTask *AddTaskHFE(){
 
   //find input container
   AliAnalysisDataContainer *cinput  = mgr->GetCommonInputContainer();
+  TString containerName = mgr->GetCommonFileName();
+  containerName += ":PWG3_hfe";
   
   task->ConnectOutput(0, mgr->CreateContainer("nEvents", TH1I::Class(),
-                                             AliAnalysisManager::kOutputContainer, "HFEtask.root"));
+                                             AliAnalysisManager::kOutputContainer, containerName.Data()));
   task->ConnectOutput(1, mgr->CreateContainer("Results", TList::Class(),
-                                             AliAnalysisManager::kOutputContainer, "HFEtask.root"));
+                                             AliAnalysisManager::kOutputContainer, containerName.Data()));
   task->ConnectOutput(2, mgr->CreateContainer("QA", TList::Class(),
-                                             AliAnalysisManager::kOutputContainer, "HFEtask.root"));
+                                             AliAnalysisManager::kOutputContainer, containerName.Data()));
   mgr->ConnectInput  (task,  0, cinput );
   
   return task;