]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/RICHmenu.C
Testing TreeS, removing of output.
[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");
717fa0e2 21 menu->AddButton("Configure", "gSystem->Exec(\"rconfig\"); gSystem->Exit(0);","Configure the simulation");
22 //menu->AddButton("Run", "RICHInit(nev)","Process an Alice event - WARNING: Overwrites previous data file!");
23 menu->AddButton("Run", "gAlice->Run(events)","Process an Alice event - WARNING: Overwrites previous data file!");
5ebc6391 24 menu->AddButton("Run Lego", ".x RICHRunLego.C","Special runs to generate the radl/absl lego plots");
717fa0e2 25 menu->AddButton("Digitise Event", ".x RICHdigit.C(0,events-1)","Digitise event");
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");
34// menu->AddButton("Test", ".x RICHtest.C","bla bla");
35// menu->AddButton("Edit Configuration",".x RICHConfig.C","Interactive Configuration");
36// menu->AddButton("Draw", ".x DrawRICH.C","bla bla");
37// menu->AddButton("View", ".x ViewRICH.C","does nothing???");
38 menu->AddButton("Quit AliRoot", ".q","Close session");
39// menu->AddButton("Reset", "RICHReset()","Close and Restart AliRoot");
40
41 //gROOT->SaveContext();
42
43 //gAlice->Init(config);
44 //((TGeant3*)gMC)->InitHIGZ();
45
46 menu->Show();
47}
48
49void RICHHelp()
50{
51 gSystem->Exec("xemacs RICHHelp.C &");
52}
53
54void RICHInit(Int_t events)
55{
56 gAlice->Init("Config.C");
57 ((TGeant3*)gMC)->InitHIGZ();
58 gAlice->Run(events);
59}
60
61void Gui()
62{
63 gAlice->Init("Config.C");
64 ((TGeant3*)gMC)->InitHIGZ();
65 gROOT->ProcessLine(".x TGeant3GUI.C");
66 //printf("Doesn't work yet\n");
67}
68
69
70void RICHReset()
71{
72// gSystem->Exec("aliroot mrich.C &");
73
74 // This doesn't work for Win (eheheh) and aliroot must be in the path
75 gSystem->Exec("xterm +ls -e aliroot mrich.C &");
76 gSystem->Exit(0);
77}
78
79