]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Create only one EventDisplay object
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jan 2004 13:39:04 +0000 (13:39 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 5 Jan 2004 13:39:04 +0000 (13:39 +0000)
macros/display.C

index 98d394d0921dffec16c8172a7a5afb5784b4ef79..1ff5f24e3729d51179a0fa749ddc9ef3a44fe49d 100644 (file)
@@ -40,18 +40,17 @@ void display (const char *filename="galice.root",Int_t nevent=0, Int_t * tracks=
     return;
   }
     
-// Create Event Display object
-   AliDisplay *edisplay = new AliDisplay(750);
-   if (ntracks>0) edisplay->SetTracksToDisplay(tracks, ntracks);
-
-// Display the requested event
+// Load data
    rl->GetEvent(nevent);
    rl->LoadKinematics();
    rl->LoadHeader();
    rl->LoadHits();
 
+// Create Event Display object
    AliDisplay *edisplay = new AliDisplay(750);
+   if (ntracks>0) edisplay->SetTracksToDisplay(tracks, ntracks);
    
+// Display the requested event
    edisplay->ShowNextEvent(0);
 
 // Define the buttons to switch on/off the existing modules