Import Geant4 8.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:55:03 +02:00
parent 216a75eeb1
commit fe73f43734
6714 changed files with 118229 additions and 68144 deletions
@@ -1,5 +1,5 @@
# $Id: GNUmakefile,v 1.2 2006/04/25 08:09:45 kmura Exp $
# $Name: geant4-08-01 $
# $Name: geant4-08-02 $
# ===========================================================
# Makefile for building Geant4Py modules
# ===========================================================
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4EmCalculator.cc,v 1.4 2006/06/29 15:34:49 gunter Exp $
// $Name: geant4-08-01 $
// $Id: pyG4EmCalculator.cc,v 1.5 2006/08/25 05:58:52 kmura Exp $
// $Name: geant4-08-02 $
// ====================================================================
// pyG4EmCalculator.cc
//
@@ -136,6 +136,7 @@ G4double (G4EmCalculator::*f2_ComputeDEDX)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ComputeDEDX, ComputeDEDX, 4, 5);
// ComputeNuclearDEDX
#if G4VERSION_NUMBER >=710
G4double (G4EmCalculator::*f1_ComputeNuclearDEDX)
(G4double, const G4ParticleDefinition*, const G4Material*)
= &G4EmCalculator::ComputeNuclearDEDX;
@@ -143,6 +144,7 @@ G4double (G4EmCalculator::*f1_ComputeNuclearDEDX)
G4double (G4EmCalculator::*f2_ComputeNuclearDEDX)
(G4double, const G4String&, const G4String&)
= &G4EmCalculator::ComputeNuclearDEDX;
#endif
#if G4VERSION_NUMBER >= 810
@@ -256,8 +258,10 @@ void export_G4EmCalculator()
// ---
.def("ComputeDEDX", f1_ComputeDEDX, f_ComputeDEDX())
.def("ComputeDEDX", f2_ComputeDEDX, f_ComputeDEDX())
#if G4VERSION_NUMBER >=710
.def("ComputeNuclearDEDX", f1_ComputeNuclearDEDX)
.def("ComputeNuclearDEDX", f2_ComputeNuclearDEDX)
#endif
#if G4VERSION_NUMBER >= 810
.def("ComputeElectronicDEDX", f1_ComputeElectronicDEDX,
f_ComputeElectronicDEDX())
@@ -0,0 +1,95 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * 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 $
// ====================================================================
// pyG4LossTableManager.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "pyG4Version.hh"
#include "G4LossTableManager.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4LossTableManager()
{
class_<G4LossTableManager, boost::noncopyable>
("G4LossTableManager", "energy loss table manager", no_init)
.def("Instance", &G4LossTableManager::Instance,
return_value_policy<reference_existing_object>())
.staticmethod("Instance")
// internally used methods are limmitted to be exposed...
// ----
.def("SetLossFluctuations", &G4LossTableManager::SetLossFluctuations)
.def("SetSubCutoff", &G4LossTableManager::SetSubCutoff)
.def("SetIntegral", &G4LossTableManager::SetIntegral)
.def("SetRandomStep", &G4LossTableManager::SetRandomStep)
.def("SetMinSubRange", &G4LossTableManager::SetMinSubRange)
.def("SetMinEnergy", &G4LossTableManager::SetMinEnergy)
.def("SetMaxEnergy", &G4LossTableManager::SetMaxEnergy)
#if G4VERSION_NUMBER >= 810
.def("SetMaxEnergyForCSDARange",
&G4LossTableManager::SetMaxEnergyForCSDARange)
#else
.def("SetMaxEnergyForPreciseRange",
&G4LossTableManager::SetMaxEnergyForPreciseRange)
#endif
.def("SetMaxEnergyForMuons", &G4LossTableManager::SetMaxEnergyForMuons)
#if G4VERSION_NUMBER >= 810
.def("SetStepFunction", &G4LossTableManager::SetStepFunction)
.def("SetBuildCSDARange", &G4LossTableManager::SetBuildCSDARange)
.def("SetLPMFlag", &G4LossTableManager::SetLPMFlag)
.def("SetBremsstrahlungTh", &G4LossTableManager::SetBremsstrahlungTh)
#else
.def("SetStepLimits", &G4LossTableManager::SetStepLimits)
.def("SetBuildPreciseRange", &G4LossTableManager::SetBuildPreciseRange)
#endif
.def("SetVerbose", &G4LossTableManager::SetVerbose)
// ---
#if G4VERSION_NUMBER >= 810
.def("BuildCSDARange", &G4LossTableManager::BuildCSDARange)
.def("LPMFlag", &G4LossTableManager::LPMFlag)
.def("SetMscStepLimitation", &G4LossTableManager::SetMscStepLimitation)
.def("MscFlag", &G4LossTableManager::MscFlag)
.def("FacRange", &G4LossTableManager::FacRange)
.def("BremsstrahlungTh", &G4LossTableManager::BremsstrahlungTh)
#else
.def("BuildPreciseRange", &G4LossTableManager::BuildPreciseRange)
#endif
;
}
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ProcVector.cc,v 1.4 2006/06/29 15:34:52 gunter Exp $
// $Name: geant4-08-01 $
// $Name: geant4-08-02 $
// ====================================================================
// pyG4ProcVector.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ProcessManager.cc,v 1.4 2006/06/29 15:34:55 gunter Exp $
// $Name: geant4-08-01 $
// $Name: geant4-08-02 $
// ====================================================================
// pyG4ProcessManager.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ProcessTable.cc,v 1.4 2006/06/29 15:34:58 gunter Exp $
// $Name: geant4-08-01 $
// $Name: geant4-08-02 $
// ====================================================================
// pyG4ProcessTable.cc
//
@@ -24,7 +24,7 @@
// ********************************************************************
//
// $Id: pyG4ProcessType.cc,v 1.4 2006/06/29 15:35:00 gunter Exp $
// $Name: geant4-08-01 $
// $Name: geant4-08-02 $
// ====================================================================
// pyG4ProcessTyoe.cc
//
@@ -0,0 +1,63 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * 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 $
// ====================================================================
// pyG4ProductionCutsTable.cc
//
// 2005 Q
// ====================================================================
#include <boost/python.hpp>
#include "G4ProductionCutsTable.hh"
using namespace boost::python;
// ====================================================================
// module definition
// ====================================================================
void export_G4ProductionCutsTable()
{
class_<G4ProductionCutsTable, boost::noncopyable>
("G4ProductionCutsTable", "production cuts table", no_init)
.def("GetProductionCutsTable",
&G4ProductionCutsTable::GetProductionCutsTable,
return_value_policy<reference_existing_object>())
.staticmethod("GetProductionCutsTable")
// internally used methods are limmitted to be exposed...
// ---
.def("GetLowEdgeEnergy", &G4ProductionCutsTable::GetLowEdgeEnergy)
.def("GetHighEdgeEnergy", &G4ProductionCutsTable::GetHighEdgeEnergy)
.def("SetEnergyRange", &G4ProductionCutsTable::SetEnergyRange)
.def("DumpCouples", &G4ProductionCutsTable::DumpCouples)
.def("IsModified", &G4ProductionCutsTable::IsModified)
// ---
.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-01 $
// $Name: geant4-08-02 $
// ====================================================================
// pyG4VProcess.cc
//
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4processes.cc,v 1.4 2006/06/29 15:35:06 gunter Exp $
// $Name: geant4-08-01 $
// $Id: pymodG4processes.cc,v 1.6 2006/07/12 05:43:18 kmura Exp $
// $Name: geant4-08-02 $
// ====================================================================
// pymodG4processes.cc
//
@@ -43,6 +43,8 @@ void export_G4VProcess();
void export_G4ProcVector();
void export_G4ProcessType();
void export_G4EmCalculator();
void export_G4LossTableManager();
void export_G4ProductionCutsTable();
BOOST_PYTHON_MODULE(G4processes)
{
@@ -52,4 +54,6 @@ BOOST_PYTHON_MODULE(G4processes)
export_G4ProcVector();
export_G4ProcessType();
export_G4EmCalculator();
export_G4LossTableManager();
export_G4ProductionCutsTable();
}