Visibility of parent TGeoNode

Hello,

I have a quick (and hopefully simple) question about Geometry visualization.

When I construct a TGeoNode inside another (non-top) volume via TGeoVolume::AddNode , the parent node becomes invisible and only the added node is visiblie
That is when I add a node to the volume, I want to see both the parent, and new node’s volume.

I have tried different methods such as
TGeoVolume::SetVisiblity and TGeoVoluem::SetContainerVis with no success.
Also tried changing TGeoManager::SetVisLevel(N) without any change.

I am sure there is an easy answer to this.

Thanks in advance!

Whitney

Hi,

You cannot do that, but you can visualize a given path:

root [0] .x $ROOTSYS/tutorials/geom/rootgeom.C
root [1] gGeoManager->DrawPath("/TOP_1/REPLICA_2/ROOT_3/R_1");

Regards,

Hi,
Try: gGeoManager->SetTopVisible(); then draw your volume

Regards,
Andrei