]>
Commit | Line | Data |
---|---|---|
83ab188e | 1 | void DrawDeep(TEveGeoShape *gsre) { |
2 | ||
3 | for (TEveElement::List_i i = gsre->BeginChildren(); i != gsre->EndChildren(); ++i) { | |
4 | TEveGeoShape* lvl = (TEveGeoShape*) *i; | |
5 | lvl->SetRnrSelf(kFALSE); | |
6 | if (!lvl->HasChildren()) { | |
7 | lvl->SetRnrSelf(kTRUE); | |
8 | lvl->SetMainColor(3); | |
9 | lvl->SetMainTransparency(50); | |
10 | } | |
11 | DrawDeep(lvl); | |
12 | } | |
13 | ||
14 | } | |
15 | ||
16 | TEveGeoShape* geom_gentle_muon_draw() { | |
17 | ||
18 | TFile f("$ALICE_ROOT/EVE/alice-data/gentle_geo_muon.root"); | |
19 | TEveGeoShapeExtract* gse = (TEveGeoShapeExtract*) f.Get("Gentle MUON"); | |
20 | TEveGeoShape* gsre = TEveGeoShape::ImportShapeExtract(gse); | |
21 | gEve->AddGlobalElement(gsre); | |
22 | f.Close(); | |
23 | ||
24 | gsre->SetRnrSelf(kFALSE); | |
25 | ||
26 | DrawDeep(gsre); | |
27 | ||
28 | TGLViewer* v = gEve->GetDefaultGLViewer(); | |
29 | v->UpdateScene(); | |
30 | ||
31 | return gsre; | |
32 | ||
33 | } | |
34 |