Message: Smart voxelization for parameterised volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Smart voxelization for parameterised volume 

Forum: Geometry
Date: 12 Jan, 2016
From: <herr_apa>

Hi,

I have a parameterised volume that consists of a moving ball (implemented as a G4Sphere). In ComputeDimensions, I set the position depending on the event number. In my DetectorConstruction, I do motherLogical->SetSmartless(nDaughters). Everything works fine for this setup.

Now I want to change my parameterised volume such that the moving ball has a core and a surface layer. I have implemented this using one G4Sphere for the core and another G4Sphere for the surface (whose rMin is the rMax of the core). This setup doesn't work. I can make it work by doing motherLogical->SetSmartless(0), but that slows the simulation down drastically. Is there any way to obtain the "core + surface" geometry described above while still getting smart voxelization? Why does it not work now - Does the voxelizer become confused because one volume completely encloses the other?

For completion: The way I test the setup is to move a lead ball around randomly in a large mother volume. For each event, I generate a single low-energy electron somewhere inside the ball. It should stop immediately. At the end of the run, if the number of hits recorded in the ball is the same as the number of events, then the setup works.

Thanks a lot!

// Anders

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

1 More: Re: Smart voxelization for parameterised volume   (Gabriele Cosmo - 13 Jan, 2016)
(_ None: Re: Smart voxelization for parameterised volume   (herr_apa - 13 Jan, 2016)
(_ None: Re: Smart voxelization for parameterised volume   (John Apostolakis - 13 Jan, 2016)
(_ None: Re: Smart voxelization for parameterised volume   (herr_apa - 21 Jan, 2016)
 Add Message Add Message
to: "Smart voxelization for parameterised volume"

 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 ]