Import Geant4 8.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:55:03 +02:00
parent 216a75eeb1
commit fe73f43734
6714 changed files with 118229 additions and 68144 deletions
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4LogicalVolume.cc,v 1.31 2006/06/29 18:33:27 gunter Exp $
// GEANT4 tag $Name: geant4-08-01 $
// $Id: G4LogicalVolume.cc,v 1.32 2006/11/30 10:39:28 gcosmo Exp $
// GEANT4 tag $Name: geant4-08-02 $
//
//
// class G4LogicalVolume Implementation
@@ -99,7 +99,11 @@ G4LogicalVolume::G4LogicalVolume( __void__& )
//
G4LogicalVolume::~G4LogicalVolume()
{
if(fRootRegion) fRegion->RemoveRootLogicalVolume(this);
// Avoid de-registration of root region if treating the first world volume
//
if( (fRootRegion) && (this != (*G4LogicalVolumeStore::GetInstance())[0]) )
{ fRegion->RemoveRootLogicalVolume(this); }
G4LogicalVolumeStore::DeRegister(this);
}