Message: Volume hierarchy tree, and finding volume by name Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Volume hierarchy tree, and finding volume by name 

Keywords: volume hierarchy
Forum: Geometry
Date: 14 Dec, 2006
From: Viktor Pec <>


Is there any class containing volume hierarchy which is available during simulation?

Is there any get method returning pointer to physical volume having volume name as input parameter?

I couldn't find any of those above. I'm trying to get information about vertex where the secondary is generated. There's method to get the current volume it's in, but if that volume is inside another, and I need to test the latter one, how could I do it? The hierarchy could be much more complicated. So I can get the requested volume and look if the current volume is an ancestor. That's the way I would like to do it, but I don't know how to get the requested volume using only it's name.

I tryed to trace the hierarchy by descending from the World volume, but I couldn't find even get method for world volume. I thing it should be accesible after geometry was registered.

Thanks for help

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Note: Add: Volume hierarchy tree, and finding volume by name   (Viktor Pec - 14 Dec, 2006)
 Add Message Add Message
to: "Volume hierarchy tree, and finding volume by name"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]