Opening file with tracks changed
authorskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Dec 2001 14:41:27 +0000 (14:41 +0000)
committerskowron <skowron@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Dec 2001 14:41:27 +0000 (14:41 +0000)
HBTAN/AliHBTReaderITSv1.cxx

index 8e50572..da5418a 100644 (file)
@@ -252,9 +252,8 @@ TFile* AliHBTReaderITSv1::OpenTrackFile(Int_t ndir)
       return 0x0;
     }
    TString filename = dirname + "/" + fITSTracksFileName;
-   TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(filename.Data());
-   if (!file) file = new TFile(filename.Data());
-   
+
+   TFile *file = TFile::Open(filename.Data());   
    if (!file)
     {
       Error("Read","Can not open file %s",filename.Data());