16 void RecursiveInvisible(TGeoVolume *vol);
17 void RecursiveTransparency(TGeoVolume *vol, Int_t transp);
19 void geomD0(Int_t allVisible=0) {
20 TGeoManager::Import(
"http://root.cern.ch/files/d0.root");
21 gGeoManager->DefaultColors();
22 gGeoManager->SetMaxVisNodes(40000);
25 RecursiveInvisible(gGeoManager->GetVolume(
"D0-"));
26 RecursiveInvisible(gGeoManager->GetVolume(
"D0+"));
27 RecursiveInvisible(gGeoManager->GetVolume(
"D0WZ"));
28 RecursiveInvisible(gGeoManager->GetVolume(
"D0WL"));
29 RecursiveTransparency(gGeoManager->GetVolume(
"MUON"), 90);
32 gGeoManager->GetVolume(
"D0")->Draw(
"ogl");
35 void RecursiveInvisible(TGeoVolume *vol)
38 Int_t nd = vol->GetNdaughters();
39 for (Int_t i=0; i<nd; i++) {
40 RecursiveInvisible(vol->GetNode(i)->GetVolume());
44 void RecursiveTransparency(TGeoVolume *vol, Int_t transp)
46 vol->SetTransparency(transp);
47 Int_t nd = vol->GetNdaughters();
48 for (Int_t i=0; i<nd; i++) {
49 RecursiveTransparency(vol->GetNode(i)->GetVolume(), transp);