From 8ac5c1d7d11cfed0bf447ab0c9e2ca9488c76ee4 Mon Sep 17 00:00:00 2001 From: morsch Date: Fri, 8 May 2009 15:30:09 +0000 Subject: [PATCH] We need an anchor to open the .zip file. Simple use the current file from the chain. --- STEER/AliESDInputHandler.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/STEER/AliESDInputHandler.cxx b/STEER/AliESDInputHandler.cxx index 5b1554a5d06..29705f41c71 100644 --- a/STEER/AliESDInputHandler.cxx +++ b/STEER/AliESDInputHandler.cxx @@ -123,14 +123,12 @@ Bool_t AliESDInputHandler::Notify(const char* path) TString fileName(path); if(fileName.Contains("#AliESDs.root")){ - fileName.ReplaceAll("#AliESDs.root", ""); zip = kTRUE; } else if (fileName.Contains("AliESDs.root")){ fileName.ReplaceAll("AliESDs.root", ""); } else if(fileName.Contains("#AliAOD.root")){ - fileName.ReplaceAll("#AliAOD.root", ""); zip = kTRUE; } else if(fileName.Contains("AliAOD.root")){ @@ -138,7 +136,6 @@ Bool_t AliESDInputHandler::Notify(const char* path) } else if(fileName.Contains("#galice.root")){ // For running with galice and kinematics alone... - fileName.ReplaceAll("#galice.root", ""); zip = kTRUE; } else if(fileName.Contains("galice.root")){ @@ -177,7 +174,7 @@ Bool_t AliESDInputHandler::Notify(const char* path) const char* name = 0x0; TString tagFilename; if (zip) { - TFile* file = TFile::Open(fileName.Data()); + TFile* file = fTree->GetCurrentFile(); TArchiveFile* arch = file->GetArchive(); TObjArray* arr = arch->GetMembers(); TIter next(arr); -- 2.39.3