]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Display macro with digits, clusters, reconstructed tracks (JB, AM)
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Apr 2000 13:39:11 +0000 (13:39 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 19 Apr 2000 13:39:11 +0000 (13:39 +0000)
RICH/RICHdisplay.C

index 23e765e61144515c0fec0fcb3df5212974f7fb40..24adaf86930e27d22ce2a66df51fc7210697bac7 100644 (file)
@@ -5,6 +5,10 @@ RICHdisplay (Int_t nevent=0) {
        gROOT->LoadMacro("loadlibs.C");
        loadlibs();
     }
+    else {
+      //delete gAlice;
+      gAlice = 0;
+    }
     
     
 // Connect the Root Galice file containing Geometry, Kine and Hits
@@ -23,12 +27,24 @@ RICHdisplay (Int_t nevent=0) {
        if (gAlice) printf("AliRun object found on file\n");
        if (!gAlice) gAlice = new AliRun("gAlice","Alice test program");
     }
+    else {
+      delete gAlice;
+      gAlice = (AliRun*)file->Get("gAlice");
+       if (gAlice) printf("AliRun object found on file\n");
+       if (!gAlice) gAlice = new AliRun("gAlice","Alice test program");
+    }
+    
     printf ("I'm after gAlice \n");
     
     // Create Event Display object
-    AliRICHdisplay *muondisplay = new AliRICHdisplay(750);
+    AliRICHDisplay *richdisplay = new AliRICHDisplay(750);
     
 // Display first event
     gAlice->GetEvent(nevent);
-    muondisplay->ShowNextEvent(0);
+    richdisplay->ShowNextEvent(0);
+    
+    
+    //file->Close();
+    //delete file;
+    //delete richdisplay;
 }