Message: Re: Randomising primary particle based on a different code Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Randomising primary particle based on a different code 

Forum: Particles
Re: Question Randomising primary particle based on a different code (Dipanwita Banerjee)
Date: 16 Jan, 2014
From: michel maire <michel maire>

On Thu, 16 Jan 2014 09:59:20 GMT, Dipanwita Banerjee wrote:
> Hello, I would like to test anti-proton annihilation on a target. But I
> would like the distribution of my primary particles based on a C++
> program I wrote. The anti-protons will have a free fall based on random
> velocities and will thus have a random distribution on the target. I am
> attaching a file showing this distribution. How can I incorporate this
> distribution in my PrimaryGeneratorAction. Is there a way to add my C++
> code that generates this distribution into the Geant4 code? Any help
> will be appreciated....
> 

 You may have a look to examples/extended/eventgenerator/particleGun
 See Readme.
 Alternatively, you can try to use General Particle Source.

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

1 More: Re: Randomising primary particle based on a different code   (Gumplinger Peter - 16 Jan, 2014)
 Add Message Add Message
to: "Re: Randomising primary particle based on a different code"

 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 ]