Message: GPS Ion problems Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None GPS Ion problems 

Forum: Particles
Date: 22 Mar, 2011
From: Jeremy Davis <Jeremy Davis>

Hi, Im quite new to Geant4, and I have been having problems with GPS.

So far I have been able to fire both mono-energetic protons as well as a spectrum with no trouble.

My problem is that when I try to simulate stripped Berrylium ions I encounter a memory leak. I retried the simulation using standard gun commands and there was still a memory leak.

Here is the macro which I have been using for beryllium (please note: I have been using the energy of the ion not Epn).

# Energy and type of primary particles
#control the physics
/control/execute physics.mac
##########################
# Initialisation procedure
# The origin of the particle is referred to the center
# of the world volume
#/control/execute vis.mac
#/tracking/verbose 1
/run/initialize
##########################
#define incident ion
## Stripped nucleus Z = atomic number, A = atomic mass
## Q = net charge of ion, E= double activation energy
/gps/particle ion /gps/ion 4 9 4 0
##########################
# type and distribution of beam
/gps/pos/type Plane /gps/pos/shape Rectangle
##########################
# Setting direction (-1 in z dir'n)
/gps/ang/rot1 1 0 0 /gps/ang/rot2 0 1 0
##########################
# Setting position (15cm away from device)
/gps/ang/type beam1d /gps/pos/centre -0.045 0.105. 150. mm ########################## /gps/energy 5.48 MeV /run/beamOn 10000 /analysis/filename beryllium_5-48MeV_10000events_SV1_1umAl

Any help with this problem will be of great assistance. Thankyou

 Add Message Add Message
to: "GPS Ion problems"

 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 ]