Import Geant4 10.1.0 source tree
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET pyG4particles)
|
||||
add_library(
|
||||
@@ -18,13 +16,15 @@ add_library(
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4particles")
|
||||
set_target_properties(${_TARGET} PROPERTIES SUFFIX ".so")
|
||||
set_target_properties(${_TARGET}
|
||||
PROPERTIES INSTALL_RPATH
|
||||
${GEANT4_LIBRARY_DIR}
|
||||
BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
|
||||
target_link_libraries (${_TARGET}
|
||||
${GEANT4_LIBRARIES_WITH_VIS} boost_python)
|
||||
${GEANT4_LIBRARIES_WITH_VIS} boost_python
|
||||
${PYTHON_LIBRARIES})
|
||||
|
||||
# install
|
||||
install(TARGETS ${_TARGET} LIBRARY DESTINATION ${G4MODULES_INSTALL_DIR})
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
include ../../config/config.gmk
|
||||
|
||||
# python module name
|
||||
MODULE := G4particles#
|
||||
|
||||
include $(G4PY_INSTALL)/config/g4py.gmk
|
||||
include $(G4PY_INSTALL)/config/module.gmk
|
||||
include $(G4PY_INSTALL)/config/install.gmk
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4ParticleTable.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// $Id: pyG4ParticleTable.cc 86749 2014-11-17 15:03:05Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyG4ParticleTable.cc
|
||||
//
|
||||
@@ -67,27 +67,6 @@ G4ParticleDefinition*(G4ParticleTable::*f2_FindAntiParticle)(const G4String&)
|
||||
G4ParticleDefinition*(G4ParticleTable::*f3_FindAntiParticle)(
|
||||
const G4ParticleDefinition*)= &G4ParticleTable::FindAntiParticle;
|
||||
|
||||
// FindIon
|
||||
G4ParticleDefinition*(G4ParticleTable::*f1_FindIon)(G4int, G4int, G4double)
|
||||
= &G4ParticleTable::FindIon;
|
||||
|
||||
G4ParticleDefinition*(G4ParticleTable::*f2_FindIon)
|
||||
(G4int, G4int, G4int, G4int)= &G4ParticleTable::FindIon;
|
||||
|
||||
#if G4VERSION_NUMBER >= 910
|
||||
G4ParticleDefinition*(G4ParticleTable::*f3_FindIon)
|
||||
(G4int, G4int, G4int, G4double)= &G4ParticleTable::FindIon;
|
||||
#endif
|
||||
|
||||
#if G4VERSION_NUMBER >= 910
|
||||
// GetIon
|
||||
G4ParticleDefinition*(G4ParticleTable::*f1_GetIon)(G4int, G4int, G4double)
|
||||
= &G4ParticleTable::GetIon;
|
||||
|
||||
G4ParticleDefinition*(G4ParticleTable::*f2_GetIon)
|
||||
(G4int, G4int, G4int, G4double)= &G4ParticleTable::GetIon;
|
||||
#endif
|
||||
|
||||
// DumpTable
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DumpTable, DumpTable, 0, 1)
|
||||
|
||||
@@ -145,23 +124,6 @@ void export_G4ParticleTable()
|
||||
return_value_policy<reference_existing_object>())
|
||||
.def("FindAntiParticle", f3_FindAntiParticle,
|
||||
return_value_policy<reference_existing_object>())
|
||||
.def("FindIon", f1_FindIon,
|
||||
return_value_policy<reference_existing_object>())
|
||||
.def("FindIon", f2_FindIon,
|
||||
return_value_policy<reference_existing_object>())
|
||||
#if G4VERSION_NUMBER >= 910
|
||||
.def("FindIon", f3_FindIon,
|
||||
return_value_policy<reference_existing_object>())
|
||||
#endif
|
||||
#if G4VERSION_NUMBER >= 910
|
||||
.def("GetIon", f1_GetIon,
|
||||
return_value_policy<reference_existing_object>())
|
||||
.def("GetIon", f2_GetIon,
|
||||
return_value_policy<reference_existing_object>())
|
||||
#else
|
||||
.def("GetIon", &G4ParticleTable::GetIon,
|
||||
return_value_policy<reference_existing_object>())
|
||||
#endif
|
||||
.def("DumpTable", &G4ParticleTable::DumpTable, f_DumpTable())
|
||||
//.def("GetIonTable", &G4ParticleTable::GetIonTable,
|
||||
//...)
|
||||
|
||||
Reference in New Issue
Block a user