Changeset 850 for trunk/source/geometry/management/src
- Timestamp:
- Sep 10, 2008, 5:40:37 PM (16 years ago)
- Location:
- trunk/source/geometry/management/src
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/management/src/G4BlockingList.cc
r831 r850 26 26 // 27 27 // $Id: G4BlockingList.cc,v 1.3 2006/06/29 18:33:21 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/geometry/management/src/G4ErrorCylSurfaceTarget.cc
r831 r850 26 26 // 27 27 // $Id: G4ErrorCylSurfaceTarget.cc,v 1.4 2007/06/20 12:50:48 arce Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/geometry/management/src/G4ErrorPlaneSurfaceTarget.cc
r831 r850 26 26 // 27 27 // $Id: G4ErrorPlaneSurfaceTarget.cc,v 1.2 2007/06/19 11:28:39 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/geometry/management/src/G4ErrorSurfaceTarget.cc
r831 r850 26 26 // 27 27 // $Id: G4ErrorSurfaceTarget.cc,v 1.1 2007/05/16 12:50:52 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/geometry/management/src/G4ErrorTanPlaneTarget.cc
r831 r850 26 26 // 27 27 // $Id: G4ErrorTanPlaneTarget.cc,v 1.1 2007/05/16 12:50:52 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/geometry/management/src/G4ErrorTarget.cc
r831 r850 26 26 // 27 27 // $Id: G4ErrorTarget.cc,v 1.1 2007/05/16 12:50:52 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/geometry/management/src/G4GeometryManager.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4GeometryManager.cc,v 1. 19.2.1 2008/04/23 09:15:50gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-01-patch-02$27 // $Id: G4GeometryManager.cc,v 1.22 2008/05/16 13:46:48 gcosmo Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4GeometryManager … … 170 170 volume->SetVoxelHeader(0); 171 171 if ( ( (volume->IsToOptimise()) 172 && (volume->GetNoDaughters()>=kMinVoxelVolumesLevel1&&allOpts) )172 && (volume->GetNoDaughters()>=kMinVoxelVolumesLevel1&&allOpts) ) 173 173 || ( (volume->GetNoDaughters()==1) 174 && (volume->GetDaughter(0)->IsReplicated()==true) ) ) 174 && (volume->GetDaughter(0)->IsReplicated()==true) 175 && (volume->GetDaughter(0)->GetRegularStructureId()!=1) ) ) 175 176 { 176 177 #ifdef G4GEOMETRY_VOXELDEBUG … … 237 238 tVolume->SetVoxelHeader(0); 238 239 if ( ( (tVolume->IsToOptimise()) 239 && (tVolume->GetNoDaughters()>=kMinVoxelVolumesLevel1&&allOpts) )240 && (tVolume->GetNoDaughters()>=kMinVoxelVolumesLevel1&&allOpts) ) 240 241 || ( (tVolume->GetNoDaughters()==1) 241 242 && (tVolume->GetDaughter(0)->IsReplicated()==true) ) ) -
trunk/source/geometry/management/src/G4IdentityTrajectoryFilter.cc
r831 r850 26 26 // 27 27 // $Id: G4IdentityTrajectoryFilter.cc,v 1.4 2006/10/02 10:09:24 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // ------------------------------------------------------------------------ -
trunk/source/geometry/management/src/G4LogicalVolume.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4LogicalVolume.cc,v 1.3 2 2006/11/30 10:39:28gcosmo Exp $28 // GEANT4 tag $Name: $27 // $Id: G4LogicalVolume.cc,v 1.33 2008/07/10 09:40:09 gcosmo Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // … … 63 63 G4bool optimise ) 64 64 : fDaughters(0,(G4VPhysicalVolume*)0), fFieldManager(pFieldMgr), 65 fVoxel(0), fOptimise(optimise), fRootRegion(false), f Smartless(2.),66 f Mass(0.), fVisAttributes(0), fRegion(0), fCutsCouple(0)65 fVoxel(0), fOptimise(optimise), fRootRegion(false), fLock(false), 66 fSmartless(2.), fMass(0.), fVisAttributes(0), fRegion(0), fCutsCouple(0) 67 67 { 68 68 SetSolid(pSolid); … … 85 85 : fDaughters(0,(G4VPhysicalVolume*)0), fFieldManager(0), 86 86 fMaterial(0), fName(""), fSensitiveDetector(0), fSolid(0), fUserLimits(0), 87 fVoxel(0), fOptimise(true), fRootRegion(false), f Smartless(2.),87 fVoxel(0), fOptimise(true), fRootRegion(false), fLock(false), fSmartless(2.), 88 88 fMass(0.), fVisAttributes(0), fRegion(0), fCutsCouple(0), fBiasWeight(0.) 89 89 { … … 100 100 G4LogicalVolume::~G4LogicalVolume() 101 101 { 102 // Avoid de-registration of root region if treating the first world volume 103 // 104 if( (fRootRegion) && (this != (*G4LogicalVolumeStore::GetInstance())[0]) ) 105 { fRegion->RemoveRootLogicalVolume(this); } 106 102 if (!fLock && fRootRegion) // De-register root region first if not locked 103 { // and flagged as root logical-volume 104 fRegion->RemoveRootLogicalVolume(this, true); 105 } 107 106 G4LogicalVolumeStore::DeRegister(this); 108 107 } -
trunk/source/geometry/management/src/G4LogicalVolumeStore.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4LogicalVolumeStore.cc,v 1.1 8 2007/04/10 10:13:50gcosmo Exp $28 // GEANT4 tag $Name: $27 // $Id: G4LogicalVolumeStore.cc,v 1.19 2008/07/10 09:40:09 gcosmo Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // G4LogicalVolumeStore … … 98 98 { 99 99 if (fgNotifier) { fgNotifier->NotifyDeRegistration(); } 100 if (*pos) { delete *pos; }100 if (*pos) { (*pos)->Lock(); delete *pos; } 101 101 i++; 102 102 } -
trunk/source/geometry/management/src/G4PhysicalVolumeStore.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4PhysicalVolumeStore.cc,v 1. 19 2007/04/10 10:13:50 gcosmo Exp $28 // GEANT4 tag $Name: $27 // $Id: G4PhysicalVolumeStore.cc,v 1.20 2008/07/10 09:41:20 gcosmo Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // G4PhysicalVolumeStore … … 73 73 // *************************************************************************** 74 74 // 75 void G4PhysicalVolumeStore::Clean( G4bool notifyLV)75 void G4PhysicalVolumeStore::Clean() 76 76 { 77 77 // Do nothing if geometry is closed … … 97 97 G4cout << "Deleting Physical Volumes ... "; 98 98 #endif 99 100 if (notifyLV)101 {102 for(pos=store->begin(); pos!=store->end(); pos++)103 {104 if (*pos) { (*pos)->GetLogicalVolume()->ClearDaughters(); }105 }106 }107 99 108 100 for(pos=store->begin(); pos!=store->end(); pos++) -
trunk/source/geometry/management/src/G4ReflectedSolid.cc
r831 r850 27 27 // $Id: G4ReflectedSolid.cc,v 1.11 2006/11/08 09:56:33 gcosmo Exp $ 28 28 // 29 // GEANT4 tag $Name: $29 // GEANT4 tag $Name: HEAD $ 30 30 // 31 31 // Implementation for G4ReflectedSolid class for boolean -
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 -
trunk/source/geometry/management/src/G4RegionStore.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4RegionStore.cc,v 1.1 3 2007/04/10 10:13:50gcosmo Exp $28 // GEANT4 tag $Name: $27 // $Id: G4RegionStore.cc,v 1.14 2008/07/10 09:46:01 gcosmo Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // G4RegionStore … … 99 99 #endif 100 100 101 // Do NOT delete world region !102 //103 101 for(iterator pos=store->begin(); pos!=store->end(); ++pos) 104 102 { -
trunk/source/geometry/management/src/G4SmartVoxelHeader.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4SmartVoxelHeader.cc,v 1. 28.4.1 2008/04/23 09:15:50gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-01-patch-02$27 // $Id: G4SmartVoxelHeader.cc,v 1.31 2008/01/24 15:46:47 gcosmo Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/geometry/management/src/G4SmartVoxelNode.cc
r831 r850 26 26 // 27 27 // $Id: G4SmartVoxelNode.cc,v 1.6 2006/06/29 18:33:45 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // Class G4SmartVoxelNode -
trunk/source/geometry/management/src/G4SmartVoxelProxy.cc
r831 r850 26 26 // 27 27 // $Id: G4SmartVoxelProxy.cc,v 1.3 2006/06/29 18:33:48 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // Class G4SmartVoxelProxy -
trunk/source/geometry/management/src/G4SmartVoxelStat.cc
r831 r850 26 26 // 27 27 // $Id: G4SmartVoxelStat.cc,v 1.3 2006/06/29 18:33:50 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -------------------------------------------------------------------- -
trunk/source/geometry/management/src/G4SolidStore.cc
r831 r850 26 26 // 27 27 // $Id: G4SolidStore.cc,v 1.17 2007/04/10 10:13:50 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // G4SolidStore -
trunk/source/geometry/management/src/G4VCurvedTrajectoryFilter.cc
r831 r850 26 26 // 27 27 // $Id: G4VCurvedTrajectoryFilter.cc,v 1.3 2006/06/29 18:33:56 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // -------------------------------------------------------------------- 30 30 -
trunk/source/geometry/management/src/G4VNestedParameterisation.cc
r831 r850 26 26 // 27 27 // $Id: G4VNestedParameterisation.cc,v 1.6 2006/06/29 18:33:59 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4VNestedParameterisation implementation -
trunk/source/geometry/management/src/G4VPVDivisionFactory.cc
r831 r850 26 26 // 27 27 // $Id: G4VPVDivisionFactory.cc,v 1.2 2006/06/29 18:34:02 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4VPVDivisionFactory Implementation file -
trunk/source/geometry/management/src/G4VPVParameterisation.cc
r831 r850 26 26 // 27 27 // $Id: G4VPVParameterisation.cc,v 1.8 2007/07/16 08:40:13 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // Default implementations for Parameterisations that do not -
trunk/source/geometry/management/src/G4VPhysicalVolume.cc
r831 r850 26 26 // 27 27 // $Id: G4VPhysicalVolume.cc,v 1.14 2007/04/11 08:00:12 gcosmo Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // -
trunk/source/geometry/management/src/G4VSolid.cc
r831 r850 25 25 // 26 26 // 27 // $Id: G4VSolid.cc,v 1.3 5.2.1 2008/04/23 09:15:50gcosmo Exp $28 // GEANT4 tag $Name: geant4-09-01-patch-02$27 // $Id: G4VSolid.cc,v 1.37 2008/02/20 15:24:26 gcosmo Exp $ 28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4VSolid -
trunk/source/geometry/management/src/G4VoxelLimits.cc
r831 r850 26 26 // 27 27 // $Id: G4VoxelLimits.cc,v 1.11 2006/06/29 18:34:11 gunter Exp $ 28 // GEANT4 tag $Name: $28 // GEANT4 tag $Name: HEAD $ 29 29 // 30 30 // class G4VoxelLimits
Note: See TracChangeset
for help on using the changeset viewer.