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:
843 bytes
|
Rev | Line | |
---|
[1337] | 1 | #!/usr/bin/python |
---|
| 2 | # ================================================================== |
---|
| 3 | # python script for Geant4Py test |
---|
| 4 | # |
---|
| 5 | # |
---|
| 6 | # ================================================================== |
---|
| 7 | import test05 |
---|
| 8 | |
---|
| 9 | print "AClass(2,3.)" |
---|
| 10 | a= test05.AClass(2,3.) |
---|
| 11 | print "a.i=", a.i |
---|
| 12 | |
---|
| 13 | print "" |
---|
| 14 | print "func2(10)=", test05.func2(10) |
---|
| 15 | print "func2(10,100)=", test05.func2(10, 100) |
---|
| 16 | |
---|
| 17 | print "" |
---|
| 18 | print "func3(1)=", test05.func3(1) |
---|
| 19 | print "func3(1.)=", test05.func3(1.) |
---|
| 20 | |
---|
| 21 | print "" |
---|
| 22 | print "AMethod()=", a.AMethod() |
---|
| 23 | print "AMethod(1)=", a.AMethod(1) |
---|
| 24 | print "AMethod(1,2.)=", a.AMethod(1,2.) |
---|
| 25 | |
---|
| 26 | print "" |
---|
| 27 | print "BMethod()=", a.BMethod() |
---|
| 28 | print "BMethod(1.)=", a.BMethod(1.) |
---|
| 29 | |
---|
| 30 | print "" |
---|
| 31 | print "CMethod(1)=", a.CMethod(1) |
---|
| 32 | print "CMethod(1,10.)=", a.CMethod(1,10.) |
---|
| 33 | print "CMethod(1,10.,100.)=", a.CMethod(1,10.,100.) |
---|
| 34 | |
---|
| 35 | print "" |
---|
| 36 | print "*** ERRORS!! ***" |
---|
| 37 | a.AMethod(1,2,3) # error |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | |
---|
Note: See
TracBrowser
for help on using the repository browser.