Use directly TMath::Pi() and not kPI from TVector.h
[u/mrichter/AliRoot.git] / MUON / MUONdisplay.C
CommitLineData
fe4da5cc 1MUONdisplay (Int_t nevent=0) {
2// Dynamically link some shared libs
3 if (gClassTable->GetID("AliRun") < 0) {
4 gSystem->Load("$ALITOP/cern.so/lib/libpdfDUMMY.so");
5 gSystem->Load("$ALITOP/cern.so/lib/libPythia.so");
6 gSystem->Load("$ROOTSYS/lib/libEG.so");
7 gSystem->Load("$ROOTSYS/lib/libEGPythia.so");
8 gSystem->Load("libGeant3Dummy.so"); //a dummy version of Geant3
9 gSystem->Load("PHOS/libPHOSdummy.so"); //the standard Alice classes
10 gSystem->Load("libgalice.so"); //the standard Alice classes
11 }
12// Connect the Root Galice file containing Geometry, Kine and Hits
13 TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject("galice.root");
14 if (!file) file = new TFile("galice.root");
15
16// Get AliRun object from file or create it if not on file
17 if (!gAlice) {
18 gAlice = (AliRun*)file->Get("gAlice");
19 if (gAlice) printf("AliRun object found on file\n");
20 if (!gAlice) gAlice = new AliRun("gAlice","Alice test program");
21 }
22
23// Create Event Display object
24 AliMUONdisplay *muondisplay = new AliMUONdisplay(750);
25
26// Display first event
27 gAlice->GetEvent(nevent);
28 muondisplay->ShowNextEvent(0);
29}