]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/RICHdisplay.C
Introduction of the Copyright and cvs Log
[u/mrichter/AliRoot.git] / RICH / RICHdisplay.C
1 RICHdisplay (Int_t nevent=0) {
2 // Dynamically link some shared libs
3  
4     if (gClassTable->GetID("AliRun") < 0) {
5         gROOT->LoadMacro("loadlibs.C");
6         loadlibs();
7     }
8     
9     
10 // Connect the Root Galice file containing Geometry, Kine and Hits
11     
12     TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject("galice.root");
13     if (file) file->Close(); 
14     file = new TFile("galice.root","UPDATE");
15     file->ls();
16     
17     printf ("I'm after Map \n");
18     
19 // Get AliRun object from file or create it if not on file
20     
21     if (!gAlice) {
22         gAlice = (AliRun*)file->Get("gAlice");
23         if (gAlice) printf("AliRun object found on file\n");
24         if (!gAlice) gAlice = new AliRun("gAlice","Alice test program");
25     }
26     printf ("I'm after gAlice \n");
27     
28     // Create Event Display object
29     AliRICHdisplay *muondisplay = new AliRICHdisplay(750);
30     
31 // Display first event
32     gAlice->GetEvent(nevent);
33     muondisplay->ShowNextEvent(0);
34 }