Message: RE: Generating 2 particles with different energies Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None RE: Generating 2 particles with different energies 

Forum: Particles
Re: None Generating 2 particles with different energies (Adam)
Re: None RE: Generating 2 particles with different energies (Makoto Asai)
Re: None RE: Generating 2 particles with different energies (Adam)
Re: None RE: Generating 2 particles with different energies (Makoto Asai)
Re: None RE: Generating 2 particles with different energies (Adam)
Date: 11 Jun, 2007
From: Makoto Asai <Makoto Asai>

Actually, you have one more problem in your primary generator
action. 

> particleGun->SetParticleMomentum(particle_momentum_direction); }

This should be replaced by SetParticleMomentumDirection() method.
Given you were setting the momentum rather than its direction, and
overwriting it with SetParticleEnergy(), this is the reason you got the
warning messages.

> -----Original Message-----
> From: Adam [mailto:ax_blais@laurentian.ca] 
> Sent: Monday, June 11, 2007 10:39 AM
> To: publichypernews
> Subject: RE: Generating 2 particles with different energies
> 
> *** Discussion title: Particles
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/particles/343/1/1/1/1"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> Thank you for your help. It turns out the segmentation fault 
> was due to
> the wrong units being used. In essence, I was shooting 2.4578GeV
> electrons and they were escaping the world volume.
> 
> I do have one more question:
> 
> I am getting 2 outputs like this before every event:
> 
> G4ParticleGun::e-
>   KineticEnergy and Momentum could be inconsistent
>  (Momentum:0.001 GeV/c  Mass:0.00051 GeV/c/c)
>   KineticEnergy is overwritten!! 0.0014->0.00061GeV
> 
> What is the reason for this?
> 

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

1 None: RE: Generating 2 particles with different energies   (Adam - 11 Jun, 2007)
 Add Message Add Message
to: "RE: Generating 2 particles with different energies"

 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 ]