Multiple Scoring Volumes

Hi,

I am fairly new to GEANT4 and I’m trying to model dose rate as a function of depth for an underground contaminated structure.

I have modified example B1 to create 15, 10 cm thick layers of soil (eventually, these will change in density). At the moment, a for loop creates new logical volume and placement for these layers then adds the new logical volume to a vector of logical volumes.

I’m now stuck trying to record the energy deposited for each of these logical volumes during a run. So my questions are.

Is this solution sensible, or is there an easier way than looping through logical volumes?

and

If this is sensible, how would I go about getting an energy deposited in logical volume?

Many thanks,
Luke

1 Like