]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/RICHmenu.C
added the delete of EMCAL object posted in the folder when new file is opened
[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("      Help for RICH      ","RICHHelp()", "Explains how to use RICH menus");
22    menu->AddButton("Configure",            "gSystem->Exec(\"rconfig\"); gSystem->Exit(0);","Interactive Configuration");
23    menu->AddButton("Run",               "gAlice->Run(events)","Process an Alice event - WARNING: Overwrites previous data file!");
24    menu->AddButton("Run Lego",          ".x RICHRunLego.C","Special runs to generate the radl/absl lego plots");
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");
27    menu->AddButton("Clusterize Event",      ".x RICHrawclusters.C(0,events-1)","Reconstruct clusters");
28    menu->AddButton("Reconstruct Event",       ".x RICHreco.C(events)","Reconstruction algortihms");
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");
33    menu->AddButton("Draw RICH Detector",              "Draw()","Draw the GEANT defined modules");
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
45 void RICHHelp()
46 {
47    gSystem->Exec("emacs RICHHelp.txt &");
48 }
49
50 void RICHInit(Int_t events)
51 {
52   gAlice->Init("Config.C");
53   ((TGeant3*)gMC)->InitHIGZ();
54   gAlice->Run(events);
55 }
56
57 void Gui()
58 {
59   gAlice->Init("Config.C");
60   ((TGeant3*)gMC)->InitHIGZ();
61   gROOT->ProcessLine(".x TGeant3GUI.C");
62 }
63
64 void Draw()
65 {
66   gAlice->Init("Config.C");
67   ((TGeant3*)gMC)->InitHIGZ();
68   gROOT->ProcessLine(".x DrawRICH.C");
69 }
70
71 void RICHReset()
72 {
73 //   gSystem->Exec("aliroot mrich.C &");
74
75   gSystem->Exec("xterm +ls -e aliroot mrich.C &");
76    gSystem->Exit(0);
77 }
78
79