7 // static Int_t events;
9 //printf("Called for %d events.",events);
12 //char *confi="Config.C";
17 char *str="\"Number of events %d\"";
19 TControlBar *menu = new TControlBar("vertical","RICH menu");
20 menu->AddButton(" Help for RICH ","gSystem->Exec(\"less RICHHelp.txt\");", "Explains how to use RICH menus");
21 menu->AddButton("Configure", "gSystem->Exec(\"rconfig\"); gSystem->Exit(0);","Interactive Configuration");
22 menu->AddButton("Run", "gAlice->Run(events)","Process an Alice event - WARNING: Overwrites previous data file!");
23 menu->AddButton("Run Lego", ".x RICHRunLego.C","Special runs to generate the radl/absl lego plots");
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");
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("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");
39 //gROOT->SaveContext();
41 //gAlice->Init(config);
42 //((TGeant3*)gMC)->InitHIGZ();
49 gSystem->Exec("xemacs RICHHelp.C &");
52 void RICHInit(Int_t events)
54 gAlice->Init("Config.C");
55 ((TGeant3*)gMC)->InitHIGZ();
61 gAlice->Init("Config.C");
62 ((TGeant3*)gMC)->InitHIGZ();
63 gROOT->ProcessLine(".x TGeant3GUI.C");
69 // gSystem->Exec("aliroot mrich.C &");
71 gSystem->Exec("xterm +ls -e aliroot mrich.C &");