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

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

Forum: Geometry
Re: Question How to get physical volume names out of the assemblyVolume?
Re: More Re: How to get physical volume names out of the assemblyVolume? (Gabriele Cosmo)
Date: 31 May, 2011
From: David Dennetiere <David Dennetiere>

On Tue, 08 Aug 2006 13:06:39 GMT, Gabriele Cosmo wrote:
> > 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
> 

Hi, I do have the same problem like the original writer of this Thread. I have desperatly tried to use this method but, not being used to c++ iterators, i have some problems getting the the G4VPhysicalVolume* from the iterator...

Could you give an example?

Thank you very much, David Dennetiere

 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 ]