Last change
on this file since 1353 was
1337,
checked in by garnier, 14 years ago
|
tag geant4.9.4 beta 1 + modifs locales
|
-
Property svn:executable set to
*
|
File size:
631 bytes
|
Rev | Line | |
---|
[1337] | 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 | |
---|
Note: See
TracBrowser
for help on using the repository browser.