Geant4
10.03.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
test.py
Go to the documentation of this file.
1
#!/usr/bin/python
2
# ==================================================================
3
# python script for Geant4Py test
4
#
5
#
6
# ==================================================================
7
import
test12
8
9
a= test12.AClass()
10
a.ival=10
11
12
b= test12.AClass()
13
b.ival=20
14
15
c= test12.AClass()
16
c.ival=30
17
18
v= test12.AVector()
19
v[:]= [a, b, c]
20
21
print
"*** size of vector= "
, len(v)
22
x=v[0]
23
24
print
""
25
print
"*** a vs v[0]"
26
a.Print()
27
x.Print()
28
29
print
""
30
print
"*** dump vector..."
31
test12.PrintVector(v)
32
33
34
35
36
source
geant4.10.03.p02
environments
g4py
tests
test12
test.py
Generated on Tue Nov 28 2017 21:43:06 for Geant4 by
1.8.5