source: trunk/environments/g4py/tests/test04/test1.py @ 1358

Last change on this file since 1358 was 1337, checked in by garnier, 14 years ago

tag geant4.9.4 beta 1 + modifs locales

  • Property svn:executable set to *
File size: 630 bytes
Line 
1#!/usr/bin/python
2# ==================================================================
3# python script for Geant4Py test
4#
5#
6# ==================================================================
7import test04, sys
8
9atrack= test04.Track()
10print "<<< ref#(atrack)=", sys.getrefcount(atrack)
11
12
13astep= atrack.GetStep1()
14print "<<< ref#(atrack, astep)=",\
15      sys.getrefcount(atrack),\
16      sys.getrefcount(astep)
17del astep
18print "<<< delete astep"
19print "<<< ref#(atrack)=", sys.getrefcount(atrack)
20
21print ""
22bstep= atrack.GetStep1()
23bstep= test04.Step()
24print "<<< previous step is still remain?"
25
26print ""
27print "--- stderr ---"
28
Note: See TracBrowser for help on using the repository browser.