Difference between TGeoMatrix and TGeoHMatrix?

Hi guys. I’ve inherited some code that sometimes uses an instance of one class and sometimes uses an instance of the other. I don’t understand when you would want to use TGeoHMatrix specifically, or how it differs from TGeoMatrix. Even after reading the documentation, I don’t get it.


I checked the users guide here (20.4.3), and it says that the TGeoHMatrix is the one that’s used to chain multiple transformations, e.g. c1 * c2 is a TGeoHMatrix, whereas the ci themselves are TGeoMatrix.

TGeoMatrix is a base geometry matrix class, TGeoHMatrix is the implementation for homogenous matrices, which is the actual type to be used when doing matrix/matrix and matrix/vector operations.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.