Geant4.10
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4.10.00.p01
environments
g4py
tests
test10
tests/test10/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
test10
8
9
class
MyX
(test10.XBase):
10
"My X"
11
12
def
VMethodA
(self, a):
13
print
"*** MyX::VMethod...A() is called."
14
15
def
VMethodB
(self, b):
16
print
"*** MyX::VMethod...B() is called."
17
18
19
x= test10.XBase()
20
myx=
MyX
()
21
z= test10.ZClass()
22
23
print
"!!! direct call via C++ pointer"
24
z.SetXBase(x)
25
z.Process()
26
27
print
""
28
print
"!!! call via python inheritor"
29
z.SetXBase(myx)
30
z.Process()
31
test.MyX
Definition:
tests/test10/test.py:9
test.MyX.VMethodB
def VMethodB
Definition:
tests/test10/test.py:15
test.MyX.VMethodA
def VMethodA
Definition:
tests/test10/test.py:12
Generated on Wed Apr 30 2014 15:55:30 for Geant4.10 by
1.8.7