Hi,
we load a GDML geometry with several physical volumes placed at different positions. When I load the geometry into TGeoManager
using ::Import
it creates the object normally.
I am able to access each volume using Geometry->GetVolume(x)
however it looks as I am only able to identify one node (the one corresponding to the world volume).
root [4] Geometry->GetVolume(0)->GetNode(0)->GetMatrix()->Print()
matrix - tr=1 rot=0 refl=0 scl=0 shr=0 reg=1 own=0
1.000000 0.000000 0.000000 Tx = 0.000000
0.000000 1.000000 0.000000 Ty = 0.000000
0.000000 0.000000 1.000000 Tz = 0.000000
I get this when calling the number of nodes
root [1] Geometry->GetListOfNodes()->GetEntries()
(int) 1
but when the geometry loads it says there are 7 nodes:
Info in <TGeoManager::CloseGeometry>: 7 nodes/ 6 volume UID's in Geometry imported from GDML
Info in <TGeoManager::CloseGeometry>: ----------------modeler ready----------------
stOfNodes()->GetEntries()
I tried to find in the documentation a way to find the positions of those volumes/nodes but I dont find the exact answer. Could I get some insight on that?
Thanks!