Import Geant4 9.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:37:50 +02:00
parent a8e9364cea
commit 96c8bcd0af
6923 changed files with 198390 additions and 41849 deletions
@@ -1,5 +1,5 @@
# $Id: GNUmakefile,v 1.2 2006/04/25 08:09:45 kmura Exp $
# $Name: geant4-09-00 $
# $Name: geant4-09-01 $
# ===========================================================
# Makefile for building Geant4Py modules
# ===========================================================
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4Element.cc,v 1.5 2006/08/25 05:46:17 kmura Exp $
// $Name: geant4-09-00 $
// $Name: geant4-09-01 $
// ====================================================================
// pyG4Element.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ElementTable.cc,v 1.4 2006/06/29 15:34:12 gunter Exp $
// $Name: geant4-09-00 $
// $Name: geant4-09-01 $
// ====================================================================
// pyG4ElementTable.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4Material.cc,v 1.5 2006/12/01 02:10:08 kmura Exp $
// $Name: geant4-09-00 $
// $Name: geant4-09-01 $
// ====================================================================
// pyG4Material.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4MaterialTable.cc,v 1.4 2006/06/29 15:34:18 gunter Exp $
// $Name: geant4-09-00 $
// $Name: geant4-09-01 $
// ====================================================================
// pyG4MaterialTable.cc
//
@@ -23,16 +23,15 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4NistManager.cc,v 1.5 2007/05/28 03:11:20 kmura Exp $
// $Name: geant4-09-00 $
// $Id: pyG4NistManager.cc,v 1.6 2007/11/07 08:49:31 kmura Exp $
// $Name: geant4-09-01 $
// ====================================================================
// pyG4NistManager.cc
//
// 2005 Q
// ===================================================================
#include <boost/python.hpp>
#include "pyG4Version.hh"
#include "G4Version.hh"
#if G4VERSION_NUMBER >= 710
#include "G4NistManager.hh"
@@ -64,6 +63,23 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_FindOrBuildMaterial,
FindOrBuildMaterial, 1, 2);
// ConstructNewMaterial
#if G4VERSION_NUMBER >= 910
G4Material*(G4NistManager::*f1_ConstructNewMaterial)
(const G4String&, const std::vector<G4String>&,
const std::vector<G4int>&, G4double, G4bool,
G4State, G4double, G4double)
= &G4NistManager::ConstructNewMaterial;
G4Material*(G4NistManager::*f2_ConstructNewMaterial)
(const G4String&, const std::vector<G4String>&,
const std::vector<G4double>&, G4double, G4bool,
G4State, G4double, G4double)
= &G4NistManager::ConstructNewMaterial;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ConstructNewMaterial,
ConstructNewMaterial, 4, 8);
#else
G4Material*(G4NistManager::*f1_ConstructNewMaterial)
(const G4String&, const std::vector<G4String>&,
const std::vector<G4int>&, G4double, G4bool)
@@ -74,9 +90,16 @@ G4Material*(G4NistManager::*f2_ConstructNewMaterial)
const std::vector<G4double>&, G4double, G4bool)
= &G4NistManager::ConstructNewMaterial;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ConstructNewMaterial,
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ConstructNewMaterial,
ConstructNewMaterial, 4, 5);
#endif
#if G4VERSION_NUMBER >= 910
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ConstructNewGasMaterial,
ConstructNewGasMaterial, 4, 5);
#endif
};
using namespace pyG4NistManager;
@@ -100,8 +123,10 @@ void export_G4NistManager()
.def("SetVerbose", &G4NistManager::SetVerbose)
.def("GetVerbose", &G4NistManager::GetVerbose)
// ---
#if G4VERSION_NUMBER < 910
.def("RegisterElement", &G4NistManager::RegisterElement)
.def("DeRegisterElement", &G4NistManager::DeRegisterElement)
#endif
.def("GetElement", &G4NistManager::GetElement,
return_internal_reference<>())
.def("FindOrBuildElement", f1_FindOrBuildElement,
@@ -117,8 +142,10 @@ void export_G4NistManager()
.def("PrintElement", f2_PrintElement)
.def("PrintG4Element", &G4NistManager::PrintG4Element)
// ---
#if G4VERSION_NUMBER < 910
.def("RegisterMaterial", &G4NistManager::RegisterMaterial)
.def("DeRegisterMaterial", &G4NistManager::DeRegisterMaterial)
#endif
.def("GetMaterial", &G4NistManager::GetMaterial,
return_value_policy<reference_existing_object>())
.def("FindOrBuildMaterial", &G4NistManager::FindOrBuildMaterial,
@@ -130,6 +157,11 @@ void export_G4NistManager()
.def("ConstructNewMaterial", f2_ConstructNewMaterial,
f_ConstructNewMaterial()
[return_value_policy<reference_existing_object>()])
#if G4VERSION_NUMBER >= 910
.def("ConstructNewGasMaterial", &G4NistManager::ConstructNewGasMaterial,
f_ConstructNewGasMaterial()
[return_value_policy<reference_existing_object>()])
#endif
.def("GetNumberOfMaterials", &G4NistManager::GetNumberOfMaterials)
.def("ListMaterials", &G4NistManager::ListMaterials)
.def("PrintG4Material", &G4NistManager::PrintG4Material)
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pymodG4materials.cc,v 1.5 2007/05/28 03:11:20 kmura Exp $
// $Name: geant4-09-00 $
// $Name: geant4-09-01 $
// ====================================================================
// pymodG4materials.cc [Geant4Py module]
//