Arbitrary matrix in TGeoVolume::AddNode?


Going through the docs i couldn’t find a positive answer this question : is it possible to use an arbitrary matrix in TGeoVolume::AddNode ?

I want to use a rotation matrix but it seems TGeoRotation only handles angles and its components cannot be set directly. It is a problem for me since it means i’d need to calculate the angles myself from my matrix which is unnecessarily complicated and a potential source of errors because of the amount of different conventions about these rotations.

Thanks in advance for your help


You can use TGeoHMatrix, where you have setters for the rotation/translation components. It is defined in TGeoMatrix.h