Message: Re: How to get physical volume names out of the assemblyVolume? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

More Re: How to get physical volume names out of the assemblyVolume? 

Keywords: AssemblyVolume , PhysicalVolume
Forum: Geometry
Re: Question How to get physical volume names out of the assemblyVolume?
Date: 08 Aug, 2006
From: Gabriele Cosmo <Gabriele Cosmo>

> I don't know how to access the Physical volume names 
> inside my assembly volume. Actually I want to retrieve the pointer of the 
> physicall volumes and use them in SteppingAction class to track down the 
> energy deposits in each particular volume of the assembly volume.

Since release 8.1 you can access the constituent volumes of an assembly by
invoking the method GetVolumesIterator() of G4AssemblyVolume. The method
returns you an iterator on the pointers of the physical-volumes which are part
of the assembly.

Cheers, Gabriele

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

1 Question: Re: How to get physical volume names out of the assemblyVolume?   (David Dennetiere - 31 May, 2011)
 Add Message Add Message
to: "Re: How to get physical volume names out of the assemblyVolume?"

 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 ]