python ROOT access

From: Michal Dwuznik <Michal.Dwuznik_at_cern.ch>
Date: Sun, 2 Mar 2008 21:22:38 +0100


Hi ROOTers,
could someone with pyROOT configured properly check the following in python:

(ROOT 5.19/01) $ python
Python 2.5.2 (r252:60911, Feb 27 2008, 18:32:21) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu1)] on linux2 Type "help", "copyright", "credits" or "license" for more information.
>>> import ROOT
>>> combi = ROOT.TGeoCombiTrans()
>>> matrix = combi.GetRotationMatrix()
>>> print matrix[0]

1.0
>>> matrix[0]=0.99

0xb7eef410 in __kernel_vsyscall ()
error detected on stdin
The program is running. Quit anyway (and detach it)? (y or n) [answered Y; input not from terminal]
Detaching from program: /proc/8053/exe, process 8053

>>> combi = ROOT.TGeoRotation()
>>> matrix = combi.GetRotationMatrix()
>>> matrix[0]

1.0
>>> matrix[0]=0.99
>>> print matrix[0]

0.99

In the same time doing quite the same with TGeoRotation instead works OK. What's my error then ? Or what's the proper way of feeding a TGeoCombiTrans from python with [x,y,z] as translation and [1,0,0,0,1,0,0,0,1] as rotation "matrix" ?

Regards
Michal Received on Sun Mar 02 2008 - 21:22:47 CET

This archive was generated by hypermail 2.2.0 : Sun Mar 02 2008 - 23:50:01 CET