Message: Re: How to shoot gammarays/particles in a specified direction randomly? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to shoot gammarays/particles in a specified direction randomly? 

Forum: Particles
Re: Question How to shoot gammarays/particles in a specified direction randomly? (Pradip Datta)
Re: Feedback Re: How to shoot gammarays/particles in a specified direction randomly? (Giovanni Santin)
Re: None Re: How to shoot gammarays/particles in a specified direction randomly? (Pradip Datta)
Date: 08 May, 2009
From: Giovanni Santin <Giovanni Santin>

On Fri, 08 May 2009 11:28:22 GMT, Pradip Datta wrote:
> Thanks Giovanni and Michel for your prompt reply. If I can not do it
> with Particle Gun then I have to use to GPS. I have never use GPS and
> that is why looking for a Particle Gun solution. However thanks for
> prompt reply.

You *can* do it with the standard G4ParticleGun. No doubt on that. Thanks Michel for the code snippet.

The advantage of GPS is the wide range of built-in, predefined (=pre-coded) options it has, for position, angular and energy distributions. All options can be driven by Geant4 UI macro commands (as the ones I gave in my previous message).

I'd suggest to see from the presentation the few lines of code you need to modify in your application to give the GPS a try. The GPS is also used in the xray_telescope advanced example.

Giovanni

 Add Message Add Message
to: "Re: How to shoot gammarays/particles in a specified direction randomly?"

 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 ]