]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/RICHmenu.C
Added AliL3Stopwatch.
[u/mrichter/AliRoot.git] / RICH / RICHmenu.C
CommitLineData
717fa0e2 1
2Int_t events;
3
4RICHmenu(Int_t nev=1)
5{
6
7 // static Int_t events;
8
9 //printf("Called for %d events.",events);
10
11 //gAlice=0;
12 //char *confi="Config.C";
13 //Int_t events=10;
14
15 events=nev;
16
17 char *str="\"Number of events %d\"";
18
19 TControlBar *menu = new TControlBar("vertical","RICH menu");
e2e5f75b 20 menu->AddButton(" Help for RICH ","gSystem->Exec(\"less RICHHelp.txt\");", "Explains how to use RICH menus");
ca163428 21 menu->AddButton("Configure", "gSystem->Exec(\"rconfig\"); gSystem->Exit(0);","Interactive Configuration");
717fa0e2 22 menu->AddButton("Run", "gAlice->Run(events)","Process an Alice event - WARNING: Overwrites previous data file!");
5ebc6391 23 menu->AddButton("Run Lego", ".x RICHRunLego.C","Special runs to generate the radl/absl lego plots");
ca163428 24 menu->AddButton("Digitise Event", ".x RICHdigit.C(0,events-1,0)","Digitise event");
25 menu->AddButton(" Merge and Digitise Event ", ".x RICHdigit.C(0,events-1,1)","Merge with background file and digitise");
717fa0e2 26 menu->AddButton("Clusterize Event", ".x RICHrawclusters.C(0,events-1)","Reconstruct clusters");
27 // TODO: add the diaglevel here before the script
28 menu->AddButton("3D Hough Pat. Rec.", ".x RICHdetect.C(0,events-1)","Lisbon");
29 menu->AddButton("1D Hough Pat. Rec.", ".x RICHpatrec.C(0,events-1)","Bari");
30 menu->AddButton("Diagnostics", ".x RICHDiagnostics.C(events)","Miscellaneous diagnostics");
31 menu->AddButton("Display", ".x RICHdisplay.C","Display run");
32 menu->AddButton("Geometry Browser", "Gui()","Browse the GEANT geometry - WARNING: Overwrites previous data file!");
33 menu->AddButton("File Browser", "TBrowser new;","Browse data files");
717fa0e2 34// menu->AddButton("Draw", ".x DrawRICH.C","bla bla");
35// menu->AddButton("View", ".x ViewRICH.C","does nothing???");
36 menu->AddButton("Quit AliRoot", ".q","Close session");
37// menu->AddButton("Reset", "RICHReset()","Close and Restart AliRoot");
38
39 //gROOT->SaveContext();
40
41 //gAlice->Init(config);
42 //((TGeant3*)gMC)->InitHIGZ();
43
44 menu->Show();
45}
46
47void RICHHelp()
48{
49 gSystem->Exec("xemacs RICHHelp.C &");
50}
51
52void RICHInit(Int_t events)
53{
54 gAlice->Init("Config.C");
55 ((TGeant3*)gMC)->InitHIGZ();
56 gAlice->Run(events);
57}
58
59void Gui()
60{
61 gAlice->Init("Config.C");
62 ((TGeant3*)gMC)->InitHIGZ();
63 gROOT->ProcessLine(".x TGeant3GUI.C");
717fa0e2 64}
65
66
67void RICHReset()
68{
69// gSystem->Exec("aliroot mrich.C &");
70
ca163428 71 gSystem->Exec("xterm +ls -e aliroot mrich.C &");
717fa0e2 72 gSystem->Exit(0);
73}
74
75