Files
geant4/examples/advanced/hadrontherapy/macro/stoppingPowers.mac
T
2016-06-09 17:01:34 +02:00

74 lines
1.7 KiB
Plaintext

# S.E. Mazzaglia Nov 14, 2009
#
# Example macro file showing how to calculate stopping powers for particles and ions
#
#######################
# Set of the verboses #
#######################
#
/control/verbose 1
/tracking/verbose 0
/run/verbose 1
/event/verbose 0
##########################
# Set of the physic models
#
/Physics/addPhysics QGSP_BIC_EMY
# Initialize geometry and physic
/run/initialize
###############################
# Stopping Powers calculation #
###############################
###############################
# List of available materials #
###############################
# Show all available materials (list with additional informations)
/parameter/nist all
# Show all available elements (list with additional informations)
#/parameter/nist simple
# Show all available elements and materials (simple full list)
#/parameter/nist
###############
# "Particles" #
###############
# Calculate stopping power for proton into liquid water at 1 MeV
/parameter/getstopping G4_WATER
# Calculate stopping powers for protons into Hydrogen from 1 keV up to 200 MeV with 100 data points
# Print data to user terminal
/parameter/getstopping G4_H 0.001 200 100
# Calculate stopping powers for alphas into Copper from 1 keV up to 200 MeV with 100 data points
/parameter/getstopping G4_Cu 0.001 200 100 alpha stopAlpha_Cu_1keV_200MeV.out
########
# Ions #
########
# First you need to define the ion
#---------------------------gps-----------------
/gps/particle ion
/gps/ion 6 12 6
# This is non necessary if the ion is already into Geant4 database:
# /particle/list
/parameter/getstopping G4_WATER 1 150 200 C12[0.0] stopCarbon_Water_1MeV_150MeV.out