Hello,
I’m trying to get geometry from some file [code]
TGeoNode* node = gGeoManager->GetTopNode();
TGeoVolume *vol = node->GetVolume();
TGeoShape *shape = vol->GetShape();
TGeoMaterial *material = vol->GetMaterial();
TGeoHMatrix *matrix = node->GetMatrix();
matrix->GetName();//OK
Double_t *trans = matrix->GetTranslation();//segfault
[/code]
I can loop over “node” and childs, take volume, material, properties of volume/shape etc. but when I try get any matrix with translation, rotation or scale (e.g. call GetTranslation) then I get segfault. What can be the reason and how to fix this?