Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
@@ -0,0 +1,30 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
# library
set(_TARGET pyG4particles)
add_library(
${_TARGET} SHARED
pyG4DecayTable.cc
pyG4DynamicParticle.cc
pyG4ParticleDefinition.cc
pyG4ParticleList.cc
pyG4ParticleTable.cc
pyG4PrimaryParticle.cc
pyG4PrimaryVertex.cc
pymodG4particles.cc
)
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4particles")
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)
# install
install(TARGETS ${_TARGET} LIBRARY DESTINATION ${G4MODULES_INSTALL_DIR})
@@ -1,5 +1,4 @@
# $Id: GNUmakefile,v 1.2 2006-04-25 08:09:45 kmura Exp $
# $Name: not supported by cvs2svn $
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
# ===========================================================
# Makefile for building Geant4Py modules
# ===========================================================
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4DecayTable.cc,v 1.4 2006-06-29 15:34:27 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4DecayTable.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4DecayTable.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4DynamicParticle.cc,v 1.6 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4DynamicParticle.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4DynamicParticle.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ParticleDefinition.cc,v 1.6 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ParticleDefinition.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4ParticleDefinition.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ParticleList.cc,v 1.3 2006-06-29 15:34:35 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ParticleList.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4ParticleList.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ParticleTable.cc,v 1.5 2007-11-07 09:12:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ParticleTable.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4ParticleTable.cc
//
@@ -42,10 +41,10 @@ using namespace boost::python;
namespace pyG4ParticleTable {
// contains...
G4bool(G4ParticleTable::*f1_contains)(const G4ParticleDefinition*)
G4bool(G4ParticleTable::*f1_contains)(const G4ParticleDefinition*) const
= &G4ParticleTable::contains;
G4bool(G4ParticleTable::*f2_contains)(const G4String&)
G4bool(G4ParticleTable::*f2_contains)(const G4String&) const
= &G4ParticleTable::contains;
// FindParticle...
@@ -90,7 +89,7 @@ G4ParticleDefinition*(G4ParticleTable::*f2_GetIon)
#endif
// DumpTable
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DumpTable, DumpTable, 0, 1);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DumpTable, DumpTable, 0, 1)
// --------------------------------------------------------------------
@@ -99,18 +98,18 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_DumpTable, DumpTable, 0, 1);
list GetParticleList(G4ParticleTable* particleTable)
{
list particleList;
G4ParticleTable::G4PTblDicIterator*
G4ParticleTable::G4PTblDicIterator*
theParticleIterator= particleTable-> GetIterator();
theParticleIterator-> reset();
while( (*theParticleIterator)() ){
G4ParticleDefinition* particle= theParticleIterator-> value();
particleList.append(&particle);
}
return particleList;
}
};
}
using namespace pyG4ParticleTable;
@@ -172,7 +171,7 @@ void export_G4ParticleTable()
.def("GetVerboseLevel", &G4ParticleTable::GetVerboseLevel)
.def("SetReadiness", &G4ParticleTable::SetReadiness)
.def("GetReadiness", &G4ParticleTable::GetReadiness)
// ---
// ---
// additionals
.def("GetParticleList", GetParticleList)
;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4PrimaryParticle.cc,v 1.4 2006-06-29 15:34:40 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4PrimaryParticle.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4PrimaryParticle.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4PrimaryVertex.cc,v 1.4 2006-06-29 15:34:43 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4PrimaryVertex.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4PrimaryVertex.cc
//
@@ -40,9 +39,9 @@ using namespace boost::python;
// ====================================================================
namespace pyG4PrimaryVertex {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetPrimary, GetPrimary, 0, 1);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetPrimary, GetPrimary, 0, 1)
};
}
using namespace pyG4PrimaryVertex;
@@ -60,7 +59,7 @@ void export_G4PrimaryVertex()
.add_property("T0", &G4PrimaryVertex::GetT0)
// ---
.def("GetPosition", &G4PrimaryVertex::GetPosition,
return_value_policy<return_by_value>())
return_value_policy<return_by_value>())
.def("GetX0", &G4PrimaryVertex::GetX0)
.def("GetY0", &G4PrimaryVertex::GetY0)
.def("GetZ0", &G4PrimaryVertex::GetZ0)
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4particles.cc,v 1.4 2006-06-29 15:34:46 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pymodG4particles.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pymodG4particles.cc
//