Changeset 850 for trunk/source/geometry/management/src/G4Region.cc
- Timestamp:
- Sep 10, 2008, 5:40:37 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/management/src/G4Region.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4Region.cc,v 1.2 3 2007/04/26 21:20:53 asaimExp $28 // GEANT4 tag $Name: $27 // $Id: G4Region.cc,v 1.26 2008/07/15 10:27:36 gcosmo Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // … … 140 140 G4VPVParameterisation* pParam = daughterPVol->GetParameterisation(); 141 141 142 if (pParam-> IsNested())142 if (pParam->GetMaterialScanner()) 143 143 { 144 144 size_t matNo = pParam->GetMaterialScanner()->GetNumberOfMaterials(); … … 232 232 // ******************************************************************* 233 233 // 234 void G4Region::RemoveRootLogicalVolume(G4LogicalVolume* lv )234 void G4Region::RemoveRootLogicalVolume(G4LogicalVolume* lv, G4bool scan) 235 235 { 236 236 // Find and remove logical volume from the list … … 247 247 } 248 248 249 // Scan recursively the tree of daugther volumes and reset regions 250 // 251 //ScanVolumeTree(lv, false); 252 253 // Update the materials list 254 // 255 //UpdateMaterialList(); 249 if (scan) // Update the materials list 250 { 251 UpdateMaterialList(); 252 } 256 253 257 254 // Set region as modified
Note: See TracChangeset
for help on using the changeset viewer.