Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# CMakeLists.txt
|
||||
# Module : G4geomtext
|
||||
# Package: Geant4.src.G4persistency.G4geomtext
|
||||
#
|
||||
# CMakeLists.txt for building a single granular library.
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
if(GEANT4_BUILD_GRANULAR_LIBS)
|
||||
include(Geant4MacroLibraryTargets)
|
||||
GEANT4_GRANULAR_LIBRARY_TARGET(COMPONENT sources.cmake)
|
||||
endif()
|
||||
|
||||
@@ -15,6 +15,15 @@ committal in the CVS repository !
|
||||
* Reverse chronological order (last date on top), please *
|
||||
----------------------------------------------------------
|
||||
|
||||
4 March 2020 - P.Arce (ascii-V10-06-01)
|
||||
- G4tgbGeometryDumper.cc: Fix coverity warnings
|
||||
- G4tgbVolume.cc: Fix coverity warnings
|
||||
- G4tgbVolumeMgr.cc: Fix coverity warnings
|
||||
|
||||
11 December 2019 - B.Morgan (ascii-V10-06-00)
|
||||
- Cleanup CMake build, removing obsolete granular library options and
|
||||
explicit include_directories.
|
||||
|
||||
30 October 2019 - G.Cosmo (ascii-V10-05-01)
|
||||
- Fixed printout syntax in G4tgrUtils::GetDouble().
|
||||
|
||||
|
||||
@@ -1,161 +1,128 @@
|
||||
#------------------------------------------------------------------------------
|
||||
# sources.cmake
|
||||
# Module : G4geomtext
|
||||
# Package: Geant4.src.G4persistency.G4geomtext
|
||||
#
|
||||
# Sources description for a library.
|
||||
# Lists the sources and headers of the code explicitely.
|
||||
# Lists include paths needed.
|
||||
# Lists the internal granular and global dependencies of the library.
|
||||
# Source specific properties should be added at the end.
|
||||
#
|
||||
# Generated on : 24/9/2010
|
||||
#
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
# List external includes needed.
|
||||
include_directories(${CLHEP_INCLUDE_DIRS})
|
||||
|
||||
# List internal includes needed.
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/divisions/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/management/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/solids/Boolean/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/solids/CSG/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/solids/specific/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/geometry/volumes/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/global/HEPGeometry/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/global/HEPNumerics/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/global/HEPRandom/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/global/management/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/graphics_reps/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/intercoms/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/materials/include)
|
||||
include_directories(${CMAKE_SOURCE_DIR}/source/particles/management/include)
|
||||
|
||||
#
|
||||
# Define the Geant4 Module.
|
||||
#
|
||||
include(Geant4MacroDefineModule)
|
||||
GEANT4_DEFINE_MODULE(NAME G4geomtext
|
||||
HEADERS
|
||||
G4tgbDetectorBuilder.hh
|
||||
G4tgbDetectorConstruction.hh
|
||||
G4tgbElement.hh
|
||||
G4tgbGeometryDumper.hh
|
||||
G4tgbIsotope.hh
|
||||
G4tgbMaterial.hh
|
||||
G4tgbMaterialMgr.hh
|
||||
G4tgbMaterialMixture.hh
|
||||
G4tgbMaterialMixtureByNoAtoms.hh
|
||||
G4tgbMaterialMixtureByVolume.hh
|
||||
G4tgbMaterialMixtureByWeight.hh
|
||||
G4tgbMaterialSimple.hh
|
||||
G4tgbPlaceParamCircle.hh
|
||||
G4tgbPlaceParamLinear.hh
|
||||
G4tgbPlaceParamSquare.hh
|
||||
G4tgbPlaceParameterisation.hh
|
||||
G4tgbRotationMatrix.hh
|
||||
G4tgbRotationMatrixMgr.hh
|
||||
G4tgbVolume.hh
|
||||
G4tgbVolumeMgr.hh
|
||||
G4tgrElement.hh
|
||||
G4tgrElementFromIsotopes.hh
|
||||
G4tgrElementSimple.hh
|
||||
G4tgrEvaluator.hh
|
||||
G4tgrFileIn.hh
|
||||
G4tgrFileReader.hh
|
||||
G4tgrIsotope.hh
|
||||
G4tgrLineProcessor.hh
|
||||
G4tgrMaterial.hh
|
||||
G4tgrMaterialFactory.hh
|
||||
G4tgrMaterialMixture.hh
|
||||
G4tgrMaterialSimple.hh
|
||||
G4tgrMessenger.hh
|
||||
G4tgrParameterMgr.hh
|
||||
G4tgrPlace.hh
|
||||
G4tgrPlaceDivRep.hh
|
||||
G4tgrPlaceParameterisation.hh
|
||||
G4tgrPlaceSimple.hh
|
||||
G4tgrRotationMatrix.hh
|
||||
G4tgrRotationMatrixFactory.hh
|
||||
G4tgrSolid.hh
|
||||
G4tgrSolidBoolean.hh
|
||||
G4tgrUtils.hh
|
||||
G4tgrVolume.hh
|
||||
G4tgrVolumeAssembly.hh
|
||||
G4tgrVolumeDivision.hh
|
||||
G4tgrVolumeMgr.hh
|
||||
SOURCES
|
||||
G4tgbDetectorBuilder.cc
|
||||
G4tgbDetectorConstruction.cc
|
||||
G4tgbElement.cc
|
||||
G4tgbGeometryDumper.cc
|
||||
G4tgbIsotope.cc
|
||||
G4tgbMaterial.cc
|
||||
G4tgbMaterialMgr.cc
|
||||
G4tgbMaterialMixture.cc
|
||||
G4tgbMaterialMixtureByNoAtoms.cc
|
||||
G4tgbMaterialMixtureByVolume.cc
|
||||
G4tgbMaterialMixtureByWeight.cc
|
||||
G4tgbMaterialSimple.cc
|
||||
G4tgbPlaceParamCircle.cc
|
||||
G4tgbPlaceParamLinear.cc
|
||||
G4tgbPlaceParamSquare.cc
|
||||
G4tgbPlaceParameterisation.cc
|
||||
G4tgbRotationMatrix.cc
|
||||
G4tgbRotationMatrixMgr.cc
|
||||
G4tgbVolume.cc
|
||||
G4tgbVolumeMgr.cc
|
||||
G4tgrElement.cc
|
||||
G4tgrElementFromIsotopes.cc
|
||||
G4tgrElementSimple.cc
|
||||
G4tgrEvaluator.cc
|
||||
G4tgrFileIn.cc
|
||||
G4tgrFileReader.cc
|
||||
G4tgrIsotope.cc
|
||||
G4tgrLineProcessor.cc
|
||||
G4tgrMaterial.cc
|
||||
G4tgrMaterialFactory.cc
|
||||
G4tgrMaterialMixture.cc
|
||||
G4tgrMaterialSimple.cc
|
||||
G4tgrMessenger.cc
|
||||
G4tgrParameterMgr.cc
|
||||
G4tgrPlace.cc
|
||||
G4tgrPlaceDivRep.cc
|
||||
G4tgrPlaceParameterisation.cc
|
||||
G4tgrPlaceSimple.cc
|
||||
G4tgrRotationMatrix.cc
|
||||
G4tgrRotationMatrixFactory.cc
|
||||
G4tgrSolid.cc
|
||||
G4tgrSolidBoolean.cc
|
||||
G4tgrUtils.cc
|
||||
G4tgrVolume.cc
|
||||
G4tgrVolumeAssembly.cc
|
||||
G4tgrVolumeDivision.cc
|
||||
G4tgrVolumeMgr.cc
|
||||
GRANULAR_DEPENDENCIES
|
||||
G4csg
|
||||
G4geomBoolean
|
||||
G4geomdivision
|
||||
G4geometrymng
|
||||
G4globman
|
||||
G4graphics_reps
|
||||
G4hepnumerics
|
||||
G4intercoms
|
||||
G4materials
|
||||
G4partman
|
||||
G4specsolids
|
||||
G4volumes
|
||||
GLOBAL_DEPENDENCIES
|
||||
G4geometry
|
||||
G4global
|
||||
G4graphics_reps
|
||||
G4intercoms
|
||||
G4materials
|
||||
G4particles
|
||||
LINK_LIBRARIES
|
||||
geant4_define_module(NAME G4geomtext
|
||||
HEADERS
|
||||
G4tgbDetectorBuilder.hh
|
||||
G4tgbDetectorConstruction.hh
|
||||
G4tgbElement.hh
|
||||
G4tgbGeometryDumper.hh
|
||||
G4tgbIsotope.hh
|
||||
G4tgbMaterial.hh
|
||||
G4tgbMaterialMgr.hh
|
||||
G4tgbMaterialMixture.hh
|
||||
G4tgbMaterialMixtureByNoAtoms.hh
|
||||
G4tgbMaterialMixtureByVolume.hh
|
||||
G4tgbMaterialMixtureByWeight.hh
|
||||
G4tgbMaterialSimple.hh
|
||||
G4tgbPlaceParamCircle.hh
|
||||
G4tgbPlaceParamLinear.hh
|
||||
G4tgbPlaceParamSquare.hh
|
||||
G4tgbPlaceParameterisation.hh
|
||||
G4tgbRotationMatrix.hh
|
||||
G4tgbRotationMatrixMgr.hh
|
||||
G4tgbVolume.hh
|
||||
G4tgbVolumeMgr.hh
|
||||
G4tgrElement.hh
|
||||
G4tgrElementFromIsotopes.hh
|
||||
G4tgrElementSimple.hh
|
||||
G4tgrEvaluator.hh
|
||||
G4tgrFileIn.hh
|
||||
G4tgrFileReader.hh
|
||||
G4tgrIsotope.hh
|
||||
G4tgrLineProcessor.hh
|
||||
G4tgrMaterial.hh
|
||||
G4tgrMaterialFactory.hh
|
||||
G4tgrMaterialMixture.hh
|
||||
G4tgrMaterialSimple.hh
|
||||
G4tgrMessenger.hh
|
||||
G4tgrParameterMgr.hh
|
||||
G4tgrPlace.hh
|
||||
G4tgrPlaceDivRep.hh
|
||||
G4tgrPlaceParameterisation.hh
|
||||
G4tgrPlaceSimple.hh
|
||||
G4tgrRotationMatrix.hh
|
||||
G4tgrRotationMatrixFactory.hh
|
||||
G4tgrSolid.hh
|
||||
G4tgrSolidBoolean.hh
|
||||
G4tgrUtils.hh
|
||||
G4tgrVolume.hh
|
||||
G4tgrVolumeAssembly.hh
|
||||
G4tgrVolumeDivision.hh
|
||||
G4tgrVolumeMgr.hh
|
||||
SOURCES
|
||||
G4tgbDetectorBuilder.cc
|
||||
G4tgbDetectorConstruction.cc
|
||||
G4tgbElement.cc
|
||||
G4tgbGeometryDumper.cc
|
||||
G4tgbIsotope.cc
|
||||
G4tgbMaterial.cc
|
||||
G4tgbMaterialMgr.cc
|
||||
G4tgbMaterialMixture.cc
|
||||
G4tgbMaterialMixtureByNoAtoms.cc
|
||||
G4tgbMaterialMixtureByVolume.cc
|
||||
G4tgbMaterialMixtureByWeight.cc
|
||||
G4tgbMaterialSimple.cc
|
||||
G4tgbPlaceParamCircle.cc
|
||||
G4tgbPlaceParamLinear.cc
|
||||
G4tgbPlaceParamSquare.cc
|
||||
G4tgbPlaceParameterisation.cc
|
||||
G4tgbRotationMatrix.cc
|
||||
G4tgbRotationMatrixMgr.cc
|
||||
G4tgbVolume.cc
|
||||
G4tgbVolumeMgr.cc
|
||||
G4tgrElement.cc
|
||||
G4tgrElementFromIsotopes.cc
|
||||
G4tgrElementSimple.cc
|
||||
G4tgrEvaluator.cc
|
||||
G4tgrFileIn.cc
|
||||
G4tgrFileReader.cc
|
||||
G4tgrIsotope.cc
|
||||
G4tgrLineProcessor.cc
|
||||
G4tgrMaterial.cc
|
||||
G4tgrMaterialFactory.cc
|
||||
G4tgrMaterialMixture.cc
|
||||
G4tgrMaterialSimple.cc
|
||||
G4tgrMessenger.cc
|
||||
G4tgrParameterMgr.cc
|
||||
G4tgrPlace.cc
|
||||
G4tgrPlaceDivRep.cc
|
||||
G4tgrPlaceParameterisation.cc
|
||||
G4tgrPlaceSimple.cc
|
||||
G4tgrRotationMatrix.cc
|
||||
G4tgrRotationMatrixFactory.cc
|
||||
G4tgrSolid.cc
|
||||
G4tgrSolidBoolean.cc
|
||||
G4tgrUtils.cc
|
||||
G4tgrVolume.cc
|
||||
G4tgrVolumeAssembly.cc
|
||||
G4tgrVolumeDivision.cc
|
||||
G4tgrVolumeMgr.cc
|
||||
GRANULAR_DEPENDENCIES
|
||||
G4csg
|
||||
G4geomBoolean
|
||||
G4geomdivision
|
||||
G4geometrymng
|
||||
G4globman
|
||||
G4graphics_reps
|
||||
G4hepnumerics
|
||||
G4intercoms
|
||||
G4materials
|
||||
G4partman
|
||||
G4specsolids
|
||||
G4volumes
|
||||
GLOBAL_DEPENDENCIES
|
||||
G4geometry
|
||||
G4global
|
||||
G4graphics_reps
|
||||
G4intercoms
|
||||
G4materials
|
||||
G4particles
|
||||
)
|
||||
|
||||
# List any source specific properties here
|
||||
|
||||
|
||||
@@ -707,7 +707,11 @@ void G4tgbGeometryDumper::DumpBooleanVolume( const G4String& solidType,
|
||||
if( displaced )
|
||||
{
|
||||
solid1Disp = dynamic_cast<G4DisplacedSolid*>(solid1);
|
||||
if (solid1Disp) { solid1 = solid1Disp->GetConstituentMovedSolid(); }
|
||||
if (solid1Disp) {
|
||||
solid1 = solid1Disp->GetConstituentMovedSolid();
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
}
|
||||
DumpSolid( solid0 );
|
||||
DumpSolid( solid1 );
|
||||
@@ -1353,15 +1357,16 @@ G4tgbGeometryDumper::Same2G4Isotopes( G4Isotope* isot1, G4Isotope* isot2 )
|
||||
const G4String& G4tgbGeometryDumper::FindSolidName( G4VSolid* solid )
|
||||
{
|
||||
std::map<G4String,G4VSolid*>::const_iterator ite;
|
||||
for( ite = theSolids.begin(); ite != theSolids.end(); ite++ )
|
||||
{
|
||||
if( solid == (*ite).second ) { return (*ite).first; }
|
||||
}
|
||||
|
||||
for( ite = theSolids.begin(); ite != theSolids.end(); ++ite )
|
||||
{
|
||||
if( solid == (*ite).second ) { return (*ite).first;
|
||||
}
|
||||
}
|
||||
|
||||
if( ite == theSolids.end() )
|
||||
{
|
||||
G4Exception("G4tgbGeometryDumper::FindSolidName()", "ReadError",
|
||||
FatalException, "Programming error.");
|
||||
}
|
||||
{
|
||||
G4Exception("G4tgbGeometryDumper::FindSolidName()", "ReadError",
|
||||
FatalException, "Programming error.");
|
||||
}
|
||||
return (*ite).first;
|
||||
}
|
||||
|
||||
@@ -140,6 +140,7 @@ void G4tgbVolume::ConstructG4Volumes( const G4tgrPlace* place,
|
||||
G4tgbVolumeMgr* g4vmgr = G4tgbVolumeMgr::GetInstance();
|
||||
G4LogicalVolume* logvol = g4vmgr->FindG4LogVol( GetName() );
|
||||
G4bool bFirstCopy = false;
|
||||
G4VPhysicalVolume* physvol = 0;
|
||||
if( logvol == 0 )
|
||||
{
|
||||
bFirstCopy = true;
|
||||
@@ -159,9 +160,10 @@ void G4tgbVolume::ConstructG4Volumes( const G4tgrPlace* place,
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
//--- Construct PhysVol
|
||||
G4VPhysicalVolume* physvol = ConstructG4PhysVol( place, logvol, parentLV );
|
||||
physvol = ConstructG4PhysVol( place, logvol, parentLV );
|
||||
|
||||
if( physvol != 0 ) // 0 for G4AssemblyVolumes
|
||||
{
|
||||
g4vmgr->RegisterMe( physvol );
|
||||
|
||||
@@ -168,8 +168,10 @@ G4tgbVolume* G4tgbVolumeMgr::FindVolume( const G4String& volname)
|
||||
G4String ErrMessage = "G4tgbVolume not found: " + volname + " !";
|
||||
G4Exception("G4tgbVolumeMgr::FindVolume()", "InvalidSetup",
|
||||
FatalException, ErrMessage);
|
||||
return (G4tgbVolume*)0;
|
||||
} else {
|
||||
return (*cite).second;
|
||||
}
|
||||
return (*cite).second;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user