]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RICH/mrich.C
Removing potentially obsolete macro.
[u/mrichter/AliRoot.git] / RICH / mrich.C
1 Int_t events=1;
2
3 mrich()
4
5
6   //gAlice=0;
7   //char *confi="Config.C";
8   //Int_t events=10;
9   
10    TControlBar *menu = new TControlBar("vertical","RICH menu");
11    menu->AddButton("      Help for RICH      ","RICHHelp()", "Explains how to use RICH menus");
12    menu->AddButton("Configure",            "gSystem->Exec(\"rconfig\"); gSystem->Exit(0);","Configure the simulation");
13    menu->AddButton("Run",               "RICHInit(events)","Process an Alice event - WARNING: Overwrites previous data file!");
14    //menu->AddButton("Run Lego",          "gAlice->RunLego()","Special run to generate the radl/absl lego plots");
15    menu->AddButton("Digitise Event",             ".x RICHdigit.C(0,events-1)","Digitise event");
16    menu->AddButton("Clusterize Event",      ".x RICHrawclusters.C(0,events-1)","Reconstruct clusters");
17    // TODO: add the diaglevel here before the script
18    menu->AddButton("3D Hough Pat. Rec.",      ".x RICHdetect.C(0,events-1)","Lisbon");
19    menu->AddButton("1D Hough Pat. Rec.",      ".x RICHpatrec.C(0,events-1)","Bari");
20    menu->AddButton("Diagnostics",       ".x RICHpadtest.C(3,0,events-1)","Miscellaneous diagnostics");
21    menu->AddButton("Display",           ".x RICHdisplay.C","Display run");
22    menu->AddButton("Geometry Browser",           "Gui()","Browse the GEANT geometry - WARNING: Overwrites previous data file!");
23    menu->AddButton("File Browser",           "TBrowser new;","Browse data files");
24 //   menu->AddButton("Test",              ".x RICHtest.C","bla bla");
25 //   menu->AddButton("Edit Configuration",".x RICHConfig.C","Interactive Configuration");
26 //   menu->AddButton("Draw",              ".x DrawRICH.C","bla bla");
27 //   menu->AddButton("View",              ".x ViewRICH.C","does nothing???");
28    menu->AddButton("Quit",             ".q","Close session");
29 //   menu->AddButton("Reset",             "RICHReset()","Close and Restart AliRoot");
30    
31    //gROOT->SaveContext();
32
33    //gAlice->Init(config);
34    //((TGeant3*)gMC)->InitHIGZ();
35
36    menu->Show();
37 }
38
39 void RICHHelp()
40 {
41    gSystem->Exec("xemacs RICHHelp.C &");
42 }
43
44 void RICHInit(Int_t events)
45 {
46   gAlice->Init("Config.C");
47   ((TGeant3*)gMC)->InitHIGZ();
48   gAlice->Run(events);
49 }
50
51 void Gui()
52 {
53   gAlice->Init("Config.C");
54   ((TGeant3*)gMC)->InitHIGZ();
55   gROOT->ProcessLine(".x TGeant3GUI.C");
56   //printf("Doesn't work yet\n");
57 }
58
59
60 void RICHReset()
61 {
62 //   gSystem->Exec("aliroot mrich.C &");
63
64    // This doesn't work for Win (eheheh) and aliroot must be in the path
65    gSystem->Exec("xterm +ls -e aliroot mrich.C &");
66    gSystem->Exit(0);
67 }
68
69