]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/MUONdisplay.C
Reconstruction for new coordenate system of alice. fSegmentMaxDistBending>0
[u/mrichter/AliRoot.git] / MUON / MUONdisplay.C
1 MUONdisplay (Int_t nevent=0, TString fileName="galice.root") {
2  
3   // Getting runloader 
4   AliRunLoader * RunLoader = AliRunLoader::Open(fileName,"MUONFolder","READ");
5   if (RunLoader == 0x0) {
6     Error("MUONdisplay","Inut file %s error!",fileName);
7     return;   
8   }
9   RunLoader->LoadHeader();
10   RunLoader->LoadKinematics("READ");
11
12   // Getting MUONloader 
13   AliLoader * MUONLoader  = RunLoader->GetLoader("MUONLoader");
14   MUONLoader->LoadHits("READ");
15   MUONLoader->LoadDigits("READ");
16   MUONLoader->LoadRecPoints("READ");
17
18   if (RunLoader->GetAliRun() == 0x0) RunLoader->LoadgAlice();
19   gAlice = RunLoader->GetAliRun();
20
21   // Getting Module MUON  
22   AliMUON * MUON  = (AliMUON *) gAlice->GetDetector("MUON");
23   if (!MUON) {
24     Error("MUONdisplay","Module MUON not found in the input file");
25     return;
26   }
27   // Getting Muon data
28   AliMUONData * muondata = MUON->GetMUONData(); 
29   muondata->SetLoader(MUONLoader);
30   muondata->SetTreeAddress("H,D,RC,GLT");
31
32 // Create Event Display object
33    AliMUONDisplay *muondisplay = new AliMUONDisplay(750);
34
35 // Display first event
36    RunLoader->GetEvent(nevent);
37    muondisplay->ShowNextEvent(0);
38 }