Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
test2.py
Go to the documentation of this file.
1 #!/usr/bin/python
2 # ==================================================================
3 # python script for Geant4Py test
4 #
5 #
6 # ==================================================================
7 import test04, sys
8 
9 btrack= test04.Track()
10 print "<<< ref#(btrack)=", sys.getrefcount(btrack)
11 bstep= btrack.GetStep2()
12 print "<<< ref#(btrack, bstep)=",\
13  sys.getrefcount(btrack),\
14  sys.getrefcount(bstep)
15 del bstep
16 print "<<< delete bstep"
17 print "<<< ref#(btrack)=", sys.getrefcount(btrack)
18 
19 
20 print ""
21 cstep= btrack.GetStep2()
22 cstep= test04.Step()
23 print "<<< previous step is still remain?"
24 
25 
26 print ""
27 print "--- stderr ---"
28 
29