1 void geom_gentle_transparentlight(Bool_t register_as_global=kTRUE)
4 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
5 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
6 TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
9 if (register_as_global)
11 gEve->AddGlobalElement(gsre1);
14 // Fix visibility, color and transparency
16 gsre1->SetRnrSelf(kFALSE);
17 TEveElement::List_i i = gsre1->BeginChildren();
21 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
22 lvl1->SetRnrSelf(kFALSE);
23 TEveElement::List_i j = lvl1->BeginChildren();
25 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
26 lvl2->SetRnrSelf(kFALSE);
27 TEveElement::List_i k = lvl2->BeginChildren();
29 TEveGeoShape* its1 = (TEveGeoShape*) *k;
30 its1->SetRnrSelf(kTRUE);
31 its1->SetMainColor(1);
32 its1->SetMainTransparency(80);
35 TEveGeoShape* its2 = (TEveGeoShape*) *k;
36 its2->SetRnrSelf(kTRUE);
37 its2->SetMainColor(1);
38 its2->SetMainTransparency(80);
41 TEveGeoShape* its3 = (TEveGeoShape*) *k;
42 its3->SetRnrSelf(kTRUE);
43 its3->SetMainColor(1);
44 its3->SetMainTransparency(80);
50 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
51 lvl1->SetRnrSelf(kFALSE);
52 TEveElement::List_i j = lvl1->BeginChildren();
54 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
55 lvl2->SetRnrSelf(kFALSE);
56 TEveElement::List_i k = lvl2->BeginChildren();
58 TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
59 lvl3->SetRnrSelf(kFALSE);
60 lvl3->SetMainColor(1);
61 lvl3->SetMainTransparency(80);
62 TEveElement::List_i l = lvl3->BeginChildren();
64 TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
65 lvl4->SetRnrSelf(kFALSE);
66 TEveElement::List_i m = lvl4->BeginChildren();
68 TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
69 tpc1->SetRnrSelf(kTRUE);
70 tpc1->SetMainColor(1);
71 tpc1->SetMainTransparency(80);
74 TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
75 tpc2->SetMainColor(kGray);
76 tpc2->SetMainColor(1);
77 tpc2->SetMainTransparency(80);
80 TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
81 tpc3->SetRnrSelf(kTRUE);
82 tpc3->SetMainColor(1);
83 tpc3->SetMainTransparency(80);
90 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
91 lvl1->SetRnrSelf(kFALSE);
93 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
95 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
96 lvl2->SetRnrSelf(kTRUE);
97 lvl2->SetMainColor(1);
98 lvl2->SetMainTransparency(80);
106 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
107 lvl1->SetRnrSelf(kFALSE);
109 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
111 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
112 lvl2->SetRnrSelf(kTRUE);
113 lvl2->SetMainColor(1);
114 lvl2->SetMainTransparency(80);
121 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
122 lvl1->SetRnrSelf(kFALSE);
124 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); ++j)
126 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
127 lvl2->SetRnrSelf(kTRUE);
128 lvl2->SetMainColor(1);
129 lvl2->SetMainTransparency(80);
132 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
133 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
134 TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
137 // Fix visibility, color and transparency
139 gsre2->SetRnrSelf(kFALSE);
140 TEveElement::List_i i = gsre2->BeginChildren();
144 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
145 lvl1->SetRnrSelf(kFALSE);
146 TEveElement::List_i j = lvl1->BeginChildren();
148 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
149 lvl2->SetRnrSelf(kFALSE);
150 TEveElement::List_i k = lvl2->BeginChildren();
152 TEveGeoShape* its1 = (TEveGeoShape*) *k;
153 its1->SetRnrSelf(kTRUE);
154 its1->SetMainColor(1);
155 its1->SetMainTransparency(80);
159 TEveGeoShape* its2 = (TEveGeoShape*) *k;
160 its2->SetRnrSelf(kTRUE);
161 its2->SetMainColor(1);
162 its2->SetMainTransparency(80);
165 TEveGeoShape* its3 = (TEveGeoShape*) *k;
166 its3->SetRnrSelf(kTRUE);
167 its3->SetMainColor(1);
168 its3->SetMainTransparency(80);
175 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
176 lvl1->SetRnrSelf(kFALSE);
178 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
180 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
181 lvl2->SetRnrSelf(kTRUE);
182 lvl2->SetMainColor(1);
183 lvl2->SetMainTransparency(80);
190 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
191 lvl1->SetRnrSelf(kFALSE);
193 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
195 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
196 lvl2->SetRnrSelf(kTRUE);
197 lvl2->SetMainColor(1);
198 lvl2->SetMainTransparency(80);
206 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
207 lvl1->SetRnrSelf(kFALSE);
209 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
211 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
212 lvl2->SetRnrSelf(kTRUE);
213 lvl2->SetMainColor(1);
214 lvl2->SetMainTransparency(80);
217 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
218 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
219 TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
222 // Fix visibility, color and transparency
224 gsre3->SetRnrSelf(kFALSE);
225 TEveElement::List_i i = gsre3->BeginChildren();
229 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
230 lvl1->SetRnrSelf(kFALSE);
231 TEveElement::List_i j = lvl1->BeginChildren();
233 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
234 lvl2->SetRnrSelf(kFALSE);
235 TEveElement::List_i k = lvl2->BeginChildren();
237 TEveGeoShape* its1 = (TEveGeoShape*) *k;
238 its1->SetRnrSelf(kTRUE);
239 its1->SetMainColor(1);
242 TEveGeoShape* its2 = (TEveGeoShape*) *k;
243 its2->SetRnrSelf(kTRUE);
244 its2->SetMainColor(1);
247 TEveGeoShape* its3 = (TEveGeoShape*) *k;
248 its3->SetRnrSelf(kTRUE);
249 its3->SetMainColor(1);
256 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
257 lvl1->SetRnrSelf(kFALSE);
259 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
261 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
262 lvl2->SetRnrSelf(kTRUE);
263 lvl2->SetMainColor(1);
264 lvl2->SetMainTransparency(80);
272 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
273 lvl1->SetRnrSelf(kFALSE);
275 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
277 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
278 lvl2->SetRnrSelf(kTRUE);
279 lvl2->SetMainColor(1);
280 lvl2->SetMainTransparency(80);
287 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
288 lvl1->SetRnrSelf(kFALSE);
290 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
292 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
293 lvl2->SetRnrSelf(kTRUE);
294 lvl2->SetMainColor(1);
295 lvl2->SetMainTransparency(80);
299 //fix all the viewers
301 TEveElement* top = gEve->GetCurrentEvent();
303 AliEveMultiView *mv = AliEveMultiView::Instance();
305 mv->InitGeomGentle(gsre1, gsre2, gsre3);
307 gEve->FullRedraw3D(kTRUE, kTRUE);