]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
making the container name parameterized
authormcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Oct 2012 08:56:24 +0000 (08:56 +0000)
committermcosenti <mcosenti@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 9 Oct 2012 08:56:24 +0000 (08:56 +0000)
PWGGA/EMCALTasks/macros/AddTaskEMCALIsoPhoton.C

index bd5c2db657ec53747c2efddd160bb3fe3af43253..9d64092f86c73bda7b5696a7a230b61a2dc85eba 100644 (file)
@@ -49,11 +49,16 @@ AliAnalysisTaskEMCALIsoPhoton *AddTaskEMCALIsoPhoton(
 
   
   mgr->AddTask(ana);
+  TString containername = "histosEMCALIsoPhoton";
+  if(pathstrsel != "/"){
+    TString dirpth = (TSubString)pathstrsel.operator()(1,1);
+    containername += dirpth;
+  }
   
   // Create ONLY the output containers for the data produced by the task.
   // Get and connect other common input/output containers via the manager as below
   //==============================================================================
-  AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("histosEMCALIsoPhoton"
+  AliAnalysisDataContainer *coutput1 = mgr->CreateContainer(containername.Data()
                                                            TList::Class(),AliAnalysisManager::kOutputContainer,
                                                            Form("%s", AliAnalysisManager::GetCommonFileName()));