1 // This macro displays the hits belonging to a track for selected detectors
2 // Input: in the tracks contains the interesting tracks
3 // ntracks is the number of interesing tracks
4 // The default values correspond to "Show everything"
5 // Note: For the moment it works only with HIJING events, the PYTHIA is
7 //#include <ClassTable.h>
9 void display2(const char *filename="galice.root", Int_t nevent=0,
10 Int_t *tracks=0, Int_t ntracks=0)
12 // Dynamically link some shared libs
13 if (gClassTable->GetID("AliRun") < 0) {
14 gROOT->LoadMacro("loadlibs.C");
17 delete gAlice->GetRunLoader();
21 //gSystem->Load("libAliL3Src");
22 gSystem->Load("libDISPLAY");
24 // Connect the ROOT Galice file containing Geometry, Kine and Hits
26 TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject(filename);
28 Info("display2.C", "galice.root is already open");
30 rl = AliRunLoader::Open(filename, "DISPLAYED EVENT");
33 Error("display2.C", "can not get Run Loader, exiting...");
37 // Get AliRun object from file or create it if not on file
40 gAlice = rl->GetAliRun();
42 Error("display2.C", "AliRun object not found on file, exiting...");
46 // Create Event Display object
47 AliDisplay2 *edisplay = new AliDisplay2(gClient->GetRoot(), 900, 700);
48 // if (ntracks > 0) edisplay->SetTracksToDisplay(tracks, ntracks);
50 // Display the requested event
56 //edisplay->FindModules();
57 edisplay->ShowNextEvent(0);