3 void menu(const char *config="Config.C")
5 menu = new TControlBar("vertical","gAlice menu");
6 menu->AddButton(" Help to run gAlice ","AliceHelp()", "Explains how to use gAlice menus");
7 menu->AddButton("Run", "gAlice->Run()","Process an Alice event");
8 menu->AddButton("Run Lego", "gAlice->RunLego()","Special run to generate the radl/absl lego plots");
9 menu->AddButton("Top view", "DrawTopView()","Draw Top view (cut) of Alice");
10 menu->AddButton("Side view", "DrawSideView()","Draw Side view (cut) of Alice");
11 menu->AddButton("Front view", "DrawFrontView()","Draw Front view (cut) of Alice");
12 menu->AddButton("Menu Trees", ".x DrawTrees.C","Menu to display the Alice Geant trees");
13 menu->AddButton("Menu Pictures", ".x DrawPictures.C","Menu to display detectors in shaded mode");
14 menu->AddButton("Hide ON", "SetHide(1)","Activate drawing option HIDE");
15 menu->AddButton("Hide OFF", "SetHide(0)","DeActivate drawing option HIDE");
16 menu->AddButton("Shading ON", "SetShade(1)","Activate drawing option SHAD");
17 menu->AddButton("Shading OFF", "SetShade(0)","DeActivate drawing option SHAD");
18 // menu->AddButton("RayTracing ON", "SetRayTracing(1)","Activate drawing option RAYT");
19 // menu->AddButton("RayTracing OFF", "SetRayTracing(0)","DeActivate drawing option RAYT");
20 menu->AddButton("Box Clip ON", "SetBoxClip(1)","Activate clipping box");
21 menu->AddButton("Box Clip OFF", "SetBoxClip(0)","DeActivate clipping box");
22 // menu->AddButton("Parallel view", "SetViewType(1)","Set Parallel view");
23 // menu->AddButton("Perspective view","SetViewType(0)","Set Perspective view");
27 ((TGeant3*)gMC)->InitHIGZ();
33 gSystem->Exec("nedit AliceHelp.C &");
38 THIGZ *higz = (THIGZ*)gROOT->GetListOfCanvases()->FindObject("higz");
39 if (higz) higz->Range(0,0,20,20);
44 printf("Generating TOP view of Alice. Be patient one minute!\n");
46 ((TGeant3*)gMC)->Gdrawc("ALIC",2,0,10,10,0.01,0.01);
51 printf("Generating SIDE view of Alice. Be patient one minute!\n");
53 ((TGeant3*)gMC)->Gdrawc("ALIC",1,0,10,10,0.01,0.01);
58 printf("Generating FRONT view of Alice. Be patient one minute!\n");
60 ((TGeant3*)gMC)->Gdrawc("ALIC",3,0,10,10,0.01,0.01);
63 void SetHide(Int_t opt)
66 printf("Drawing option HIDE is ACTIVE!\n");
67 ((TGeant3*)gMC)->Gdopt("HIDE","ON");
69 printf("Drawing option HIDE is NOT ACTIVE!\n");
70 ((TGeant3*)gMC)->Gdopt("HIDE","OFF");
74 void SetShade(Int_t opt)
77 printf("Drawing option SHAD is ACTIVE!\n");
78 ((TGeant3*)gMC)->Gdopt("SHAD","ON");
80 printf("Drawing option SHAD is NOT ACTIVE!\n");
81 ((TGeant3*)gMC)->Gdopt("SHAD","OFF");
85 void SetRayTracing(Int_t opt)
88 printf("Drawing option RAYT is ACTIVE!\n");
89 ((TGeant3*)gMC)->Gdopt("RAYT","ON");
91 printf("Drawing option RAYT is NOT ACTIVE!\n");
92 ((TGeant3*)gMC)->Gdopt("RAYT","OFF");
96 void SetBoxClip(Int_t opt)
99 printf("Clipping BOX is ACTIVE!\n");
100 ((TGeant3*)gMC)->SetClipBox("*", 0, 1000, -1000, 1000, -1000, 1000);
102 printf("Clipping BOX is NOT ACTIVE!\n");
103 ((TGeant3*)gMC)->SetClipBox(".");
107 void SetViewType(Int_t opt)
110 printf("Setting PARALLEL view!\n");
111 ((TGeant3*)gMC)->Gdopt("PROJ","PARA");
113 printf("Setting PERSPECTIVE view!\n");
114 ((TGeant3*)gMC)->Gdopt("PROJ","PERS");