]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/MUONTriggerLut.C
Renaming method Getand Set DetElemId in RawCluster class (Gines)
[u/mrichter/AliRoot.git] / MUON / MUONTriggerLut.C
CommitLineData
a9e2aefa 1#include "iostream.h"
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//---------------------------------------------------------
6void MUONTriggerLut()
7{
8//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
9// Dynamically link some shared libs
10 if (gClassTable->GetID("AliRun") < 0) {
11 gROOT->LoadMacro("loadlibs.C");
12 loadlibs();
13 }
14
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");
19
20// Get AliRun object from file or create it if not on file
21 printf ("I'm after Map \n");
22 if (!gAlice) {
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");
26 }
27 printf ("I'm after gAlice \n");
28//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
29
30 AliMUONTriggerLut* Lut= new AliMUONTriggerLut;
31 Lut->LoadLut();
32}
33
34