Import Geant4 9.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:16:48 +02:00
parent 75c7fd177d
commit a8e9364cea
6592 changed files with 84274 additions and 69292 deletions
@@ -1,5 +1,5 @@
# $Id: GNUmakefile,v 1.2 2006/04/25 08:09:45 kmura Exp $
# $Name: geant4-08-02 $
# $Name: geant4-09-00 $
# ===========================================================
# Makefile for building Geant4Py modules
# ===========================================================
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4EmCalculator.cc,v 1.5 2006/08/25 05:58:52 kmura Exp $
// $Name: geant4-08-02 $
// $Id: pyG4EmCalculator.cc,v 1.6 2007/05/28 03:11:20 kmura Exp $
// $Name: geant4-09-00 $
// ====================================================================
// pyG4EmCalculator.cc
//
@@ -146,7 +146,6 @@ G4double (G4EmCalculator::*f2_ComputeNuclearDEDX)
= &G4EmCalculator::ComputeNuclearDEDX;
#endif
#if G4VERSION_NUMBER >= 810
// ComputeElectronicDEDX
G4double (G4EmCalculator::*f1_ComputeElectronicDEDX)
@@ -160,7 +159,6 @@ G4double (G4EmCalculator::*f2_ComputeElectronicDEDX)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeElectronicDEDX,
ComputeElectronicDEDX, 3, 4);
// ComputeTotalDEDX
G4double (G4EmCalculator::*f1_ComputeTotalDEDX)
(G4double, const G4ParticleDefinition*, const G4Material*, G4double)
@@ -172,7 +170,6 @@ G4double (G4EmCalculator::*f2_ComputeTotalDEDX)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeTotalDEDX, ComputeTotalDEDX,
3, 4);
#endif
@@ -205,6 +202,18 @@ BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeCrossSectionPerAtom,
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(g_ComputeCrossSectionPerAtom,
ComputeCrossSectionPerAtom, 4, 5);
#if G4VERSION_NUMBER >= 830
// ComputeEnergyCutFromRangeCut
G4double (G4EmCalculator::*f1_ComputeEnergyCutFromRangeCut)
(G4double, const G4ParticleDefinition*, const G4Material*)
= &G4EmCalculator::ComputeEnergyCutFromRangeCut;
G4double (G4EmCalculator::*f2_ComputeEnergyCutFromRangeCut)
(G4double range, const G4String&, const G4String&)
= &G4EmCalculator::ComputeEnergyCutFromRangeCut;
#endif
// ComputeMeanFreePath
G4double (G4EmCalculator::*f1_ComputeMeanFreePath)
(G4double, const G4ParticleDefinition*,
@@ -279,6 +288,11 @@ void export_G4EmCalculator()
f1_ComputeCrossSectionPerAtom, f_ComputeCrossSectionPerAtom())
.def("ComputeCrossSectionPerAtom",
f2_ComputeCrossSectionPerAtom, g_ComputeCrossSectionPerAtom())
#if G4VERSION_NUMBER >= 830
.def("ComputeEnergyCutFromRangeCut", f1_ComputeEnergyCutFromRangeCut)
.def("ComputeEnergyCutFromRangeCut", f2_ComputeEnergyCutFromRangeCut)
#endif
// ---
.def("ComputeMeanFreePath",
f1_ComputeMeanFreePath, f_ComputeMeanFreePath())
.def("ComputeMeanFreePath",
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4LossTableManager.cc,v 1.2 2006/08/23 02:17:06 kmura Exp $
// $Name: geant4-08-02 $
// $Id: pyG4LossTableManager.cc,v 1.4 2007/06/07 08:59:39 kmura Exp $
// $Name: geant4-09-00 $
// ====================================================================
// pyG4LossTableManager.cc
//
@@ -83,13 +83,30 @@ void export_G4LossTableManager()
#if G4VERSION_NUMBER >= 810
.def("BuildCSDARange", &G4LossTableManager::BuildCSDARange)
.def("LPMFlag", &G4LossTableManager::LPMFlag)
.def("BremsstrahlungTh", &G4LossTableManager::BremsstrahlungTh)
#if G4VERSION_NUMBER <= 830
.def("SetMscStepLimitation", &G4LossTableManager::SetMscStepLimitation)
.def("MscFlag", &G4LossTableManager::MscFlag)
.def("FacRange", &G4LossTableManager::FacRange)
.def("BremsstrahlungTh", &G4LossTableManager::BremsstrahlungTh)
#endif
#else
.def("BuildPreciseRange", &G4LossTableManager::BuildPreciseRange)
#endif
// ---
#if G4VERSION_NUMBER == 830
.def("SetMscLateralDisplacement",
&G4LossTableManager::SetMscLateralDisplacement)
.def("SetSkin", &G4LossTableManager::SetSkin)
#endif
#if G4VERSION_NUMBER >= 830
.def("SetLinearLossLimit", &G4LossTableManager::SetLinearLossLimit)
#endif
;
}
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ProcVector.cc,v 1.4 2006/06/29 15:34:52 gunter Exp $
// $Name: geant4-08-02 $
// $Name: geant4-09-00 $
// ====================================================================
// pyG4ProcVector.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ProcessManager.cc,v 1.4 2006/06/29 15:34:55 gunter Exp $
// $Name: geant4-08-02 $
// $Name: geant4-09-00 $
// ====================================================================
// pyG4ProcessManager.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ProcessTable.cc,v 1.4 2006/06/29 15:34:58 gunter Exp $
// $Name: geant4-08-02 $
// $Name: geant4-09-00 $
// ====================================================================
// pyG4ProcessTable.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ProcessType.cc,v 1.4 2006/06/29 15:35:00 gunter Exp $
// $Name: geant4-08-02 $
// $Name: geant4-09-00 $
// ====================================================================
// pyG4ProcessTyoe.cc
//
@@ -23,15 +23,17 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ProductionCutsTable.cc,v 1.2 2006/07/12 06:29:02 kmura Exp $
// $Name: geant4-08-02 $
// $Id: pyG4ProductionCutsTable.cc,v 1.3 2007/05/28 03:11:20 kmura Exp $
// $Name: geant4-09-00 $
// ====================================================================
// pyG4ProductionCutsTable.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "pyG4Version.hh"
#include "G4ProductionCutsTable.hh"
#include "G4Material.hh"
using namespace boost::python;
@@ -56,6 +58,10 @@ void export_G4ProductionCutsTable()
.def("DumpCouples", &G4ProductionCutsTable::DumpCouples)
.def("IsModified", &G4ProductionCutsTable::IsModified)
// ---
#if G4VERSION_NUMBER >= 830
.def("ConvertRangeToEnergy", &G4ProductionCutsTable::ConvertRangeToEnergy)
#endif
// ---
.def("SetVerboseLevel", &G4ProductionCutsTable::SetVerboseLevel)
.def("GetVerboseLevel", &G4ProductionCutsTable::GetVerboseLevel)
;
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4VProcess.cc,v 1.4 2006/06/29 15:35:03 gunter Exp $
// $Name: geant4-08-02 $
// $Name: geant4-09-00 $
// ====================================================================
// pyG4VProcess.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pymodG4processes.cc,v 1.6 2006/07/12 05:43:18 kmura Exp $
// $Name: geant4-08-02 $
// $Name: geant4-09-00 $
// ====================================================================
// pymodG4processes.cc
//