1 void geom_gentle_tpc(Bool_t register_as_global=kTRUE)
3 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo.root");
4 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
5 TEveGeoShape* gsre1 = TEveGeoShape::ImportShapeExtract(gse);
8 if (register_as_global)
10 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(kRed);
34 TEveGeoShape* its2 = (TEveGeoShape*) *k;
35 its2->SetRnrSelf(kTRUE);
36 its2->SetMainColor(kRed+2);
39 TEveGeoShape* its3 = (TEveGeoShape*) *k;
40 its3->SetRnrSelf(kTRUE);
41 its3->SetMainColor(kRed+4);
47 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
48 lvl1->SetRnrSelf(kFALSE);
49 TEveElement::List_i j = lvl1->BeginChildren();
51 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
52 lvl2->SetRnrSelf(kFALSE);
53 TEveElement::List_i k = lvl2->BeginChildren();
55 TEveGeoShape* lvl3 = (TEveGeoShape*) *k;
56 lvl3->SetRnrSelf(kTRUE);
57 lvl3->SetMainColor(kBlue);
58 TEveElement::List_i l = lvl3->BeginChildren();
60 TEveGeoShape* lvl4 = (TEveGeoShape*) *l;
61 lvl4->SetRnrSelf(kFALSE);
62 TEveElement::List_i m = lvl4->BeginChildren();
64 TEveGeoShape* tpc1 = (TEveGeoShape*) *m;
65 tpc1->SetRnrSelf(kTRUE);
66 tpc1->SetMainColor(kGray);
69 TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
70 tpc2->SetRnrSelf(kTRUE);
71 tpc2->SetMainColor(kGray);
74 TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
75 tpc3->SetRnrSelf(kTRUE);
76 tpc3->SetMainColor(kGray);
83 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
84 lvl1->SetRnrSelf(kFALSE);
86 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
88 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
89 lvl2->SetRnrSelf(kFALSE);
97 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
98 lvl1->SetRnrSelf(kFALSE);
100 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
102 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
103 lvl2->SetRnrSelf(kFALSE);
110 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
111 lvl1->SetRnrSelf(kFALSE);
113 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
115 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
116 lvl2->SetRnrSelf(kFALSE);
120 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
121 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
122 TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
125 // Fix visibility, color and transparency
127 gsre2->SetRnrSelf(kFALSE);
128 TEveElement::List_i i = gsre2->BeginChildren();
132 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
133 lvl1->SetRnrSelf(kFALSE);
134 TEveElement::List_i j = lvl1->BeginChildren();
136 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
137 lvl2->SetRnrSelf(kFALSE);
138 TEveElement::List_i k = lvl2->BeginChildren();
140 TEveGeoShape* its1 = (TEveGeoShape*) *k;
141 its1->SetRnrSelf(kTRUE);
142 its1->SetMainColor(kRed);
145 TEveGeoShape* its2 = (TEveGeoShape*) *k;
146 its2->SetRnrSelf(kTRUE);
147 its2->SetMainColor(kRed+2);
150 TEveGeoShape* its3 = (TEveGeoShape*) *k;
151 its3->SetRnrSelf(kTRUE);
152 its3->SetMainColor(kRed+4);
159 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
160 lvl1->SetRnrSelf(kFALSE);
162 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
164 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
165 lvl2->SetRnrSelf(kFALSE);
173 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
174 lvl1->SetRnrSelf(kFALSE);
176 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
178 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
179 lvl2->SetRnrSelf(kFALSE);
186 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
187 lvl1->SetRnrSelf(kFALSE);
189 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
191 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
192 lvl2->SetRnrSelf(kFALSE);
195 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
196 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
197 TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
200 // Fix visibility, color and transparency
202 gsre3->SetRnrSelf(kFALSE);
203 TEveElement::List_i i = gsre3->BeginChildren();
207 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
208 lvl1->SetRnrSelf(kFALSE);
209 TEveElement::List_i j = lvl1->BeginChildren();
211 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
212 lvl2->SetRnrSelf(kFALSE);
213 TEveElement::List_i k = lvl2->BeginChildren();
215 TEveGeoShape* its1 = (TEveGeoShape*) *k;
216 its1->SetRnrSelf(kTRUE);
217 its1->SetMainColor(kRed);
220 TEveGeoShape* its2 = (TEveGeoShape*) *k;
221 its2->SetRnrSelf(kTRUE);
222 its2->SetMainColor(kRed+2);
225 TEveGeoShape* its3 = (TEveGeoShape*) *k;
226 its3->SetRnrSelf(kTRUE);
227 its3->SetMainColor(kRed+4);
234 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
235 lvl1->SetRnrSelf(kFALSE);
237 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
239 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
240 lvl2->SetRnrSelf(kFALSE);
248 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
249 lvl1->SetRnrSelf(kFALSE);
251 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
253 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
254 lvl2->SetRnrSelf(kFALSE);
261 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
262 lvl1->SetRnrSelf(kFALSE);
264 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
266 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
267 lvl2->SetRnrSelf(kFALSE);
271 TEveElement* top = gEve->GetCurrentEvent();
273 AliEveMultiView *mv = AliEveMultiView::Instance();
275 mv->InitGeomGentle(gsre1, gsre2, gsre3);
277 gEve->FullRedraw3D(kTRUE, kTRUE);