1 MUONdisplay (Int_t nevent=0) {
2 // Dynamically link some shared libs
3 if (gClassTable->GetID("AliRun") < 0) {
4 gROOT->LoadMacro("loadlibs.C");
13 // Connect the Root Galice file containing Geometry, Kine and Hits
14 TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject("galice.root");
15 if (!file) file = new TFile("galice.root");
17 // Get AliRun object from file or create it if not on file
19 gAlice = (AliRun*)file->Get("gAlice");
20 if (gAlice) printf("AliRun object found on file\n");
21 if (!gAlice) gAlice = new AliRun("gAlice","Alice test program");
24 // Create Event Display object
25 AliMUONDisplay *muondisplay = new AliMUONDisplay(750);
27 // Display first event
28 gAlice->GetEvent(nevent);
29 muondisplay->ShowNextEvent(0);