Message: Re: How to determine the volume from position? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: How to determine the volume from position? 

Forum: Event and Track Management
Re: Question How to determine the volume from position? (Nikola Jovancevic)
Date: 02 Jul, 2008
From: Gumplinger Peter <Gumplinger Peter>

Hi Nikola,

Please, inspect the code following at:

http://www-geant4.kek.jp/lxr/source/examples/extended/field/field04/src/F04ElementField.cc#L65

Once you have at 'depth-1'

fTouchable->GetVolume()->GetLogicalVolume()

you can ask for the name.

P.S. It is important that you don't corrupt 'theNavigator' and instead instantiate your own ('aNavigator').

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

1 Ok: Re: How to determine the volume from position?   (Nikola Jovancevic - 07 Jul, 2008)
 Add Message Add Message
to: "Re: How to determine the volume from position?"

 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 ]