2 //---------------------------------------------------------
3 // this macro is used to generate the Trigger Look up Table
4 // and store the TH3S histos in the MUONTriggerLut.root file
5 //---------------------------------------------------------
8 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9 // Dynamically link some shared libs
10 if (gClassTable->GetID("AliRun") < 0) {
11 gROOT->LoadMacro("loadlibs.C");
15 // Connect the Root Galice file containing Geometry, Kine and Hits
16 TFile *file = (TFile*)gROOT->GetListOfFiles()->FindObject("galice.root");
17 if (file) file->Close();
18 file = new TFile("galice.root","READ");
20 // Get AliRun object from file or create it if not on file
21 printf ("I'm after Map \n");
23 gAlice = (AliRun*)file->Get("gAlice");
24 if (gAlice) printf("AliRun object found on file\n");
25 if (!gAlice) gAlice = new AliRun("gAlice","Alice test program");
27 printf ("I'm after gAlice \n");
28 //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30 AliMUONTriggerLut* Lut= new AliMUONTriggerLut;