Message: Re: How to generate flux? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: How to generate flux? 

Forum: Particles
Re: Question How to generate flux? (Shivang Tripathi)
Date: 14 Apr, 2015
From: michel maire <michel maire>

On Sat, 11 Apr 2015 05:34:53 GMT, Shivang Tripathi wrote:
> Dear Experts,
> I want to generate neutron flux(no. of neutrons/ using GPS.
> Any help would be appreciated.

  I would not use GPS, but simpler G4ParticleGun.

  1- for spatial distribution, see example Hadr03: PrimaryGeneratorAction
  2- for time window, I would add after GeneratePrimaryVertex(anEvent) :

      G4double tmin = 0*s, tmax = 1*s;
      G4double t0 = tmin + (tmax - tmin)*G4UniformRand();

 Add Message Add Message
to: "Re: How to generate flux?"

 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 ]