3 void MUONrecodisplay(Int_t evNumber=0)
5 ////////////////////////////////////////////////////////////////////
6 // The display pops up a context menu when the right-button is //
7 // clicked on the main pad. The following functions are available //
8 // * SetDrawHits() - switches on or off Geant hits ; //
9 // * CutMomentum() - displays only tracks within Pmin - Pmax //
10 // * ListTracks() - prints ID and momentum info. for all //
11 // tracks within momentum range Pmin,Pmax; //
12 // * Highlight() - shows only one selected reco. track //
13 // and its best matching Geant track; //
14 // *UnHighlight() - self explaining; //
15 // *SetDrawHits() - switch on or off Geant hits //
16 ////////////////////////////////////////////////////////////////////
17 if (evNumber<0) return;
20 //Dynamically link some shared libs
21 if (gClassTable->GetID("AliRun") < 0) {
22 gROOT->LoadMacro("loadlibs.C");
27 // Connect the Root Galice file containing ...
29 TFile *galice_file = (TFile*)gROOT->GetListOfFiles()->FindObject("galice.root");
30 if (!galice_file) galice_file = new TFile("galice.root");
32 cout << "File galice.root not found\n";
36 // Get AliRun object from file or create it if not on file
38 gAlice = (AliRun*)galice_file->Get("gAlice");
40 cout << "AliRun object found on file\n";
42 cout << "AliRun object not found on file !!!\n";
47 AliMUONRecoDisplay *display = new AliMUONRecoDisplay(evNumber);
49 display->DisableDetector("ITS");
50 display->DisableDetector("TPC");
51 display->DisableDetector("TOF");
52 display->DisableDetector("RICH");
53 display->DisableDetector("ZDC");
54 display->DisableDetector("CASTOR");
55 display->DisableDetector("TRD");
56 display->DisableDetector("FMD");
57 display->DisableDetector("PHOS");
58 display->DisableDetector("PMD");
60 display->ShowNextEvent(0);