gAlice now only read by AliRunDigitizer. Therefore it is just deleted in AliTRDmerge.C
[u/mrichter/AliRoot.git] / TRD / AliTRDmerge.C
index 53084a8646fa04262afc39568db977e408c8f291..b1755b557c469276ad534c528feb938cdb02c03b 100644 (file)
@@ -10,11 +10,9 @@ void AliTRDmerge()
   Char_t *fileBackground = "galice_background.root";
 
   if (gAlice) {
-    printf("<AliTRDmerge> Get AliRun object from signal file.\n");
-    TFile *fFileSignal = new TFile(fileSignal); 
+    printf("<AliTRDmerge> Delete the AliRun object from memory.\n");
     delete gAlice;
-    gAlice = (AliRun *) fFileSignal->Get("gAlice");
-    fFileSignal->Close();
+    gAlice = 0;
   }
 
   AliRunDigitizer *manager = new AliRunDigitizer(2,1);