Run loader stored in galice.root (T.Kuhr)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Apr 2004 09:39:01 +0000 (09:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 21 Apr 2004 09:39:01 +0000 (09:39 +0000)
STEER/AliRunDigitizer.cxx

index 14e9fc001b1fb19963cc66e91bab3318ec3bde0d..77db783d9459f36bef3e73f3cada70b8b7af6560 100644 (file)
@@ -450,10 +450,8 @@ void AliRunDigitizer::FinishGlobal()
      Error("FinishGlobal","Can not get RunLoader from Output Stream folder");
      return;
    }
-  TFile* file = TFile::Open(fOutputDirName + "/digitizer.root", "recreate");
-  this->Write();
-  file->Close();
-  delete file;
+  GetOutRunLoader()->CdGAFile();
+  this->Write(NULL, TObject::kOverwrite);
   if (fOutRunLoader)
    {
      fOutRunLoader->WriteHeader("OVERWRITE");