]>
Commit | Line | Data |
---|---|---|
1 | /************************************************************************** | |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | ||
17 | #if !defined(__CINT__) || defined(__MAKECINT__) | |
18 | //#include "iostream.h" | |
19 | ||
20 | #include <TClassTable.h> | |
21 | #include <TClonesArray.h> | |
22 | #include <TFile.h> | |
23 | #include <TParticle.h> | |
24 | #include <TROOT.h> | |
25 | #include <TTree.h> | |
26 | ||
27 | #include "AliHeader.h" | |
28 | #include "AliRun.h" | |
29 | #include "AliRunLoader.h" | |
30 | #include "AliMagF.h" | |
31 | ||
32 | #include "AliMUON.h" | |
33 | #include "AliMUONDisplay.h" | |
34 | #endif | |
35 | ||
36 | ||
37 | ||
38 | void MUONdisplay (Int_t nevent=0, TString fileName="galice.root") { | |
39 | ||
40 | // set off mag field | |
41 | AliMagF::SetReadField(kFALSE); | |
42 | ||
43 | // Getting runloader | |
44 | AliRunLoader * RunLoader = AliRunLoader::Open(fileName.Data(),"MUONFolder","READ"); | |
45 | if (RunLoader == 0x0) { | |
46 | Error("MUONdisplay","Inut file %s error!",fileName.Data()); | |
47 | return; | |
48 | } | |
49 | RunLoader->LoadHeader(); | |
50 | RunLoader->LoadKinematics("READ"); | |
51 | ||
52 | // if (RunLoader->GetAliRun() == 0x0) | |
53 | RunLoader->LoadgAlice(); | |
54 | gAlice = RunLoader->GetAliRun(); | |
55 | ||
56 | // Getting MUONloader | |
57 | AliLoader * MUONLoader = RunLoader->GetLoader("MUONLoader"); | |
58 | MUONLoader->LoadHits("READ"); | |
59 | MUONLoader->LoadDigits("READ"); | |
60 | MUONLoader->LoadRecPoints("READ"); | |
61 | MUONLoader->LoadTracks("READ"); | |
62 | ||
63 | ||
64 | // Create Event Display object | |
65 | AliMUONDisplay *muondisplay = new AliMUONDisplay(750, MUONLoader); | |
66 | ||
67 | // Display first event | |
68 | RunLoader->GetEvent(nevent); | |
69 | muondisplay->ShowNextEvent(0); | |
70 | } |