Move to the CommoonFileName output
authorakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Nov 2009 16:45:28 +0000 (16:45 +0000)
committerakisiel <akisiel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 4 Nov 2009 16:45:28 +0000 (16:45 +0000)
PWG2/FEMTOSCOPY/macros/AddTaskFemto.C
PWG2/FEMTOSCOPY/macros/Batch/runBatch.C

index 4cf8e3e..257f390 100644 (file)
@@ -52,8 +52,11 @@ AliAnalysisTaskFemto *AddTaskFemto(const char *configMacroName="ConfigFemtoAnaly
   // E. 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
   //==============================================================================
+  TString outputfile = AliAnalysisManager::GetCommonFileName();  
+  outputfile += ":PWG2FEMTO";
   AliAnalysisDataContainer *cout_femto  = mgr->CreateContainer("femtolist",  TList::Class(),
-                                                              AliAnalysisManager::kOutputContainer,"Femto.ESD.root");
+                                                              AliAnalysisManager::kOutputContainer,outputfile);
+
 
    mgr->ConnectInput(taskfemto, 0, mgr->GetCommonInputContainer());
    mgr->ConnectOutput(taskfemto, 0, cout_femto);
index 861ccde..fc5c5eb 100644 (file)
@@ -76,6 +76,8 @@ void runBatch(const char *chainlistfile) {
 
   AliMCEventHandler *mcH = new AliMCEventHandler;
   mgr->SetMCtruthEventHandler(mcH);
+
+  mgr->SetCommonFileName("Femto.ESD.root");
   //____________________________________________//
   // 1st Pt task
 //   AliAnalysisTaskFemto *task1 = new AliAnalysisTaskFemto("TaskFemto");