Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET pyG4physicslists)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
pyPhysicsLists.cc
|
||||
pymodG4physicslists.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4physicslists")
|
||||
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.1 2006-11-20 08:53:12 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,54 +23,32 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyPhysicsLists.cc,v 1.13 2010-12-02 08:24:22 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyPhysicsLists.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyPhysicsLists.cc
|
||||
//
|
||||
// 2007 Q
|
||||
// ====================================================================
|
||||
#include <boost/python.hpp>
|
||||
#include "G4Version.hh"
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
|
||||
#include "G4HadronCaptureProcess.hh"
|
||||
#include "G4HadronQElasticPhysics.hh"
|
||||
|
||||
#include "CHIPS.hh"
|
||||
#include "CHIPS_HP.hh"
|
||||
#include "FTFP_BERT.hh"
|
||||
//#include "FTFP_BERT_EMV.hh"
|
||||
#include "FTFP_BERT_EMX.hh"
|
||||
#include "FTFP_BERT_TRV.hh"
|
||||
#include "FTF_BIC.hh"
|
||||
#include "FTFP_BERT.hh"
|
||||
#include "FTFP_BERT_HP.hh"
|
||||
#include "FTFP_BERT_TRV.hh"
|
||||
#include "FTFP_INCLXX.hh"
|
||||
#include "FTFP_INCLXX_HP.hh"
|
||||
#include "LBE.hh"
|
||||
#include "LHEP.hh"
|
||||
#include "LHEP_EMV.hh"
|
||||
#include "QBBC.hh"
|
||||
#include "QGSC_BERT.hh"
|
||||
#include "QGSC_CHIPS.hh"
|
||||
#include "QGSP.hh"
|
||||
#include "QGS_BIC.hh"
|
||||
#include "QGSP_BERT.hh"
|
||||
#include "QGSP_BERT_95.hh"
|
||||
#include "QGSP_BERT_95XS.hh"
|
||||
#include "QGSP_BERT_CHIPS.hh"
|
||||
#include "QGSP_BERT_EMV.hh"
|
||||
#include "QGSP_BERT_EMX.hh"
|
||||
#include "QGSP_BERT_HP.hh"
|
||||
#include "QGSP_BERT_NOLEP.hh"
|
||||
#include "QGSP_BERT_TRV.hh"
|
||||
#include "QGSP_BIC.hh"
|
||||
#include "QGSP_BIC_EMY.hh"
|
||||
#include "QGSP_BIC_HP.hh"
|
||||
#include "QGSP_FTFP_BERT.hh"
|
||||
#include "QGSP_FTFP_BERT_95.hh"
|
||||
#include "QGSP_FTFP_BERT_95XS.hh"
|
||||
#include "QGSP_INCLXX.hh"
|
||||
//#include "QGSP_QEL.hh"
|
||||
#include "QGS_BIC.hh"
|
||||
|
||||
#include "QGSP_INCLXX_HP.hh"
|
||||
#include "Shielding.hh"
|
||||
|
||||
// macro for adding physics lists
|
||||
#define ADD_PHYSICS_LIST(plname) \
|
||||
@@ -98,7 +76,7 @@ void ListPhysicsList() {
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyPhysicsLists;
|
||||
|
||||
@@ -109,39 +87,24 @@ void export_PhysicsLists()
|
||||
{
|
||||
def("ListPhysicsList", ListPhysicsList);
|
||||
|
||||
ADD_PHYSICS_LIST(CHIPS);
|
||||
ADD_PHYSICS_LIST(CHIPS_HP);
|
||||
ADD_PHYSICS_LIST(FTFP_BERT);
|
||||
//ADD_PHYSICS_LIST(FTFP_BERT_EMV);
|
||||
ADD_PHYSICS_LIST(FTFP_BERT_EMX);
|
||||
ADD_PHYSICS_LIST(FTFP_BERT_TRV);
|
||||
ADD_PHYSICS_LIST(FTF_BIC);
|
||||
ADD_PHYSICS_LIST(FTFP_BERT);
|
||||
ADD_PHYSICS_LIST(FTFP_BERT_HP);
|
||||
ADD_PHYSICS_LIST(FTFP_BERT_TRV);
|
||||
ADD_PHYSICS_LIST(FTFP_INCLXX);
|
||||
ADD_PHYSICS_LIST(FTFP_INCLXX_HP);
|
||||
ADD_PHYSICS_LIST(LBE);
|
||||
ADD_PHYSICS_LIST(LHEP);
|
||||
ADD_PHYSICS_LIST(LHEP_EMV);
|
||||
ADD_PHYSICS_LIST(QBBC);
|
||||
ADD_PHYSICS_LIST(QGSC_BERT);
|
||||
ADD_PHYSICS_LIST(QGSC_CHIPS);
|
||||
ADD_PHYSICS_LIST(QGSP);
|
||||
ADD_PHYSICS_LIST(QGS_BIC);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT_95);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT_95XS);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT_CHIPS);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT_EMV);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT_EMX);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT_HP);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT_NOLEP);
|
||||
ADD_PHYSICS_LIST(QGSP_BERT_TRV);
|
||||
ADD_PHYSICS_LIST(QGSP_BIC);
|
||||
ADD_PHYSICS_LIST(QGSP_BIC_EMY);
|
||||
ADD_PHYSICS_LIST(QGSP_BIC_HP);
|
||||
ADD_PHYSICS_LIST(QGSP_FTFP_BERT);
|
||||
ADD_PHYSICS_LIST(QGSP_FTFP_BERT_95);
|
||||
ADD_PHYSICS_LIST(QGSP_FTFP_BERT_95XS);
|
||||
ADD_PHYSICS_LIST(QGSP_INCLXX);
|
||||
//ADD_PHYSICS_LIST(QGSP_QEL);
|
||||
ADD_PHYSICS_LIST(QGS_BIC);
|
||||
|
||||
ADD_PHYSICS_LIST(QGSP_INCLXX_HP);
|
||||
ADD_PHYSICS_LIST(Shielding);
|
||||
|
||||
// sort PL vector
|
||||
std::sort(plList.begin(), plList.end());
|
||||
}
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pymodG4physicslists.cc,v 1.2 2007-05-28 03:11:20 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pymodG4physicslists.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// pymodG4physicslists.cc [Geant4Py module]
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user