From 954526ed94670fec9928524aab98d7b758e1d4aa Mon Sep 17 00:00:00 2001 From: morsch Date: Fri, 26 Oct 2007 12:18:20 +0000 Subject: [PATCH] Call fTreeA->SetDirectory(0) in the proof case. --- STEER/AliAODHandler.cxx | 9 ++++----- STEER/AliAODHandler.h | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/STEER/AliAODHandler.cxx b/STEER/AliAODHandler.cxx index 6e450a2c528..d37a2f3d3ce 100644 --- a/STEER/AliAODHandler.cxx +++ b/STEER/AliAODHandler.cxx @@ -69,14 +69,12 @@ Bool_t AliAODHandler::InitIO(Option_t* opt) if (!(strcmp(opt, "proof"))) { // proof + CreateTree(0); } else { // local and grid fFileA = new TFile(fName, "RECREATE"); + CreateTree(1); } - // - // Create the output tree - CreateTree(); - return kTRUE; } @@ -107,11 +105,12 @@ Bool_t AliAODHandler::TerminateIO() } -void AliAODHandler::CreateTree() +void AliAODHandler::CreateTree(Int_t flag) { // Creates the AOD Tree fTreeA = new TTree("aodTree", "AliAOD tree"); fTreeA->Branch(fAODEvent->GetList()); + if (flag == 0) fTreeA->SetDirectory(0); } void AliAODHandler::FillTree() diff --git a/STEER/AliAODHandler.h b/STEER/AliAODHandler.h index 73cc666a03b..bcbc792685e 100644 --- a/STEER/AliAODHandler.h +++ b/STEER/AliAODHandler.h @@ -35,7 +35,7 @@ class AliAODHandler : public AliVEventHandler { // AliAODEvent* GetAOD() {return fAODEvent;} TTree* GetTree() {return fTreeA;} - void CreateTree(); + void CreateTree(Int_t flag); void FillTree(); void AddAODtoTreeUserInfo(); // -- 2.43.0