Import Geant4 8.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 14:44:26 +02:00
parent 8a51e0bc40
commit 216a75eeb1
8717 changed files with 360418 additions and 141343 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/python
# ==================================================================
# python script for Geant4Py test
#
#
# ==================================================================
import test10
class MyX(test10.XBase):
"My X"
def VMethodA(self, a):
print "*** MyX::VMethod...A() is called."
def VMethodB(self, b):
print "*** MyX::VMethod...B() is called."
x= test10.XBase()
myx= MyX()
z= test10.ZClass()
print "!!! direct call via C++ pointer"
z.SetXBase(x)
z.Process()
print ""
print "!!! call via python inheritor"
z.SetXBase(myx)
z.Process()