Message: Print number of Protons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Print number of Protons 

Forum: Particles
Date: 08 Oct, 2008
From: Oscar Larsson <Oscar Larsson>

Hi

I'm fairly new to Geant4 but I've manage to construct a simulation model of a particle detector, and all the deposited energies are printed to an output data file. This is done in "void EventAction::EndOfEvent.."

When I run a simulation I constantly change the incident particle when runing the program (different types of ions) i.e. /gun/particle ion /gun/ion 6 12 6 for instance. Now I would like the the output data file to contain the integer value of the ion used in the simulation.

What function do I call to get this value and how do I call that function?

Cheers!

 Add Message Add Message
to: "Print number of Protons"

 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 ]