Import Geant4 10.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-10 11:51:14 +02:00
parent e2d2f9810a
commit 286caacf06
12421 changed files with 730077 additions and 502383 deletions
+34
View File
@@ -0,0 +1,34 @@
# - add libs components
set (G4MODULES_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR}/Geant4 )
include_directories (
${PYTHON_INCLUDE_PATH}
${BOOST_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/source/boost
${GEANT4_INCLUDE_DIR}
)
add_subdirectory(global)
add_subdirectory(interface)
add_subdirectory(intercoms)
add_subdirectory(run)
add_subdirectory(event)
add_subdirectory(tracking)
add_subdirectory(track)
add_subdirectory(geometry)
add_subdirectory(materials)
add_subdirectory(particles)
add_subdirectory(processes)
add_subdirectory(digits_hits)
add_subdirectory(visualization)
add_subdirectory(graphics_reps)
add_subdirectory(physics_lists)
add_subdirectory(gdml)
if (${PYTHON_VERSION_MAJOR} MATCHES "2")
add_subdirectory(python)
elseif (${PYTHON_VERSION_MAJOR} MATCHES "3")
add_subdirectory(python3)
endif()
+1 -2
View File
@@ -1,5 +1,4 @@
# $Id: GNUmakefile,v 1.9 2010-12-02 08:21:04 kmura Exp $
# $Name: not supported by cvs2svn $
# $Id: GNUmakefile 76884 2013-11-18 12:54:03Z gcosmo $
# ===========================================================
# Makefile for building Geant4Py modules
# ===========================================================
+1 -2
View File
@@ -1,5 +1,4 @@
# $Id: GNUmakefile,v 1.3 2008-12-03 07:24:21 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: pyG4indexing.hh,v 1.5 2008-12-03 07:24:21 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4indexing.hh 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4indexing.hh
//
@@ -0,0 +1,24 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
# library
set(_TARGET pyG4digits_hits)
add_library(
${_TARGET} SHARED
pyG4VSensitiveDetector.cc
pymodG4digits_hits.cc
)
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4digits_hits")
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.2 2006-04-25 08:09:43 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: pyG4VSensitiveDetector.cc,v 1.4 2006-06-29 15:30:26 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4VSensitiveDetector.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4VSensitiveDetector.cc
//
@@ -46,7 +45,7 @@ class CB_G4VSensitiveDetector :
public:
CB_G4VSensitiveDetector() : G4VSensitiveDetector("") { }
CB_G4VSensitiveDetector(const G4String& name)
CB_G4VSensitiveDetector(const G4String& name)
: G4VSensitiveDetector(name) { }
~CB_G4VSensitiveDetector() { }
@@ -55,7 +54,7 @@ public:
}
};
};
}
using namespace pyG4VSensitiveDetector;
@@ -78,7 +77,7 @@ void export_G4VSensitiveDetector()
.def("ProcessHits", pure_virtual(&CB_G4VSensitiveDetector::ProcessHits))
// ---
.def("SetROgeometry", &G4VSensitiveDetector::SetROgeometry)
.def("GetNumberOfCollections",
.def("GetNumberOfCollections",
&G4VSensitiveDetector::GetNumberOfCollections)
.def("GetCollectionName", &G4VSensitiveDetector::GetCollectionName)
.def("SetVerboseLevel", &G4VSensitiveDetector::SetVerboseLevel)
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4digits_hits.cc,v 1.4 2006-06-29 15:30:29 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pymodG4digits_hits.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pymodG4digits_hits.cc [Geant4Py module]
//
@@ -0,0 +1,31 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
# library
set(_TARGET pyG4event)
add_library(
${_TARGET} SHARED
pyG4ClassificationOfNewTrack.cc
pyG4Event.cc
pyG4EventManager.cc
pyG4ParticleGun.cc
pyG4StackManager.cc
pyG4UserEventAction.cc
pyG4UserStackingAction.cc
pymodG4event.cc
)
set_target_properties (${_TARGET} PROPERTIES PREFIX "" )
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4event")
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 -2
View File
@@ -1,5 +1,4 @@
# $Id: GNUmakefile,v 1.2 2006-04-25 08:09:44 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: pyG4ClassificationOfNewTrack.cc,v 1.4 2006-06-29 15:30:44 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ClassificationOfNewTrack.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4ClassificationOfNewTrack.cc
//
+4 -5
View File
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Event.cc,v 1.4 2006-06-29 15:31:29 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Event.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4Event.cc
//
@@ -40,9 +39,9 @@ using namespace boost::python;
// ====================================================================
namespace pyG4Event {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetPrimaryVertex,
GetPrimaryVertex, 0, 1);
};
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetPrimaryVertex,
GetPrimaryVertex, 0, 1)
}
using namespace pyG4Event;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4EventManager.cc,v 1.4 2006-06-29 15:31:34 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4EventManager.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4EventManager.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ParticleGun.cc,v 1.7 2007-11-08 06:42:03 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ParticleGun.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4ParticleGun.cc
//
@@ -60,7 +59,7 @@ const G4ParticleGun& G4ParticleGun::operator=(const G4ParticleGun &right)
particle_momentum_direction= right.particle_momentum_direction;
particle_energy= right.particle_energy;
particle_charge= right.particle_charge;
particle_polarization= right.particle_polarization;
particle_polarization= right.particle_polarization;
return *this;
}
@@ -105,7 +104,7 @@ void SetParticleByName(G4ParticleGun* gun, const std::string& pname)
if (pd != 0) {
gun-> SetParticleDefinition(pd);
} else {
G4cout << "*** \"" << pname << "\" is not registered "
G4cout << "*** \"" << pname << "\" is not registered "
<< "in available particle list" << G4endl;
}
}
@@ -118,7 +117,7 @@ std::string GetParticleByName(G4ParticleGun* gun)
return (pd-> GetParticleName()).c_str();
}
};
}
using namespace pyG4ParticleGun;
@@ -148,9 +147,9 @@ void export_G4ParticleGun()
#else
.def("SetParticleMomentum", &G4ParticleGun::SetParticleMomentum)
#endif
.def("SetParticleMomentumDirection",
.def("SetParticleMomentumDirection",
&G4ParticleGun::SetParticleMomentumDirection)
.def("GetParticleMomentumDirection",
.def("GetParticleMomentumDirection",
&G4ParticleGun::GetParticleMomentumDirection)
.def("SetParticleEnergy", &G4ParticleGun::SetParticleEnergy)
.def("GetParticleEnergy", &G4ParticleGun::GetParticleEnergy)
@@ -24,8 +24,7 @@
// ********************************************************************
//
// $Id: pyG4StackManager.cc,v 1.4 2006-06-29 15:31:38 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4StackManager.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4StackManager.cc
//
@@ -42,11 +41,11 @@ using namespace boost::python;
namespace pyG4StackManager {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_ClearWaitingStack,
ClearWaitingStack, 0, 1);
ClearWaitingStack, 0, 1)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetNWaitingTrack,
GetNWaitingTrack, 0, 1);
};
GetNWaitingTrack, 0, 1)
}
using namespace pyG4StackManager;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UserEventAction.cc,v 1.6 2006-06-29 15:31:41 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UserEventAction.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4UserEventAction.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UserStackingAction.cc,v 1.7 2006-06-29 15:31:44 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UserStackingAction.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4UserStackingAction.cc
//
@@ -43,7 +42,7 @@ namespace pyG4UserStackingAction {
struct CB_G4UserStackingAction : G4UserStackingAction,
wrapper<G4UserStackingAction> {
// ClassifyNewTrack
G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track* aTrack) {
if(const override& f= get_override("ClassifyNewTrack")) {
@@ -70,7 +69,7 @@ struct CB_G4UserStackingAction : G4UserStackingAction,
};
};
}
using namespace pyG4UserStackingAction;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4event.cc,v 1.4 2006-06-29 15:31:47 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pymodG4event.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pymodG4event.cc [Geant4Py module]
//
@@ -0,0 +1,28 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
if(GEANT4_HAS_GDML)
add_definitions(-DENABLE_GDML)
endif()
# library
set(_TARGET pyG4gdml)
add_library(
${_TARGET} SHARED
pyG4GDMLParser.cc
pymodG4g4gdml.cc
)
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4gdml")
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 -2
View File
@@ -1,5 +1,4 @@
# $Id: GNUmakefile,v 1.4 2008-12-01 09:20:25 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: pyG4GDMLParser.cc,v 1.5 2010-12-02 08:24:22 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4GDMLParser.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4GDMLParser.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4g4gdml.cc,v 1.3 2008-12-03 06:54:39 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pymodG4g4gdml.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pymodG4g4gdml.cc [Geant4Py module]
//
@@ -0,0 +1,64 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
# library
set(_TARGET pyG4geometry)
add_library (
${_TARGET} SHARED
pyG4BooleanSolid.cc
pyG4Box.cc
pyG4ChordFinder.cc
pyG4Cons.cc
pyG4Ellipsoid.cc
pyG4EllipticalCone.cc
pyG4EllipticalTube.cc
pyG4Field.cc
pyG4FieldManager.cc
pyG4GeometryManager.cc
pyG4Hype.cc
pyG4IntersctionSolid.cc
pyG4LogicalVolume.cc
pyG4MagneticField.cc
pyG4Navigator.cc
pyG4Orb.cc
pyG4PVPlacement.cc
pyG4PVReplica.cc
pyG4Para.cc
pyG4Polycone.cc
pyG4Polyhedra.cc
pyG4Region.cc
pyG4Sphere.cc
pyG4SubtractionSolid.cc
pyG4Tet.cc
pyG4Torus.cc
pyG4TouchableHistory.cc
pyG4TransportationManager.cc
pyG4Trap.cc
pyG4Trd.cc
pyG4Tubs.cc
pyG4TwistedBox.cc
pyG4TwistedTrap.cc
pyG4TwistedTrd.cc
pyG4TwistedTubs.cc
pyG4UniformMagField.cc
pyG4UnionSolid.cc
pyG4VPhysicalVolume.cc
pyG4VSolid.cc
pyG4VTouchable.cc
pymodG4geometry.cc
)
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4geometry")
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.2 2006-04-25 08:09:45 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: pyG4BooleanSolid.cc,v 1.1 2007-08-07 03:35:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4BooleanSolid.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4BooleanSolid.cc
//
+1 -2
View File
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Box.cc,v 1.6 2007-07-12 10:01:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Box.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Box.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ChordFinder.cc,v 1.4 2006-06-29 15:31:53 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ChordFinder.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4ChordFinder.cc
//
@@ -41,9 +40,9 @@ using namespace boost::python;
// ====================================================================
namespace pyG4ChordFinder {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetVerbose, SetVerbose, 0, 1);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetVerbose, SetVerbose, 0, 1)
};
}
using namespace pyG4ChordFinder;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Cons.cc,v 1.5 2007-07-12 10:01:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Cons.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Cons.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Ellipsoid.cc,v 1.2 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Ellipsoid.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4Ellipsoid.cc
//
@@ -51,7 +50,7 @@ G4Ellipsoid* CreateEllipsoid(const G4String& name,
pzBottomCut, pzTopCut);
}
BOOST_PYTHON_FUNCTION_OVERLOADS(f_CreateEllipsoid, CreateEllipsoid, 4,6);
BOOST_PYTHON_FUNCTION_OVERLOADS(f_CreateEllipsoid, CreateEllipsoid, 4,6)
}
@@ -67,7 +66,7 @@ void export_G4Ellipsoid()
// constructors
.def(init<const G4String&, G4double, G4double, G4double>())
.def(init<const G4String&, G4double, G4double, G4double, G4double>())
.def(init<const G4String&, G4double, G4double, G4double, G4double,
.def(init<const G4String&, G4double, G4double, G4double, G4double,
G4double>())
// ---
.def("GetSemiAxisMax", &G4Ellipsoid::GetSemiAxisMax)
@@ -78,7 +77,7 @@ void export_G4Ellipsoid()
// operators
.def(self_ns::str(self))
;
// Create solid
def("CreateEllipsoid", CreateEllipsoid,
f_CreateEllipsoid()[return_value_policy<manage_new_object>()]);
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4EllipticalCone.cc,v 1.2 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4EllipticalCone.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4EllipticalCone.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4EllipticalTube.cc,v 1.2 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4EllipticalTube.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4EllipticalTube.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Field.cc,v 1.4 2006-06-29 15:31:59 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Field.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Field.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4FieldManager.cc,v 1.5 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4FieldManager.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4FieldManager.cc
//
@@ -58,10 +57,10 @@ namespace pyG4FieldManager {
G4ChordFinder*(G4FieldManager::*f1_GetChordFinder)()
= &G4FieldManager::GetChordFinder;
const G4ChordFinder*(G4FieldManager::*f2_GetChordFinder)() const
const G4ChordFinder*(G4FieldManager::*f2_GetChordFinder)() const
= &G4FieldManager::GetChordFinder;
};
}
using namespace pyG4FieldManager;
@@ -92,7 +91,7 @@ void export_G4FieldManager()
.def("ConfigureForTrack", &G4FieldManager::ConfigureForTrack)
.def("GetDeltaIntersection", &G4FieldManager::GetDeltaIntersection)
.def("GetDeltaOneStep", &G4FieldManager::GetDeltaOneStep)
.def("SetAccuraciesWithDeltaOneStep",
.def("SetAccuraciesWithDeltaOneStep",
&G4FieldManager::SetAccuraciesWithDeltaOneStep)
.def("SetDeltaOneStep", &G4FieldManager::SetDeltaOneStep)
.def("SetDeltaIntersection", &G4FieldManager::SetDeltaIntersection)
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4GeometryManager.cc,v 1.1 2008-12-03 07:21:56 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4GeometryManager.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4GeometryManager.cc
//
@@ -41,10 +40,10 @@ using namespace boost::python;
// ====================================================================
namespace pyG4GeometryManager {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CloseGeometry, CloseGeometry, 0, 3);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_OpenGeometry, OpenGeometry, 0, 1);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CloseGeometry, CloseGeometry, 0, 3)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_OpenGeometry, OpenGeometry, 0, 1)
};
}
using namespace pyG4GeometryManager;
@@ -59,7 +58,7 @@ void export_G4GeometryManager()
return_value_policy<reference_existing_object>())
.staticmethod("GetInstance")
// ---
.def("CloseGeometry", &G4GeometryManager::CloseGeometry,
.def("CloseGeometry", &G4GeometryManager::CloseGeometry,
f_CloseGeometry())
.def("OpenGeometry", &G4GeometryManager::OpenGeometry,
f_OpenGeometry())
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Hype.cc,v 1.2 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Hype.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Hype.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4IntersctionSolid.cc,v 1.1 2007-08-07 03:35:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4IntersctionSolid.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4IntersectionSolid.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4LogicalVolume.cc,v 1.5 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4LogicalVolume.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4LogicalVolume.cc
//
@@ -50,19 +49,20 @@ using namespace boost::python;
// ====================================================================
namespace pyG4LogicalVolume {
void(G4LogicalVolume::*f1_SetVisAttributes)(const G4VisAttributes*)
void(G4LogicalVolume::*f1_SetVisAttributes)(const G4VisAttributes*)
= &G4LogicalVolume::SetVisAttributes;
void(G4LogicalVolume::*f2_SetVisAttributes)(const G4VisAttributes&)
void(G4LogicalVolume::*f2_SetVisAttributes)(const G4VisAttributes&)
= &G4LogicalVolume::SetVisAttributes;
#if G4VERSION_NUMBER <= 701
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetMass, GetMass, 0, 2);
#elif G4VERSION_NUMBER >=710
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetMass, GetMass, 0, 3);
#endif
G4VSolid*(G4LogicalVolume::*f1_GetSolid)() const = &G4LogicalVolume::GetSolid;
};
void(G4LogicalVolume::*f1_SetSolid)(G4VSolid*)
= &G4LogicalVolume::SetSolid;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetMass, GetMass, 0, 3)
}
using namespace pyG4LogicalVolume;
@@ -99,9 +99,9 @@ void export_G4LogicalVolume()
.def("ClearDaughters", &G4LogicalVolume::ClearDaughters)
.def("TotalVolumeEntities", &G4LogicalVolume::TotalVolumeEntities)
// ----
.def("GetSolid", &G4LogicalVolume::GetSolid,
return_internal_reference<>())
.def("SetSolid", &G4LogicalVolume::SetSolid)
.def("GetSolid", f1_GetSolid,
return_internal_reference<>())
.def("SetSolid", f1_SetSolid)
.def("GetMaterial", &G4LogicalVolume::GetMaterial,
return_internal_reference<>())
.def("SetMaterial", &G4LogicalVolume::SetMaterial)
@@ -141,13 +141,7 @@ void export_G4LogicalVolume()
.def("SetVisAttributes", f1_SetVisAttributes)
.def("SetVisAttributes", f2_SetVisAttributes)
// ---
#if G4VERSION_NUMBER >= 700 && G4VERSION_NUMBER <= 711
.def("BecomeEnvelopeForFastSimulation",
&G4LogicalVolume::BecomeEnvelopeForFastSimulation)
.def("ClearEnvelopeForFastSimulation",
&G4LogicalVolume::ClearEnvelopeForFastSimulation)
#endif
.def("GetFastSimulationManager",
.def("GetFastSimulationManager",
&G4LogicalVolume::GetFastSimulationManager,
return_internal_reference<>())
// ---
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4MagneticField.cc,v 1.4 2006-06-29 15:32:10 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4MagneticField.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4MagneticField.cc
//
@@ -48,15 +47,15 @@ public:
virtual G4ThreeVector GetFieldValue(const G4ThreeVector& pos,
const G4double time) const = 0;
virtual void GetFieldValue(const G4double Point[4],
virtual void GetFieldValue(const G4double Point[4],
G4double* Bfield) const {
const G4ThreeVector& bfield=
const G4ThreeVector& bfield=
GetFieldValue(G4ThreeVector(Point[0], Point[1], Point[2]), Point[3]);
Bfield[0]= bfield.x();
Bfield[1]= bfield.y();
Bfield[2]= bfield.z();
Bfield[2]= bfield.z();
}
};
@@ -69,7 +68,7 @@ namespace pyG4MagneticField {
struct CB_PyG4MagneticField :
PyG4MagneticField, wrapper<PyG4MagneticField> {
G4ThreeVector GetFieldValue(const G4ThreeVector& pos,
G4ThreeVector GetFieldValue(const G4ThreeVector& pos,
const G4double time) const {
return get_override("GetFieldValue")(pos, time);
}
@@ -77,10 +76,10 @@ struct CB_PyG4MagneticField :
};
G4ThreeVector(PyG4MagneticField::*f1_GetFieldValue)
(const G4ThreeVector&, const G4double) const
(const G4ThreeVector&, const G4double) const
= &PyG4MagneticField::GetFieldValue;
};
}
using namespace pyG4MagneticField;
@@ -93,7 +92,7 @@ void export_G4MagneticField()
("__G4MagneticField", "dummy class of magnetic field", no_init)
;
class_<CB_PyG4MagneticField, boost::noncopyable,
class_<CB_PyG4MagneticField, boost::noncopyable,
bases<G4Field, G4MagneticField> >
("G4MagneticField", "base class of magnetic field")
// ---
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Navigator.cc,v 1.1 2007-11-13 10:23:51 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Navigator.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4Navigator.cc
//
@@ -42,7 +41,8 @@ using namespace boost::python;
// ====================================================================
void export_G4Navigator()
{
class_<G4Navigator, G4Navigator*>("G4Navigator", "navigator")
class_<G4Navigator, G4Navigator*, boost::noncopyable>
("G4Navigator", "navigator")
// ---
.def("GetWorldVolume", &G4Navigator::GetWorldVolume,
return_value_policy<reference_existing_object>())
+1 -2
View File
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Orb.cc,v 1.5 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Orb.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Orb.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4PVPlacement.cc,v 1.6 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4PVPlacement.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4PVPlacement.cc
//
@@ -42,17 +41,8 @@ using namespace boost::python;
// ====================================================================
namespace pyG4PVPlacement {
#if G4VERSION_NUMBER <=711
#elif G4VERSION_NUMBER <= 820
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CheckOverlaps,
CheckOverlaps, 0, 1);
#elif G4VERSION_NUMBER <=821
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CheckOverlaps,
CheckOverlaps, 0, 2);
#else
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CheckOverlaps,
CheckOverlaps, 0, 3);
#endif
CheckOverlaps, 0, 3)
}
@@ -63,7 +53,7 @@ using namespace pyG4PVPlacement;
// ====================================================================
void export_G4PVPlacement()
{
class_<G4PVPlacement, G4PVPlacement*, bases<G4VPhysicalVolume>,
class_<G4PVPlacement, G4PVPlacement*, bases<G4VPhysicalVolume>,
boost::noncopyable >
("G4PVPlacement", "physical volume placement", no_init)
// ---
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4PVReplica.cc,v 1.4 2006-06-29 15:32:18 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4PVReplica.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4PVReplica.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Para.cc,v 1.5 2007-07-12 10:01:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Para.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Para.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Polycone.cc,v 1.1 2007-07-11 05:39:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Polycone.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4Polycone.cc
//
@@ -61,11 +60,11 @@ G4Polycone* f1_CreatePolycone(const G4String& name, G4double phiStart,
return new G4Polycone(name, phiStart, phiTotal, numZPlanes,
zlist, r0list, r1list);
}
G4Polycone* f2_CreatePolycone(const G4String& name, G4double phiStart,
G4double phiTotal, G4int numRZ,
const std::vector<G4double>& r,
const std::vector<G4double>& r,
const std::vector<G4double>& z)
{
G4double zlist[numRZ];
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Polyhedra.cc,v 1.2 2007-07-11 10:02:22 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Polyhedra.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Polyhedra.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Region.cc,v 1.5 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Region.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Region.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Sphere.cc,v 1.5 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Sphere.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Sphere.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4SubtractionSolid.cc,v 1.1 2007-08-07 03:35:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4SubtractionSolid.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4SubtractionSolid.cc
//
+1 -2
View File
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Tet.cc,v 1.2 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Tet.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Tet.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Torus.cc,v 1.5 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Torus.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Torus.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TouchableHistory.cc,v 1.4 2006-06-29 15:32:33 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4TouchableHistory.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4VTouchable.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TransportationManager.cc,v 1.4 2006-06-29 15:32:36 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4TransportationManager.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4TransportationManager.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Trap.cc,v 1.6 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Trap.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Trap.cc
//
+1 -2
View File
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Trd.cc,v 1.5 2007-07-12 10:01:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Trd.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Trd.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Tubs.cc,v 1.5 2007-07-12 10:01:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Tubs.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Tubs.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TwistedBox.cc,v 1.2 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4TwistedBox.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4TwistedBox.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TwistedTrap.cc,v 1.2 2007-07-13 04:57:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4TwistedTrap.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4TwistedTrap.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TwistedTrd.cc,v 1.1 2007-07-13 04:58:29 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4TwistedTrd.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4TwistedTrap.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TwistedTubs.cc,v 1.2 2007-07-13 04:57:51 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4TwistedTubs.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4TwistedTubs.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UniformMagField.cc,v 1.4 2006-06-29 15:32:48 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UniformMagField.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4UniformMagField.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UnionSolid.cc,v 1.1 2007-08-07 03:35:53 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UnionSolid.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4UnionSolid.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4VPhysicalVolume.cc,v 1.7 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4VPhysicalVolume.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4VPhysicalVolume.cc
//
@@ -49,7 +48,7 @@ const G4RotationMatrix*(G4VPhysicalVolume::*f1_GetRotation)() const
G4RotationMatrix*(G4VPhysicalVolume::*f2_GetRotation)()
= &G4VPhysicalVolume::GetRotation;
};
}
using namespace pyG4VPhysicalVolume;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4VSolid.cc,v 1.6 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4VSolid.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4VSolid.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4VTouchable.cc,v 1.4 2006-06-29 15:32:57 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4VTouchable.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4VTouchable.cc
//
@@ -43,20 +42,20 @@ using namespace boost::python;
namespace pyG4VTouchable {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetTranslation,
GetTranslation, 0, 1);
GetTranslation, 0, 1)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetRotation,
GetRotation, 0, 1);
GetRotation, 0, 1)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetVolume, GetVolume, 0, 1);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetVolume, GetVolume, 0, 1)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetSolid, GetSolid, 0, 1);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetSolid, GetSolid, 0, 1)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetReplicaNumber,
GetReplicaNumber, 0, 1);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_GetReplicaNumber,
GetReplicaNumber, 0, 1)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_MoveUpHistory, MoveUpHistory, 0, 1)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_MoveUpHistory, MoveUpHistory, 0, 1);
}
using namespace pyG4VTouchable;
@@ -80,10 +79,10 @@ void export_G4VTouchable()
.def("GetSolid", &G4VTouchable::GetSolid,
f_GetSolid()
[return_value_policy<reference_existing_object>()])
.def("GetReplicaNumber", &G4VTouchable::GetReplicaNumber,
.def("GetReplicaNumber", &G4VTouchable::GetReplicaNumber,
f_GetReplicaNumber())
.def("GetHistoryDepth", &G4VTouchable::GetHistoryDepth)
.def("MoveUpHistory", &G4VTouchable::MoveUpHistory,
.def("MoveUpHistory", &G4VTouchable::MoveUpHistory,
f_MoveUpHistory())
;
}
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4geometry.cc,v 1.10 2008-12-03 07:21:56 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pymodG4geometry.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pymodG4geometry.cc [Geant4Py module]
//
@@ -0,0 +1,43 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
# library
set(_TARGET pyG4global)
add_library(
${_TARGET} SHARED
G4PyCoutDestination.cc
pyG4ApplicationState.cc
pyG4Exception.cc
pyG4ExceptionHandler.cc
pyG4ExceptionSeverity.cc
pyG4RandomDirection.cc
pyG4RotationMatrix.cc
pyG4StateManager.cc
pyG4String.cc
pyG4ThreeVector.cc
pyG4Timer.cc
pyG4Transform3D.cc
pyG4TwoVector.cc
pyG4UnitsTable.cc
pyG4UserLimits.cc
pyG4Version.cc
pyRandomEngines.cc
pyRandomize.cc
pygeomdefs.cc
pyglobals.cc
pymodG4global.cc
)
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4global")
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})
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4PyCoutDestination.cc,v 1.3 2006-06-29 15:33:03 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: G4PyCoutDestination.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// G4PyCoutDistination.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4PyCoutDestination.hh,v 1.3 2006-06-29 15:33:06 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: G4PyCoutDestination.hh 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// G4PyCoutDestination.hh
//
+1 -2
View File
@@ -1,5 +1,4 @@
# $Id: GNUmakefile,v 1.2 2006-04-25 08:09:45 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: pyG4ApplicationState.cc,v 1.5 2006-11-20 05:56:46 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ApplicationState.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4ApplicationState.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Exception.cc,v 1.1 2006-11-20 05:57:16 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Exception.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Exception.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ExceptionHandler.cc,v 1.1 2006-11-21 05:58:33 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ExceptionHandler.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4ExceptionHandler.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ExceptionSeverity.cc,v 1.1 2006-11-20 05:57:16 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ExceptionSeverity.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4ExceptionSeverity.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4RandomDirection.cc,v 1.4 2006-06-29 15:33:12 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4RandomDirection.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4RandomDirection.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4RotationMatrix.cc,v 1.4 2006-06-29 15:33:15 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4RotationMatrix.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4RotationMatrix.cc
//
@@ -45,7 +44,7 @@ namespace pyG4RotationMatrix {
XXX&(XXX::*f1_rotate)(G4double, const G4ThreeVector&)= &XXX::rotate;
XXX&(XXX::*f2_rotate)(G4double, const G4ThreeVector*)= &XXX::rotate;
};
}
using namespace pyG4RotationMatrix;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4StateManager.cc,v 1.4 2006-06-29 15:33:18 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4StateManager.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4StateManager.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4String.cc,v 1.4 2006-06-29 15:33:21 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4String.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4String.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4ThreeVector.cc,v 1.5 2006-06-29 15:33:24 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4ThreeVector.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4ThreeVector.cc
//
@@ -86,11 +85,11 @@ XXX&(XXX::*f3_rotate)(const HepAxisAngle&)= &XXX::rotate;
XXX&(XXX::*f4_rotate)(const HepEulerAngles&)= &XXX::rotate;
XXX&(XXX::*f5_rotate)(G4double, G4double, G4double)= &XXX::rotate;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isNear, isNear, 1, 2);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isParallel, isParallel, 1, 2);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isOrthogonal, isOrthogonal, 1, 2);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isNear, isNear, 1, 2)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isParallel, isParallel, 1, 2)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isOrthogonal, isOrthogonal, 1, 2)
};
}
using namespace pyG4ThreeVector;
@@ -105,12 +104,12 @@ void export_G4ThreeVector()
.def(init<G4double, G4double>())
.def(init<G4double, G4double, G4double>())
.def(init<const XXX&>())
// property
.add_property("x", &XXX::x, &XXX::setX)
.add_property("y", &XXX::y, &XXX::setY)
.add_property("z", &XXX::z, &XXX::setZ)
// methods
.def("set", &XXX::set)
.def("phi", &XXX::phi)
@@ -183,11 +182,11 @@ void export_G4ThreeVector()
.def("polarAngle",f2_polarAngle)
.def("azimAngle", f1_azimAngle)
.def("azimAngle", f2_azimAngle)
.def("rotateX", &XXX::rotateX,
.def("rotateX", &XXX::rotateX,
return_value_policy<reference_existing_object>())
.def("rotateY", &XXX::rotateY,
.def("rotateY", &XXX::rotateY,
return_value_policy<reference_existing_object>())
.def("rotateZ", &XXX::rotateZ,
.def("rotateZ", &XXX::rotateZ,
return_value_policy<reference_existing_object>())
.def("rotateUz", &XXX::rotateUz,
return_value_policy<reference_existing_object>())
+1 -2
View File
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Timer.cc,v 1.3 2006-06-29 15:33:27 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Timer.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Timer.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Transform3D.cc,v 1.4 2006-06-29 15:33:30 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Transform3D.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Transform3D.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4TwoVector.cc,v 1.2 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4TwoVector.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4TwoVector.cc
//
@@ -45,12 +44,12 @@ typedef G4TwoVector XXX; // ...
// thin wrappers
// ====================================================================
namespace pyG4TwoVector {
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isNear, isNear, 1, 2);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isParallel, isParallel, 1, 2);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isOrthogonal, isOrthogonal, 1, 2);
};
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isNear, isNear, 1, 2)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isParallel, isParallel, 1, 2)
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_isOrthogonal, isOrthogonal, 1, 2)
}
using namespace pyG4TwoVector;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UnitsTable.cc,v 1.5 2008-12-03 07:34:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UnitsTable.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4UnitsTable.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UserLimits.cc,v 1.4 2006-06-29 15:33:36 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UserLimits.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4UserLimits.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4Version.cc,v 1.2 2008-03-13 07:32:18 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Version.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Version.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyRandomEngines.cc,v 1.6 2008-05-27 09:20:01 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyRandomEngines.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyRandomEngines.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyRandomize.cc,v 1.4 2006-06-29 15:33:42 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyRandomize.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyRandomize.cc
//
@@ -56,7 +55,7 @@ void f2_setTheSeed(long seed, int lux)
// setTheSeeds
void f1_setTheSeeds(const list& seedList)
{
{
// check size...
int idx=0;
while(1) {
@@ -65,8 +64,8 @@ void f1_setTheSeeds(const list& seedList)
idx++;
}
int nsize= idx+1;
long* seedArray= new long[nsize]; // should not be deleted!!
long* seedArray= new long[nsize]; // should not be deleted!!
// (this is a problem with CLHEP.)
for (int i=0; i< nsize; i++) {
seedArray[i]= extract<long>(seedList[i]);
@@ -168,7 +167,7 @@ double f_G4UniformRand()
return G4UniformRand();
}
};
}
using namespace pyRandomize;
@@ -215,7 +214,7 @@ void export_Randomize()
.def("createInstance", &HepRandom::createInstance)
.staticmethod("createInstance")
;
// ---
class_<RandBit, boost::noncopyable>
("RandBit", "generate bit random number", no_init)
@@ -230,7 +229,7 @@ void export_Randomize()
.def("shoot", f2_RandGaussQ_shoot)
.staticmethod("shoot")
;
// ---
def("G4UniformRand", f_G4UniformRand);
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pygeomdefs.cc,v 1.4 2006-06-29 15:33:45 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pygeomdefs.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pygeomdefs.cc
//
+2 -3
View File
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyglobals.cc,v 1.7 2008-12-03 07:34:50 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyglobals.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyglobals.cc
//
@@ -69,7 +68,7 @@ typedef std::vector<G4ThreeVector> G4ThreeVectorVector;
#if G4VERSION_NUMBER >= 830
typedef std::vector<G4TwoVector> G4TwoVectorVector;
#endif
};
}
using namespace pyglobals;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4global.cc,v 1.8 2007-05-28 03:03:21 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pymodG4global.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pymodG4global.cc [Geant4Py module]
//
@@ -0,0 +1,25 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
# library
set(_TARGET pyG4graphics_reps)
add_library(
${_TARGET} SHARED
pyG4Colour.cc
pyG4VisAttributes.cc
pymodG4graphics_reps.cc
)
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4graphics_reps")
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.2 2006-04-25 08:09:45 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: pyG4Colour.cc,v 1.4 2006-06-29 15:33:54 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4Colour.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4Colour.cc
//
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4VisAttributes.cc,v 1.5 2010-12-02 08:23:49 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4VisAttributes.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4VisAttributes.cc
//
@@ -42,24 +41,24 @@ using namespace boost::python;
namespace pyG4VisAttributes {
// SetColor()
void(G4VisAttributes::*f1_SetColor)(const G4Color&)=
void(G4VisAttributes::*f1_SetColor)(const G4Color&)=
&G4VisAttributes::SetColor;
void(G4VisAttributes::*f2_SetColor)(G4double, G4double, G4double, G4double)=
void(G4VisAttributes::*f2_SetColor)(G4double, G4double, G4double, G4double)=
&G4VisAttributes::SetColor;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetColor, SetColor, 3, 4);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetColor, SetColor, 3, 4)
// SetColour()
void(G4VisAttributes::*f1_SetColour)(const G4Colour&)=
void(G4VisAttributes::*f1_SetColour)(const G4Colour&)=
&G4VisAttributes::SetColour;
void(G4VisAttributes::*f2_SetColour)(G4double, G4double, G4double, G4double)=
void(G4VisAttributes::*f2_SetColour)(G4double, G4double, G4double, G4double)=
&G4VisAttributes::SetColour;
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetColour, SetColour, 3, 4);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_SetColour, SetColour, 3, 4)
};
}
using namespace pyG4VisAttributes;
@@ -68,7 +67,7 @@ using namespace pyG4VisAttributes;
// ====================================================================
void export_G4VisAttributes()
{
scope in_G4VisAttributes=
scope in_G4VisAttributes=
class_<G4VisAttributes, G4VisAttributes*>
("G4VisAttributes", "visualization attributes")
// constructors
@@ -79,7 +78,7 @@ void export_G4VisAttributes()
.def_readonly("Invisible", &G4VisAttributes::Invisible)
.def("GetInvisible", &G4VisAttributes::GetInvisible,
return_value_policy<reference_existing_object>())
.staticmethod("GetInvisible")
.staticmethod("GetInvisible")
.def("IsVisible", &G4VisAttributes::IsVisible)
.def("IsDaughtersInvisible", &G4VisAttributes::IsDaughtersInvisible)
// ---
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pymodG4graphics_reps.cc,v 1.4 2006-06-29 15:33:59 gunter Exp $
// $Name: not supported by cvs2svn $
// $Id: pymodG4graphics_reps.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pymodG4graphics_reps.cc [Geant4Py module]
//
@@ -0,0 +1,27 @@
# - build library
link_directories (${GEANT4_LIBRARY_DIR})
# library
set(_TARGET pyG4intercoms)
add_library(
${_TARGET} SHARED
pyG4UIcommand.cc
pyG4UIcommandTree.cc
pyG4UImanager.cc
pyG4UIparameter.cc
pymodG4intercoms.cc
)
set_target_properties(${_TARGET} PROPERTIES PREFIX "")
set_target_properties(${_TARGET} PROPERTIES OUTPUT_NAME "G4intercoms")
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-08-08 05:20:57 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: pyG4UIcommand.cc,v 1.1 2006-08-08 05:20:57 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UIcommand.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4UIcommand.cc
//
@@ -47,16 +46,16 @@ list f_GetStateList(G4UIcommand* acommand)
list pyStateList;
std::vector<G4ApplicationState>* stateList= acommand->GetStateList();
for(G4int i=0; i< stateList->size(); i++) {
for( size_t i=0; i< stateList->size(); i++) {
pyStateList.append(&(*stateList)[i]);
}
return pyStateList;
}
};
}
using namespace pyG4UIcommand;
using namespace pyG4UIcommand;
// ====================================================================
// module definition
@@ -86,4 +85,3 @@ void export_G4UIcommand()
.def("GetTitle", &G4UIcommand::GetTitle)
;
}
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UIcommandTree.cc,v 1.1 2006-08-08 05:20:57 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UIcommandTree.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4UIcommandTree.cc
//
@@ -41,12 +40,12 @@ using namespace boost::python;
namespace pyG4UIcommandTree {
// GetTree
G4UIcommandTree*(G4UIcommandTree::*f1_GetTree)(G4int)=
G4UIcommandTree*(G4UIcommandTree::*f1_GetTree)(G4int)=
&G4UIcommandTree::GetTree;
G4UIcommandTree*(G4UIcommandTree::*f2_GetTree)(const char*)=
G4UIcommandTree*(G4UIcommandTree::*f2_GetTree)(const char*)=
&G4UIcommandTree::GetTree;
};
}
using namespace pyG4UIcommandTree;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UImanager.cc,v 1.1 2006-08-08 05:20:57 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UImanager.cc 76884 2013-11-18 12:54:03Z gcosmo $
// ====================================================================
// pyG4UImanager.cc
//
@@ -46,11 +45,11 @@ namespace pyG4UImanager {
// ApplyCommand
G4int(G4UImanager::*f1_ApplyCommand)(const char*) = &G4UImanager::ApplyCommand;
G4int(G4UImanager::*f2_ApplyCommand)(const G4String&) =
G4int(G4UImanager::*f2_ApplyCommand)(const G4String&) =
&G4UImanager::ApplyCommand;
// CreateHTML
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateHTML, CreateHTML, 0, 1);
BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(f_CreateHTML, CreateHTML, 0, 1)
//////////////////////////////////////////////
@@ -63,7 +62,7 @@ G4int ApplyUICommand_1(const G4String& cmdstr)
G4int paramIndex= returnVal % 100;
G4int commandStatus= returnVal - paramIndex;
switch(commandStatus) {
case fCommandSucceeded:
break;
@@ -74,7 +73,7 @@ G4int ApplyUICommand_1(const G4String& cmdstr)
break;
case fIllegalApplicationState:
G4cout << "illegal application state -- command refused"
G4cout << "illegal application state -- command refused"
<< G4endl;
break;
@@ -88,7 +87,7 @@ G4int ApplyUICommand_1(const G4String& cmdstr)
break;
case fParameterUnreadable:
G4cout << "Parameter is wrong type and/or is not omittable (index "
G4cout << "Parameter is wrong type and/or is not omittable (index "
<< paramIndex << ")" << G4endl;
break;
@@ -110,7 +109,7 @@ G4int ApplyUICommand_2(const std::string& cmdstr)
return ApplyUICommand_1(cmdstr);
}
};
}
using namespace pyG4UImanager;
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: pyG4UIparameter.cc,v 1.1 2006-08-08 05:20:57 kmura Exp $
// $Name: not supported by cvs2svn $
// $Id: pyG4UIparameter.cc 66892 2013-01-17 10:57:59Z gunter $
// ====================================================================
// pyG4UIparameter.cc
//

Some files were not shown because too many files have changed in this diff Show More