]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RICH/RICHmenu.C
Transition to NewIO
[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");
f0c5c179 20 //menu->AddButton(" Help for RICH ","gSystem->Exec(\"less RICHHelp.txt\");", "Explains how to use RICH menus");
21 menu->AddButton(" Help for RICH ","RICHHelp()", "Explains how to use RICH menus");
ca163428 22 menu->AddButton("Configure", "gSystem->Exec(\"rconfig\"); gSystem->Exit(0);","Interactive Configuration");
717fa0e2 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");
f0c5c179 25 menu->AddButton("Digitise Event", ".x RICHdigit.C(events, 0)","Digitise event");
26 menu->AddButton(" Merge and Digitise Event ", ".x RICHdigit.C(events,1)","Merge with background file and digitise");
717fa0e2 27 menu->AddButton("Clusterize Event", ".x RICHrawclusters.C(0,events-1)","Reconstruct clusters");
f0c5c179 28 menu->AddButton("Reconstruct Event", ".x RICHreco.C(events)","Reconstruction algortihms");
717fa0e2 29 menu->AddButton("Diagnostics", ".x RICHDiagnostics.C(events)","Miscellaneous diagnostics");
30 menu->AddButton("Display", ".x RICHdisplay.C","Display run");
31 menu->AddButton("Geometry Browser", "Gui()","Browse the GEANT geometry - WARNING: Overwrites previous data file!");
32 menu->AddButton("File Browser", "TBrowser new;","Browse data files");
f0c5c179 33 menu->AddButton("Draw RICH Detector", "Draw()","Draw the GEANT defined modules");
717fa0e2 34 menu->AddButton("Quit AliRoot", ".q","Close session");
35// menu->AddButton("Reset", "RICHReset()","Close and Restart AliRoot");
36
37 //gROOT->SaveContext();
38
39 //gAlice->Init(config);
40 //((TGeant3*)gMC)->InitHIGZ();
41
42 menu->Show();
43}
44
45void RICHHelp()
46{
f0c5c179 47 gSystem->Exec("emacs RICHHelp.txt &");
717fa0e2 48}
49
50void RICHInit(Int_t events)
51{
52 gAlice->Init("Config.C");
53 ((TGeant3*)gMC)->InitHIGZ();
54 gAlice->Run(events);
55}
56
57void Gui()
58{
59 gAlice->Init("Config.C");
60 ((TGeant3*)gMC)->InitHIGZ();
61 gROOT->ProcessLine(".x TGeant3GUI.C");
717fa0e2 62}
63
f0c5c179 64void Draw()
65{
66 gAlice->Init("Config.C");
67 ((TGeant3*)gMC)->InitHIGZ();
68 gROOT->ProcessLine(".x DrawRICH.C");
69}
717fa0e2 70
71void RICHReset()
72{
73// gSystem->Exec("aliroot mrich.C &");
74
ca163428 75 gSystem->Exec("xterm +ls -e aliroot mrich.C &");
717fa0e2 76 gSystem->Exit(0);
77}
78
79