Import Geant4 8.1.0 source tree
This commit is contained in:
Executable
+38
@@ -0,0 +1,38 @@
|
||||
#!/usr/bin/python
|
||||
# ==================================================================
|
||||
# python script for Geant4Py test
|
||||
#
|
||||
#
|
||||
# ==================================================================
|
||||
import test12
|
||||
|
||||
a= test12.AClass()
|
||||
a.ival=10
|
||||
|
||||
b= test12.AClass()
|
||||
b.ival=20
|
||||
|
||||
c= test12.AClass()
|
||||
c.ival=30
|
||||
|
||||
v= test12.AVector()
|
||||
v.push_back(a)
|
||||
v.push_back(b)
|
||||
v.push_back(c)
|
||||
|
||||
print "*** size of vector= ", len(v)
|
||||
x=v[0]
|
||||
|
||||
print ""
|
||||
print "*** a vs v[0]"
|
||||
a.Print()
|
||||
x.Print()
|
||||
|
||||
print ""
|
||||
print "*** dump vector..."
|
||||
test12.PrintVector(v)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user