Corrected bug with the galice.root opening
authorkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Jun 2001 16:19:51 +0000 (16:19 +0000)
committerkowal2 <kowal2@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Jun 2001 16:19:51 +0000 (16:19 +0000)
TPC/AliTPCHits2Digits.C

index 30a7f30..f849b47 100644 (file)
@@ -9,7 +9,7 @@ Int_t AliTPCHits2Digits()
   const char * inFile_new = "rfio:galice.root";
   TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(inFile_old);
   if (file) {file->Close(); delete file;}
-  file = new TFile(inFile_new,"UPDATE");
+  file =  TFile::Open(inFile_new,"UPDATE");
   if (!file->IsOpen()) {
     cerr<<"Can't open "<<inFile_new<<" !\n";
     return 1;