3 gSystem->Load(
"libGeom");
4 TGeoManager::Import(
"ALICE_ITS_tgeo.root");
11 dfs(root, name, node);
16 cout <<
" Found!" << endl;
20 cout <<
" NOT Found!" << endl;
28 if(res != NULL)
return;
29 if(node->GetName() ==
name) res = node;
30 if(node->GetNdaughters() == 0)
return;
32 for(
int i = 0;
i < node->GetNdaughters(); ++
i)
34 dfs(node->GetDaughter(
i),
name, res);
47 TGeoVolume* vol_inner = node_inner->GetVolume();
48 vol_inner->RemoveNode(nodeb1);
49 vol_inner->RemoveNode(nodeb2);
50 vol_inner->RemoveNode(nodeb3);
56 TGeoVolume* vol_mid = node_mid->GetVolume();
57 vol_mid->RemoveNode(nodeb4);
58 vol_mid->RemoveNode(nodeb5);
64 TGeoVolume* vol_outer = node_outer->GetVolume();
65 vol_outer->RemoveNode(nodeb6);
66 vol_outer->RemoveNode(nodeb7);
69 gGeoManager->SetTopVolume(top->GetVolume());
70 gROOT->ProcessLine(
"TGDMLWrite::StartGDMLWriting(gGeoManager,\"all.gdml\",\"\")");