Trees should write now to the current directory
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 May 2010 16:50:05 +0000 (16:50 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 26 May 2010 16:50:05 +0000 (16:50 +0000)
ANALYSIS/AliAnalysisManager.cxx

index 44c4b9b..177b32a 100644 (file)
@@ -838,7 +838,7 @@ void AliAnalysisManager::Terminate()
       } else {
          if (output->GetData()->InheritsFrom(TTree::Class())) {
             TTree *tree = (TTree*)output->GetData();
-            tree->SetDirectory(file);
+            tree->SetDirectory(gDirectory);
             tree->AutoSave();
          } else {
             output->GetData()->Write();