Files
geant4/environments/g4py/tests/test12/test.py
T
2016-06-09 15:37:50 +02:00

37 lines
496 B
Python
Executable File

#!/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[:]= [a, b, 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)