Import Geant4 10.0.0 source tree
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
# - add libs components
|
||||
|
||||
set (G4SITEMODULES_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/g4py )
|
||||
|
||||
include_directories (
|
||||
${PYTHON_INCLUDE_PATH}
|
||||
${BOOST_INCLUDE_DIRS}
|
||||
${GEANT4_INCLUDE_DIR}
|
||||
)
|
||||
|
||||
add_subdirectory(geometries)
|
||||
add_subdirectory(materials)
|
||||
add_subdirectory(processes)
|
||||
add_subdirectory(physics_lists)
|
||||
add_subdirectory(primaries)
|
||||
add_subdirectory(utils)
|
||||
add_subdirectory(python)
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.4 2008-12-01 07:23:29 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py site-modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
# - add libs components
|
||||
|
||||
add_subdirectory(ExN01geom)
|
||||
add_subdirectory(ExN03geom)
|
||||
add_subdirectory(Qgeom)
|
||||
add_subdirectory(ezgeom)
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET ExN01geom)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
ExN01DetectorConstruction.cc
|
||||
pyExN01geom.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: ExN01DetectorConstruction.cc,v 1.4 2006-06-29 15:29:10 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: ExN01DetectorConstruction.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// ExN01DetectorConstruction.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: ExN01DetectorConstruction.hh,v 1.4 2006-06-29 15:29:12 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: ExN01DetectorConstruction.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// ExN01DetectorConstruction.hh
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:25:12 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyExN01geom.cc,v 1.4 2006-06-29 15:29:14 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyExN01geom.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyExN01geom.cc
|
||||
//
|
||||
@@ -52,7 +51,7 @@ void Construct()
|
||||
runMgr-> SetUserInitialization(new ExN01DetectorConstruction);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyExN03geom;
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET ExN03geom)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
ExN03DetectorConstruction.cc
|
||||
ExN03DetectorMessenger.cc
|
||||
pyExN03geom.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -24,8 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN03DetectorConstruction.cc,v 1.5 2006-12-01 02:37:01 kmura Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
// $Id: ExN03DetectorConstruction.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN03DetectorConstruction.hh,v 1.5 2006-12-01 02:37:01 kmura Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
// $Id: ExN03DetectorConstruction.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN03DetectorMessenger.cc,v 1.1 2006-12-01 02:37:01 kmura Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
// $Id: ExN03DetectorMessenger.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: ExN03DetectorMessenger.hh,v 1.1 2006-12-01 02:37:01 kmura Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
// $Id: ExN03DetectorMessenger.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:25:12 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyExN03geom.cc,v 1.4 2006-06-29 15:29:21 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyExN03geom.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyExN03geom.cc
|
||||
//
|
||||
@@ -54,7 +53,7 @@ void Construct()
|
||||
runMgr-> SetUserInitialization(new ExN03DetectorConstruction);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyExN03geom;
|
||||
|
||||
@@ -84,7 +83,7 @@ BOOST_PYTHON_MODULE(ExN03geom) {
|
||||
return_value_policy<reference_existing_object>())
|
||||
.def("GetAbsorberThickness", &XXX::GetAbsorberThickness)
|
||||
.def("GetGapMaterial", &XXX::GetGapMaterial,
|
||||
return_value_policy<reference_existing_object>())
|
||||
return_value_policy<reference_existing_object>())
|
||||
.def("GetGapThickness", &XXX::GetGapThickness)
|
||||
.def("GetphysiWorld", &XXX::GetphysiWorld,
|
||||
return_value_policy<reference_existing_object>())
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.3 2008-12-01 07:07:05 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py site-modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET Qgeom)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
QDetectorConstruction.cc
|
||||
pyQgeom.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:25:12 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QDetectorConstruction.cc,v 1.4 2006-06-29 15:29:24 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: QDetectorConstruction.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// QDetectorConstruction.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: QDetectorConstruction.hh,v 1.4 2006-06-29 15:29:26 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: QDetectorConstruction.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// QDetectorConstruction.hh
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyQgeom.cc,v 1.4 2006-06-29 15:29:29 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyQgeom.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyQgeom.cc
|
||||
//
|
||||
@@ -52,7 +51,7 @@ void Construct()
|
||||
runMgr-> SetUserInitialization(new QDetectorConstruction);
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyQgeom;
|
||||
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET ezgeom)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
EzDetectorConstruction.cc
|
||||
G4EzVolume.cc
|
||||
G4EzVoxelParameterization.cc
|
||||
G4EzWorld.cc
|
||||
pyEzgeom.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: EzDetectorConstruction.cc,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: EzDetectorConstruction.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// EzDetectorConstruction.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: EzDetectorConstruction.hh,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: EzDetectorConstruction.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// EzDetectorConstruction.hh
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EzVolume.cc,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: G4EzVolume.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// G4EzVolume.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EzVolume.hh,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: G4EzVolume.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// G4EzVolume.hh
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EzVoxelParameterization.cc,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: G4EzVoxelParameterization.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// G4EzVoxelParameterization.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EzVoxelParameterization.hh,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: G4EzVoxelParameterization.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// G4EzVoxelParameterization.hh
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EzWorld.cc,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: G4EzWorld.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// G4EzWorld.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4EzWorld.hh,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: G4EzWorld.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// G4EzWorld.hh
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyEzgeom.cc,v 1.1 2008-12-01 07:07:34 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyEzgeom.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyEZgeom.cc
|
||||
//
|
||||
@@ -80,14 +79,14 @@ void SetWorldVisibility(G4bool qvis)
|
||||
|
||||
|
||||
// CreateTubeVolume
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume,
|
||||
CreateTubeVolume, 4, 6);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateTubeVolume,
|
||||
CreateTubeVolume, 4, 6)
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume,
|
||||
CreateConeVolume, 6, 8);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateConeVolume,
|
||||
CreateConeVolume, 6, 8)
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateSphereVolume,
|
||||
CreateSphereVolume, 3, 7);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateSphereVolume,
|
||||
CreateSphereVolume, 3, 7)
|
||||
|
||||
// PlaceIt
|
||||
G4VPhysicalVolume*(G4EzVolume::*f1_PlaceIt)
|
||||
@@ -96,17 +95,17 @@ G4VPhysicalVolume*(G4EzVolume::*f1_PlaceIt)
|
||||
G4VPhysicalVolume*(G4EzVolume::*f2_PlaceIt)
|
||||
(const G4Transform3D&, G4int, G4EzVolume*) = &G4EzVolume::PlaceIt;
|
||||
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_PlaceIt, PlaceIt, 1, 3);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_PlaceIt, PlaceIt, 1, 3)
|
||||
|
||||
// ReplicateIt
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ReplicateIt, ReplicateIt, 4, 5);
|
||||
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ReplicateIt, ReplicateIt, 4, 5)
|
||||
|
||||
// SetColor
|
||||
void (G4EzVolume::*f1_SetColor)(const G4Color&) = &G4EzVolume::SetColor;
|
||||
void (G4EzVolume::*f2_SetColor)(G4double, G4double, G4double)
|
||||
void (G4EzVolume::*f2_SetColor)(G4double, G4double, G4double)
|
||||
= &G4EzVolume::SetColor;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyEZgeom;
|
||||
|
||||
@@ -120,11 +119,11 @@ BOOST_PYTHON_MODULE(ezgeom) {
|
||||
.def(init<const G4String&>())
|
||||
// ---
|
||||
.def("CreateBoxVolume", &G4EzVolume::CreateBoxVolume)
|
||||
.def("CreateTubeVolume", &G4EzVolume::CreateTubeVolume,
|
||||
.def("CreateTubeVolume", &G4EzVolume::CreateTubeVolume,
|
||||
f_CreateTubeVolume())
|
||||
.def("CreateConeVolume", &G4EzVolume::CreateConeVolume,
|
||||
.def("CreateConeVolume", &G4EzVolume::CreateConeVolume,
|
||||
f_CreateConeVolume())
|
||||
.def("CreateShpereVolume", &G4EzVolume::CreateSphereVolume,
|
||||
.def("CreateShpereVolume", &G4EzVolume::CreateSphereVolume,
|
||||
f_CreateSphereVolume())
|
||||
.def("CreateOrbVolume", &G4EzVolume::CreateOrbVolume)
|
||||
// ---
|
||||
@@ -135,11 +134,11 @@ BOOST_PYTHON_MODULE(ezgeom) {
|
||||
.def("GetMaterial", &G4EzVolume::GetMaterial,
|
||||
return_value_policy<reference_existing_object>())
|
||||
// ---
|
||||
.def("PlaceIt", f1_PlaceIt,
|
||||
.def("PlaceIt", f1_PlaceIt,
|
||||
f_PlaceIt()[return_value_policy<reference_existing_object>()])
|
||||
.def("PlaceIt", f2_PlaceIt,
|
||||
.def("PlaceIt", f2_PlaceIt,
|
||||
f_PlaceIt()[return_value_policy<reference_existing_object>()])
|
||||
.def("ReplicateIt", &G4EzVolume::ReplicateIt,
|
||||
.def("ReplicateIt", &G4EzVolume::ReplicateIt,
|
||||
f_ReplicateIt()[return_value_policy<reference_existing_object>()])
|
||||
.def("VoxelizeIt", &G4EzVolume::VoxelizeIt)
|
||||
// ---
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# - add libs components
|
||||
|
||||
add_subdirectory(NISTmaterials)
|
||||
add_subdirectory(Qmaterials)
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:28:34 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py site-modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET NISTmaterials)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
NISTmaterials.cc
|
||||
pyNISTmaterials.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:28:34 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: NISTmaterials.cc,v 1.4 2006-06-29 15:29:32 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: NISTmaterials.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// NISTmaterials.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyNISTmaterials.cc,v 1.4 2006-06-29 15:29:34 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyNISTmaterials.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// pyNISTmaterials.cc
|
||||
//
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET Qmaterials)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
Qmaterials.cc
|
||||
pyQmaterials.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:28:36 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: Qmaterials.cc,v 1.4 2006-06-29 15:29:37 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: Qmaterials.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// Qmaterials.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyQmaterials.cc,v 1.4 2006-06-29 15:29:40 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyQmaterials.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// pyQmaterials.cc
|
||||
//
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
# - add libs components
|
||||
|
||||
add_subdirectory(EMSTDpl)
|
||||
add_subdirectory(ExN01pl)
|
||||
add_subdirectory(ExN03pl)
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET EMSTDpl)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
PhysicsListEMstd.cc
|
||||
pyEMSTDpl.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:31:40 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: PhysicsListEMstd.cc,v 1.6 2010-06-04 05:45:57 kmura Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: PhysicsListEMstd.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// PhysicsListEMstd.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: PhysicsListEMstd.hh,v 1.4 2006-06-29 15:29:46 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: PhysicsListEMstd.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// PhysicsListEMstd.hh
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyEMSTDpl.cc,v 1.4 2006-06-29 15:29:49 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyEMSTDpl.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyEMSTDpl.cc
|
||||
//
|
||||
@@ -49,14 +48,14 @@ namespace pyEMSTDpl {
|
||||
PhysicsListEMstd* Construct()
|
||||
{
|
||||
PhysicsListEMstd* pl= new PhysicsListEMstd;
|
||||
|
||||
|
||||
G4RunManager* runMgr= G4RunManager::GetRunManager();
|
||||
runMgr-> SetUserInitialization(pl);
|
||||
|
||||
return pl;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyEMSTDpl;
|
||||
|
||||
@@ -71,7 +70,7 @@ BOOST_PYTHON_MODULE(EMSTDpl) {
|
||||
;
|
||||
|
||||
// ---
|
||||
def("Construct", Construct,
|
||||
def("Construct", Construct,
|
||||
return_value_policy<reference_existing_object>());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET ExN01pl)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
ExN01PhysicsList.cc
|
||||
pyExN01pl.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: ExN01PhysicsList.cc,v 1.4 2006-06-29 15:29:52 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: ExN01PhysicsList.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// ExN01PhysicsList.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: ExN01PhysicsList.hh,v 1.4 2006-06-29 15:29:55 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: ExN01PhysicsList.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// ExN01PhysicsList.hh
|
||||
//
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:31:40 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyExN01pl.cc,v 1.4 2006-06-29 15:29:58 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyExN01pl.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyExN01pl.cc
|
||||
//
|
||||
@@ -56,7 +55,7 @@ ExN01PhysicsList* Construct()
|
||||
return pl;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyExN01pl;
|
||||
|
||||
@@ -73,5 +72,5 @@ BOOST_PYTHON_MODULE(ExN01pl) {
|
||||
// ---
|
||||
def("Construct", Construct,
|
||||
return_value_policy<reference_existing_object>());
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET ExN03pl)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
PhysicsList.cc
|
||||
pyExN03pl.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 2006-04-25 10:32:41 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysicsList.cc,v 1.1 2010-10-18 15:56:17 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
// $Id: PhysicsList.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -24,8 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: PhysicsList.hh,v 1.1 2010-10-18 15:56:17 maire Exp $
|
||||
// GEANT4 tag $Name: not supported by cvs2svn $
|
||||
// $Id: PhysicsList.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyExN03pl.cc,v 1.3 2006-06-29 15:30:07 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyExN03pl.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyExN03pl.cc
|
||||
//
|
||||
@@ -56,7 +55,7 @@ PhysicsList* Construct()
|
||||
return pl;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyExN03pl;
|
||||
|
||||
@@ -73,5 +72,5 @@ BOOST_PYTHON_MODULE(ExN03pl) {
|
||||
// ---
|
||||
def("Construct", Construct,
|
||||
return_value_policy<reference_existing_object>());
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.3 2006-07-12 08:45:14 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py site-modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
# - add libs components
|
||||
|
||||
add_subdirectory(MedicalBeam)
|
||||
add_subdirectory(ParticleGun)
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:29:52 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py site-modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET MedicalBeam)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
MedicalBeam.cc
|
||||
pyMedicalBeam.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:29:52 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: MedicalBeam.cc,v 1.6 2006-06-29 15:30:10 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: MedicalBeam.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// MedicalBeam.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: MedicalBeam.hh,v 1.4 2006-06-29 15:30:12 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: MedicalBeam.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// MedicalBeam.hh
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyMedicalBeam.cc,v 1.4 2006-06-29 15:30:14 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyMedicalBeam.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyMedicalBeam.cc
|
||||
//
|
||||
@@ -104,7 +103,7 @@ list f_GetFieldXY(MedicalBeam* beam)
|
||||
return listFieldXY;
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyMedicalBeam;
|
||||
|
||||
@@ -121,7 +120,7 @@ BOOST_PYTHON_MODULE(MedicalBeam) {
|
||||
.def("SetParticleByName", SetParticleByName)
|
||||
.def("GetParticleByName", GetParticleByName)
|
||||
// ---
|
||||
.add_property("kineticE", &MedicalBeam::GetKineticE,
|
||||
.add_property("kineticE", &MedicalBeam::GetKineticE,
|
||||
&MedicalBeam::SetKineticE)
|
||||
.def("SetKineticE", &MedicalBeam::SetKineticE)
|
||||
.def("GetKineticE", &MedicalBeam::GetKineticE)
|
||||
@@ -150,13 +149,13 @@ BOOST_PYTHON_MODULE(MedicalBeam) {
|
||||
.def("SetFieldR", &MedicalBeam::SetFieldR)
|
||||
.def("GetFieldR", &MedicalBeam::GetFieldR)
|
||||
;
|
||||
|
||||
|
||||
// enums...
|
||||
enum_<MedicalBeam::FieldShape>("FieldShape")
|
||||
.value("SQUARE", MedicalBeam::SQUARE)
|
||||
.value("CIRCLE", MedicalBeam::CIRCLE)
|
||||
;
|
||||
|
||||
|
||||
// ---
|
||||
def("Construct", Construct,
|
||||
return_value_policy<reference_existing_object>());
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# - build library
|
||||
|
||||
link_directories (${GEANT4_LIBRARY_DIR})
|
||||
|
||||
# library
|
||||
set(_TARGET ParticleGun)
|
||||
add_library(
|
||||
${_TARGET} SHARED
|
||||
ParticleGunAction.cc
|
||||
pyParticleGun.cc
|
||||
)
|
||||
|
||||
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
|
||||
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 ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2006-04-25 10:29:52 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: ParticleGunAction.cc,v 1.4 2006-06-29 15:30:16 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: ParticleGunAction.cc 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// ParticleGunAction.cc
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: ParticleGunAction.hh,v 1.4 2006-06-29 15:30:19 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: ParticleGunAction.hh 66892 2013-01-17 10:57:59Z gunter $
|
||||
// ====================================================================
|
||||
// ParticleGunAction.hh
|
||||
//
|
||||
|
||||
@@ -23,8 +23,7 @@
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: pyParticleGun.cc,v 1.4 2006-06-29 15:30:21 gunter Exp $
|
||||
// $Name: not supported by cvs2svn $
|
||||
// $Id: pyParticleGun.cc 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
// ====================================================================
|
||||
// pyParticleGun.cc
|
||||
//
|
||||
@@ -53,11 +52,11 @@ G4ParticleGun* Construct()
|
||||
|
||||
ParticleGunAction* pga= new ParticleGunAction;
|
||||
runMgr-> SetUserAction(pga);
|
||||
|
||||
|
||||
return pga-> GetParticleGun();
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
using namespace pyParticleGun;
|
||||
|
||||
@@ -74,7 +73,7 @@ BOOST_PYTHON_MODULE(ParticleGun) {
|
||||
;
|
||||
|
||||
// ---
|
||||
def("Construct", Construct,
|
||||
def("Construct", Construct,
|
||||
return_value_policy<reference_existing_object>());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# - add libs components
|
||||
|
||||
if (${PYTHON_VERSION_MAJOR} MATCHES "2")
|
||||
add_subdirectory(emcalculator)
|
||||
elseif (${PYTHON_VERSION_MAJOR} MATCHES "3")
|
||||
add_subdirectory(emcalculator/python3)
|
||||
endif()
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 2008-12-01 07:04:08 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py site-modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# - build library
|
||||
|
||||
file (GLOB PY_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.py)
|
||||
|
||||
foreach (_pyfile ${PY_FILES})
|
||||
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${_pyfile}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${_pyfile} COPYONLY)
|
||||
list (APPEND PYC_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}c")
|
||||
list (APPEND PYO_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}o")
|
||||
endforeach()
|
||||
|
||||
add_custom_target (emcalculator ALL)
|
||||
|
||||
add_custom_command (
|
||||
TARGET emcalculator
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -O -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
# install
|
||||
|
||||
install (FILES ${PY_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYC_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYO_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.3 2010-12-02 08:34:07 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
@@ -14,7 +13,7 @@ ifeq ($(Q_WITH_PYTHON3), 0)
|
||||
|
||||
else
|
||||
|
||||
.PHONY: all install clean
|
||||
.PHONY: all install clean
|
||||
|
||||
all:
|
||||
@cd python3 && $(MAKE)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#$Id: emcalculator.py,v 1.1 2008-12-01 07:04:08 kmura Exp $
|
||||
#$Id: emcalculator.py 66892 2013-01-17 10:57:59Z gunter $
|
||||
"""
|
||||
# ==================================================================
|
||||
# Python module
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# - build library
|
||||
|
||||
file (GLOB PY_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.py)
|
||||
|
||||
foreach (_pyfile ${PY_FILES})
|
||||
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${_pyfile}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${_pyfile} COPYONLY)
|
||||
list (APPEND PYC_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}c")
|
||||
list (APPEND PYO_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}o")
|
||||
endforeach()
|
||||
|
||||
add_custom_target (emcalculator ALL)
|
||||
|
||||
add_custom_command (
|
||||
TARGET emcalculator
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -O -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
# install
|
||||
|
||||
install (FILES ${PY_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYC_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYO_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 2010-12-02 08:43:22 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#$Id: emcalculator.py,v 1.1 2010-12-02 08:43:22 kmura Exp $
|
||||
#$Id: emcalculator.py 66892 2013-01-17 10:57:59Z gunter $
|
||||
"""
|
||||
# ==================================================================
|
||||
# Python module (Python3)
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# - build library
|
||||
|
||||
file (GLOB PY_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.py)
|
||||
|
||||
foreach (_pyfile ${PY_FILES})
|
||||
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${_pyfile}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${_pyfile} COPYONLY)
|
||||
list (APPEND PYC_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}c")
|
||||
list (APPEND PYO_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}o")
|
||||
endforeach()
|
||||
|
||||
add_custom_target (g4py_module ALL)
|
||||
|
||||
add_custom_command (
|
||||
TARGET g4py_module
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -O -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
# install
|
||||
|
||||
install (FILES ${PY_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYC_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYO_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.2 2008-12-03 07:40:49 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# $Id: __init__.py,v 1.1 2008-12-01 07:02:47 kmura Exp $
|
||||
# $Id: __init__.py 66892 2013-01-17 10:57:59Z gunter $
|
||||
|
||||
# Geant4Py site-modules
|
||||
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
# - add libs components
|
||||
|
||||
if (${PYTHON_VERSION_MAJOR} MATCHES "2")
|
||||
add_subdirectory(MCScore)
|
||||
elseif (${PYTHON_VERSION_MAJOR} MATCHES "3")
|
||||
add_subdirectory(MCScore/python3)
|
||||
endif()
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 2006-07-12 01:57:46 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py site-modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# - build library
|
||||
|
||||
file (GLOB PY_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.py)
|
||||
|
||||
foreach (_pyfile ${PY_FILES})
|
||||
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${_pyfile}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${_pyfile} COPYONLY)
|
||||
list (APPEND PYC_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}c")
|
||||
list (APPEND PYO_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}o")
|
||||
endforeach()
|
||||
|
||||
add_custom_target (MCScore ALL)
|
||||
|
||||
add_custom_command (
|
||||
TARGET MCScore
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -O -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
# install
|
||||
|
||||
install (FILES ${PY_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYC_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYO_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.4 2010-12-02 08:34:07 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
# - build library
|
||||
|
||||
file (GLOB PY_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.py)
|
||||
|
||||
foreach (_pyfile ${PY_FILES})
|
||||
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/${_pyfile}
|
||||
${CMAKE_CURRENT_BINARY_DIR}/${_pyfile} COPYONLY)
|
||||
list (APPEND PYC_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}c")
|
||||
list (APPEND PYO_FILES "${CMAKE_CURRENT_BINARY_DIR}/${_pyfile}o")
|
||||
endforeach()
|
||||
|
||||
add_custom_target (MCScore ALL)
|
||||
|
||||
add_custom_command (
|
||||
TARGET MCScore
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMAND ${PYTHON_EXECUTABLE}
|
||||
ARGS -O -m compileall -f ${CMAKE_CURRENT_BINARY_DIR}
|
||||
)
|
||||
|
||||
# install
|
||||
|
||||
install (FILES ${PY_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYC_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
install (FILES ${PYO_FILES} DESTINATION ${G4SITEMODULES_INSTALL_DIR})
|
||||
@@ -1,5 +1,4 @@
|
||||
# $Id: GNUmakefile,v 1.1 2010-12-02 08:44:17 kmura Exp $
|
||||
# $Name: not supported by cvs2svn $
|
||||
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
|
||||
# ===========================================================
|
||||
# Makefile for building Geant4Py modules
|
||||
# ===========================================================
|
||||
|
||||
Reference in New Issue
Block a user