]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/RICHmenu.C
Addition to keep the on the flight compilation silent
[u/mrichter/AliRoot.git] / RICH / RICHmenu.C
1
2 Int_t events;
3
4 RICHmenu(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");
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");
38    
39    //gROOT->SaveContext();
40
41    //gAlice->Init(config);
42    //((TGeant3*)gMC)->InitHIGZ();
43
44    menu->Show();
45 }
46
47 void RICHHelp()
48 {
49    gSystem->Exec("xemacs RICHHelp.C &");
50 }
51
52 void RICHInit(Int_t events)
53 {
54   gAlice->Init("Config.C");
55   ((TGeant3*)gMC)->InitHIGZ();
56   gAlice->Run(events);
57 }
58
59 void Gui()
60 {
61   gAlice->Init("Config.C");
62   ((TGeant3*)gMC)->InitHIGZ();
63   gROOT->ProcessLine(".x TGeant3GUI.C");
64 }
65
66
67 void RICHReset()
68 {
69 //   gSystem->Exec("aliroot mrich.C &");
70
71   gSystem->Exec("xterm +ls -e aliroot mrich.C &");
72    gSystem->Exit(0);
73 }
74
75