Message: Re: Replicas vs Navigation for large voxel numbers Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Replicas vs Navigation for large voxel numbers 

Forum: Geometry
Re: None Replicas vs Navigation for large voxel numbers (Ben Morgan)
Date: 07 Dec, 2009
From: Pedro Arce <Pedro Arce>


If you use G4PhantomParameterisation there is an option to avoid filling the material indices set (sorry, I will document it): if you do not define the material indices, it will always return index = 0 (the first material in your list). In any case, I think the memory problem you will have will not be related to the material indices, but to the map that is used for keeping the deposited energy in each voxel. Geant4 scorers use a std::map<G4int,G4double*>, and I found that this occupies 50 Mb of memory for each 1 million entries. You may write your own scorers using two std::vector, that occupy "only" 10 Mb for 2X1 million entries. The regular parameterisation is of course thought for box-like geometries, but if your volume is a tube you may use a parallel geometry for scoring.

I hope this helps,


 Add Message Add Message
to: "Re: Replicas vs Navigation for large voxel numbers"

 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 ]