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)
Date: 10 Jun, 2007
From: Makoto Asai <Makoto Asai>

Your approach is correct. Post your UserPrimaryGeneratorAction code
so that we can look at your problem. 

> -----Original Message-----
> From: Adam [mailto:ax_blais@laurentian.ca] 
> Sent: Friday, June 08, 2007 5:36 PM
> To: publichypernews
> Subject: Generating 2 particles with different energies
> 
> *** Discussion title: Particles
> Email replies to PublicHyperNews@slac.stanford.edu must include:
>   In-Reply-To: <"/particles/343"@geant4-hn.slac.stanford.edu>
>   Subject: ...change this to be about your reply.
> 
> I have to generate two particles at a time, coming from the 
> same vertex.
> Each particle has to have a unique energy. I tried setting energy1 and
> then generating vertex, and then setting energy2 and calling
> generateVertex again. (This is with the same particle gun.) The result
> was thousands of tracks which led to a segmentation fault. 
> This doesn't
> happen when I set each particle to have the same energy. How can I do
> 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)
(_ None: RE: Generating 2 particles with different energies   (Makoto Asai - 11 Jun, 2007)
(_ None: RE: Generating 2 particles with different energies   (Adam - 11 Jun, 2007)
(_ None: RE: Generating 2 particles with different energies   (Makoto Asai - 11 Jun, 2007)
(_ 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 ]