]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/MUONdisplay.C
Replacing rindex by strrchr
[u/mrichter/AliRoot.git] / MUON / MUONdisplay.C
CommitLineData
2e7b421f 1MUONdisplay (Int_t nevent=0, TString fileName="galice.root") {
7985603c 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");
a897a37a 11
7985603c 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");
fe4da5cc 31
fe4da5cc 32// Create Event Display object
a9e2aefa 33 AliMUONDisplay *muondisplay = new AliMUONDisplay(750);
fe4da5cc 34
35// Display first event
7985603c 36 RunLoader->GetEvent(nevent);
fe4da5cc 37 muondisplay->ShowNextEvent(0);
38}