Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
General Geant4 Overview
(section)
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Runs, Events, and Steps=== Geant4 simulations are broken into three levels runs, events, and steps. A run is a complete simulation, as in each time you run the program. Tasks executed at this level happen once per execution of the program. An event is the level below a run. When you use the run/beamOn command, your actually giving the program the number of events to execute after the command. An event is fairly flexible, but often it is a single particle being shot. The smallest level is a step. Each event is broken into a series of steps. Steps can be a certain amount of time passing, entering or exiting a volume, or a particle decaying. It is important to note that variables created in one level must be included in the others to be seen. This is done by including (#include "<example>.hh") the header file of the other class that holds the variable that needs to be used. Also, the variable in the other class must be public, or getters and setters must be used. Understanding at what level specific tasks should be handled is essential to designing a properly functioning program, so be sure to consider these concepts when deciding how to code your simulation.
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)