Message: Re: 2 particles from 1 source Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: 2 particles from 1 source 

Forum: Particles
Re: Question 2 particles from 1 source
Date: 16 Jun, 2016
From: <Dmytro>

So, solution with 2 sources at the same position worked (see code below).
But I don't know how to make the energy spectrum of the gammas to satisfy the condition E1+E2=1 MeV (energy for E1 should be sampled flat distribution 0 to 1 MeV, while E2 should be defined by the condition E2=1.0 MeV-E1).
Does any solution exist for this? Or I have to give up useing GPS in this case?

 
# Clear the source and make multiple vertices
/gps/source/clear
/gps/source/multiplevertex true

# Create the first particle.
/gps/source/add 1
/gps/particle gamma
/gps/energy 1.0 MeV
/gps/ang/type iso
/gps/pos/type Point

/gps/position 0.0 0.0 0.0 cm

# Create the second particle.
/gps/source/add 2
/gps/particle gamma
/gps/energy 1.0 MeV
/gps/ang/type iso
/gps/pos/type Point
/gps/position 0.0 0.0 0.0 cm

 Add Message Add Message
to: "Re: 2 particles from 1 source"

 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 ]