1 void geom_gentle_transparent(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->SetMainTransparency(80);
34 TEveGeoShape* its2 = (TEveGeoShape*) *k;
35 its2->SetRnrSelf(kTRUE);
36 its2->SetMainTransparency(80);
39 TEveGeoShape* its3 = (TEveGeoShape*) *k;
40 its3->SetRnrSelf(kTRUE);
41 its3->SetMainTransparency(80);
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->SetMainTransparency(80);
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->SetMainTransparency(80);
69 TEveGeoShape* tpc2 = (TEveGeoShape*) *m;
70 tpc2->SetMainColor(kGray);
71 tpc2->SetMainTransparency(80);
74 TEveGeoShape* tpc3 = (TEveGeoShape*) *m;
75 tpc3->SetRnrSelf(kTRUE);
76 tpc3->SetMainTransparency(80);
83 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
84 lvl1->SetRnrSelf(kFALSE);
85 TEveElement::List_i j = lvl1->BeginChildren();
87 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
88 lvl2->SetRnrSelf(kTRUE);
89 lvl2->SetMainTransparency(80);
92 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
93 lvl2->SetRnrSelf(kTRUE);
94 lvl2->SetMainTransparency(80);
101 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
102 lvl1->SetRnrSelf(kFALSE);
104 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
106 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
107 lvl2->SetRnrSelf(kTRUE);
108 lvl2->SetMainTransparency(80);
115 TEveGeoShape* lvl1 = (TEveGeoShape*) *i;
116 lvl1->SetRnrSelf(kFALSE);
118 for (TEveElement::List_i j = lvl1->BeginChildren(); j != lvl1->EndChildren(); j++)
120 TEveGeoShape* lvl2 = (TEveGeoShape*) *j;
121 lvl2->SetRnrSelf(kTRUE);
122 lvl2->SetMainTransparency(80);
126 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rphi_geo.root");
127 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
128 TEveGeoShape* gsre2 = TEveGeoShape::ImportShapeExtract(gse);
131 TFile f("$ALICE_ROOT/EVE/alice-data/gentle_rhoz_geo.root");
132 TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle");
133 TEveGeoShape* gsre3 = TEveGeoShape::ImportShapeExtract(gse);
136 TEveElement* top = gEve->GetCurrentEvent();
138 AliEveMultiView *mv = AliEveMultiView::Instance();
140 mv->InitGeomGentle(gsre1, gsre2, gsre3);
142 gEve->FullRedraw3D(kTRUE, kTRUE);