Message: Generate primary particles in a given volume Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Generate primary particles in a given volume 

Forum: Particles
Date: Oct 10, 08:40
From: Emanuele <Emanuele>

Hello,

I have to generate a source uniformly distributed in many volumes of different shapes. As I have successfully defined these volumes in the detector construction and i was wondering if there is a way to do the following in the primarygeneratoraction:

1)generate a uniform distribution x,y,z in a simple volume that contains all the volumes where i want to generate the source 2)check if my x,y,z fall in the interest volumes 3)set the vertex

I tried to see the class G4Navigator but i can't find a method to do that.

many thanks

 Add Message Add Message
to: "Generate primary particles in a given 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 ]