10 #include "TGDMLParse.h"
11 #include "TGeoManager.h"
12 #include "TGeoMatrix.h"
40 gGeoManager->GetTopVolume()->AddNode(gdmlTop,1,posrot);
41 ExpandNodeForGDML(gGeoManager->GetTopVolume()->GetNode(gGeoManager->GetTopVolume()->GetNdaughters()-1));
52 gGeoManager->GetTopVolume()->AddNode(gdmlTop,1);
53 ExpandNodeForGDML(gGeoManager->GetTopVolume()->GetNode(gGeoManager->GetTopVolume()->GetNdaughters()-1));
60 TGeoVolume* curVol = curNode->GetVolume();
63 if (!curVol->IsAssembly()) {
64 TString curMedName =
"air";
65 TGeoMedium* curMedInGeoManager = gGeoManager->GetMedium(curMedName);
66 Int_t matIndToDel = gGeoManager->GetMaterialIndex(curMedName);
68 if (curMedName.BeginsWith(
"G4_")) {
69 curMedName.Remove(0, 3);
80 if (curMedInGeoManager == 0) {
81 std::cout <<
"[ExpandNodeForGDML] New medium found in gmdl - it is not in gGeoManager list." << std::endl;
89 curMedInGeo = geoMediaBase->
getMedium(curMedName);
92 std::cout <<
"[ExpandNodeForGDML] Media not found in Geo file." << std::endl;
101 fixedMats[curMedName] = gGeoManager->GetListOfMedia()->GetEntries();
103 curNode->GetVolume()->SetMedium(gGeoManager->GetMedium(curMedName));
104 gGeoManager->SetAllIndex();
115 if (curVol->GetNdaughters() != 0)
117 TObjArray* NodeChildList = curVol->GetNodes();
118 TGeoNode* curNodeChild;
119 for (Int_t j=0; j<NodeChildList->GetEntriesFast(); j++)
121 curNodeChild = (TGeoNode*)NodeChildList->At(j);