Import Geant4 9.2.0 source tree
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006/04/25 08:09:45 kmura Exp $
|
||||
# $Name: geant4-09-01 $
|
||||
# $Name: geant4-09-02 $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: pyG4CrossSectionHandler.cc,v 1.1 2008/12/03 06:56:18 kmura Exp $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4CrossSectionHandler.cc
|
||||
//
|
||||
// 2008 Q
|
||||
// ====================================================================
|
||||
#include <boost/python.hpp>
|
||||
#include "G4CrossSectionHandler.hh"
|
||||
|
||||
using namespace boost::python;
|
||||
|
||||
// ====================================================================
|
||||
// module definition
|
||||
// ====================================================================
|
||||
void export_G4CrossSectionHandler()
|
||||
{
|
||||
class_<G4CrossSectionHandler, bases<G4VCrossSectionHandler>,
|
||||
boost::noncopyable>
|
||||
("G4CrossSectionHandler", "cross section handler")
|
||||
.def(init<>())
|
||||
;
|
||||
}
|
||||
@@ -23,15 +23,15 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4EmCalculator.cc,v 1.6 2007/05/28 03:11:20 kmura Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Id: pyG4EmCalculator.cc,v 1.7 2008/03/13 07:32:18 kmura Exp $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4EmCalculator.cc
|
||||
//
|
||||
// 2006 Q
|
||||
// ====================================================================
|
||||
#include <boost/python.hpp>
|
||||
#include "pyG4Version.hh"
|
||||
#include "G4Version.hh"
|
||||
#include "G4EmCalculator.hh"
|
||||
#include "G4Region.hh"
|
||||
#include "G4Material.hh"
|
||||
|
||||
@@ -23,15 +23,15 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4LossTableManager.cc,v 1.4 2007/06/07 08:59:39 kmura Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Id: pyG4LossTableManager.cc,v 1.5 2008/03/13 07:32:18 kmura Exp $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4LossTableManager.cc
|
||||
//
|
||||
// 2005 Q
|
||||
// ====================================================================
|
||||
#include <boost/python.hpp>
|
||||
#include "pyG4Version.hh"
|
||||
#include "G4Version.hh"
|
||||
#include "G4LossTableManager.hh"
|
||||
|
||||
using namespace boost::python;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4ProcVector.cc,v 1.4 2006/06/29 15:34:52 gunter Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4ProcVector.cc
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4ProcessManager.cc,v 1.4 2006/06/29 15:34:55 gunter Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4ProcessManager.cc
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4ProcessTable.cc,v 1.4 2006/06/29 15:34:58 gunter Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4ProcessTable.cc
|
||||
//
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4ProcessType.cc,v 1.4 2006/06/29 15:35:00 gunter Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4ProcessTyoe.cc
|
||||
//
|
||||
|
||||
@@ -23,15 +23,15 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4ProductionCutsTable.cc,v 1.3 2007/05/28 03:11:20 kmura Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Id: pyG4ProductionCutsTable.cc,v 1.4 2008/03/13 07:32:18 kmura Exp $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4ProductionCutsTable.cc
|
||||
//
|
||||
// 2005 Q
|
||||
// ====================================================================
|
||||
#include <boost/python.hpp>
|
||||
#include "pyG4Version.hh"
|
||||
#include "G4Version.hh"
|
||||
#include "G4ProductionCutsTable.hh"
|
||||
#include "G4Material.hh"
|
||||
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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: pyG4VCrossSectionHandler.cc,v 1.1 2008/12/03 06:56:18 kmura Exp $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4VCrossSectionHandler.cc
|
||||
//
|
||||
// 2008 Q
|
||||
// ====================================================================
|
||||
#include <boost/python.hpp>
|
||||
#include "G4VCrossSectionHandler.hh"
|
||||
#include "G4VDataSetAlgorithm.hh"
|
||||
#include "G4Material.hh"
|
||||
#include "G4Element.hh"
|
||||
|
||||
using namespace boost::python;
|
||||
|
||||
// ====================================================================
|
||||
// thin wrappers
|
||||
// ====================================================================
|
||||
namespace pyG4VCrossSectionHandler {
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_Initialise, Initialise, 0, 8);
|
||||
|
||||
// FindValue
|
||||
G4double (G4VCrossSectionHandler::*f1_FindValue)(G4int, G4double) const
|
||||
= &G4VCrossSectionHandler::FindValue;
|
||||
|
||||
G4double (G4VCrossSectionHandler::*f2_FindValue)(G4int, G4double, G4int) const
|
||||
= &G4VCrossSectionHandler::FindValue;
|
||||
|
||||
};
|
||||
|
||||
using namespace pyG4VCrossSectionHandler;
|
||||
|
||||
// ====================================================================
|
||||
// module definition
|
||||
// ====================================================================
|
||||
void export_G4VCrossSectionHandler()
|
||||
{
|
||||
class_<G4VCrossSectionHandler, boost::noncopyable>
|
||||
("G4VCrossSectionHandler", "cross section handler", no_init)
|
||||
// ---
|
||||
.def("Initialise", &G4VCrossSectionHandler::Initialise,
|
||||
f_Initialise())
|
||||
.def("SelectRandomElement", &G4VCrossSectionHandler::SelectRandomElement,
|
||||
return_value_policy<reference_existing_object>())
|
||||
.def("SelectRandomShell", &G4VCrossSectionHandler::SelectRandomShell)
|
||||
.def("FindValue", f1_FindValue)
|
||||
.def("FindValue", f2_FindValue)
|
||||
.def("ValueForMaterial", &G4VCrossSectionHandler::ValueForMaterial)
|
||||
.def("LoadData", &G4VCrossSectionHandler::LoadData)
|
||||
.def("LoadShellData", &G4VCrossSectionHandler::LoadShellData)
|
||||
.def("PrintData", &G4VCrossSectionHandler::PrintData)
|
||||
.def("Clear", &G4VCrossSectionHandler::Clear)
|
||||
;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyG4VProcess.cc,v 1.4 2006/06/29 15:35:03 gunter Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pyG4VProcess.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pymodG4processes.cc,v 1.6 2006/07/12 05:43:18 kmura Exp $
|
||||
// $Name: geant4-09-01 $
|
||||
// $Id: pymodG4processes.cc,v 1.7 2008/12/03 06:56:18 kmura Exp $
|
||||
// $Name: geant4-09-02 $
|
||||
// ====================================================================
|
||||
// pymodG4processes.cc
|
||||
//
|
||||
@@ -45,6 +45,8 @@ void export_G4ProcessType();
|
||||
void export_G4EmCalculator();
|
||||
void export_G4LossTableManager();
|
||||
void export_G4ProductionCutsTable();
|
||||
void export_G4VCrossSectionHandler();
|
||||
void export_G4CrossSectionHandler();
|
||||
|
||||
BOOST_PYTHON_MODULE(G4processes)
|
||||
{
|
||||
@@ -56,4 +58,6 @@ BOOST_PYTHON_MODULE(G4processes)
|
||||
export_G4EmCalculator();
|
||||
export_G4LossTableManager();
|
||||
export_G4ProductionCutsTable();
|
||||
export_G4VCrossSectionHandler();
|
||||
export_G4CrossSectionHandler();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user