Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
+77
View File
@@ -0,0 +1,77 @@
#
# This file permits to customize, with commands,
# the menu bar of the G4UIXm, G4UIQt, G4UIWin32 sessions.
# It has no effect with G4UIterminal.
#
#
# Add icons of general interest
#
/control/execute Macro/GUI/icons.mac
/control/execute Macro/init_beam.mac
# File menu :
/gui/addMenu file File
/gui/addButton file Quit exit
# Run menu :
/gui/addMenu run Run
/gui/addButton run "BeamOn 1" "/run/beamOn 1"
/gui/addButton run "Beam On" "/run/beamOn"
/gui/addButton run "Save History" /control/saveHistory
#/gui/addButton run run1 "/control/execute run1.mac"
# Gun menu :
/gui/addMenu beam Beam
/gui/addButton beam "Energy - Type : mono" "/gps/ene/mono"
/gui/addButton beam "Particle : proton" "/gps/particle proton"
/gui/addButton beam "Particle : deuteron" "/gps/particle deuteron"
/gui/addButton beam "Irradiation Time in hour(s)" "/setTimeOfIrradiation/time"
/gui/addButton beam "Beam current in Ampere" "/setBeamCurrent/beamCurrent"
# Viewer menu :
/gui/addMenu viewer Viewer
/gui/addButton viewer "Set style surface" "/vis/viewer/set/style surface"
/gui/addButton viewer "Set style wireframe" "/vis/viewer/set/style wireframe"
/gui/addButton viewer "Refresh viewer" "/vis/viewer/refresh"
/gui/addButton viewer "Update viewer (interaction or end-of-file)" "/vis/viewer/update"
/gui/addButton viewer "Flush viewer (= refresh + update)" "/vis/viewer/flush"
/gui/addButton viewer "Update scene" "/vis/scene/notifyHandlers"
/gui/addButton viewer "Disable viewer" "/vis/disable"
/gui/addButton viewer "Enable viewer" "/vis/enable"
#
# User defined icon :
/gui/addIcon "Run beam on" user_icon "/run/beamOn 1" run.png
#Target Material Menu
/gui/addMenu targetMaterial Target_Material
/gui/addButton targetMaterial "My designed Material" "/control/execute Macro/Material/Target/My_designed_material.mac"
/gui/addButton targetMaterial "Pure 64Ni" "/control/execute Macro/Material/Target/Ni64_pure.mac"
/gui/addButton targetMaterial "95% 64Ni" "/control/execute Macro/Material/Target/Ni64_enriched_95.mac"
/gui/addButton targetMaterial "NIST material list" "/material/nist/listMaterials"
/gui/addButton targetMaterial "Target material modification using NIST" "/changeTarget/materialNist"
#Target Geometry Menu
/gui/addMenu targetGeometry Target_Geometry
/gui/addButton targetGeometry "Thickness" "/changeTarget/thickness"
/gui/addButton targetGeometry "Diameter" "/changeTarget/diameter"
#Foil Material Menu
/gui/addMenu foilMaterial Foil_Material
/gui/addButton foilMaterial "My designed Material" "/control/execute Macro/Material/Foil/My_designed_material.mac"
/gui/addButton foilMaterial "NIST material list" "/material/nist/listMaterials"
/gui/addButton foilMaterial "Target material modification using NIST" "/changeFoil/materialNist"
#Foil Geometry Menu
/gui/addMenu foilGeometry Foil_Geometry
/gui/addButton foilGeometry "Thickness" "/changeFoil/thickness"
+26
View File
@@ -0,0 +1,26 @@
#
# This file permits to customize, with commands,
# the icon menu bar of the G4UIQt sessions not yet implemented other UI drivers (geant4-09-05-ref-09)
# It has no effect with G4UIterminal.
# open/save icons
/gui/addIcon "Open macro file" open /control/execute
/gui/addIcon "Save viewer state" save /vis/viewer/save
# Cursors style icons
/gui/addIcon "Move" move
/gui/addIcon "Pick" pick
/gui/addIcon "Zoom out" zoom_out
/gui/addIcon "Zoom in" zoom_in
/gui/addIcon "Rotate" rotate
# Surface Style icons
# Surface Style icons
/gui/addIcon "Hidden line removal" hidden_line_removal
/gui/addIcon "Hidden line and hidden surface removal" hidden_line_and_surface_removal
/gui/addIcon "Surfaces" solid
/gui/addIcon "Wireframe" wireframe
# Perspective/Ortho icons
/gui/addIcon "Perspective" perspective
/gui/addIcon "Orthographic" ortho
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

@@ -0,0 +1,35 @@
#Design your own material following an example
# Example 2 : defining the following : 2.6% of Ni58, 1.72% of Ni60, 0.15% of Ni61, 0.53% of Ni62, 95% of Ni64
#/changeTarget/designedMaterial/materialDensity 8.9 g/cm3
#/changeTarget/designedMaterial/MaterialNComponents 1
#/changeTarget/designedMaterial/ElementName enrichedNi64
#/changeTarget/designedMaterial/MaterialFractionMass 1.
#/changeTarget/designedMaterial/ElementSymbole enrichedNi64
#/changeTarget/designedMaterial/ElementNComponents 5
#/changeTarget/designedMaterial/isotopeName Ni64
#/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.95
#/changeTarget/designedMaterial/isotopeZ 28.
#/changeTarget/designedMaterial/isotopeN 64
#/changeTarget/designedMaterial/isotopeA 64.
#/changeTarget/designedMaterial/isotopeName Ni58
#/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.026
#/changeTarget/designedMaterial/isotopeZ 28.
#/changeTarget/designedMaterial/isotopeN 58
#/changeTarget/designedMaterial/isotopeA 58.
#/changeTarget/designedMaterial/isotopeName Ni60
#/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.0172
#/changeTarget/designedMaterial/isotopeZ 28.
#/changeTarget/designedMaterial/isotopeN 60
#/changeTarget/designedMaterial/isotopeA 60.
#/changeTarget/designedMaterial/isotopeName Ni61
#/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.0015
#/changeTarget/designedMaterial/isotopeZ 28.
#/changeTarget/designedMaterial/isotopeN 61
#/changeTarget/designedMaterial/isotopeA 61.
#/changeTarget/designedMaterial/isotopeName Ni62
#/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.0053
#/changeTarget/designedMaterial/isotopeZ 28.
#/changeTarget/designedMaterial/isotopeN 62
#/changeTarget/designedMaterial/isotopeA 62.
#/changeTarget/designedMaterial/update
@@ -0,0 +1,33 @@
# Example 2 : defining the following : 2.6% of Ni58, 1.72% of Ni60, 0.15% of Ni61, 0.53% of Ni62, 95% of Ni64
/changeTarget/designedMaterial/materialDensity 8.9 g/cm3
/changeTarget/designedMaterial/MaterialNComponents 1
/changeTarget/designedMaterial/ElementName enrichedNi64
/changeTarget/designedMaterial/MaterialFractionMass 1.
/changeTarget/designedMaterial/ElementSymbole enrichedNi64
/changeTarget/designedMaterial/ElementNComponents 5
/changeTarget/designedMaterial/isotopeName Ni64
/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.95
/changeTarget/designedMaterial/isotopeZ 28.
/changeTarget/designedMaterial/isotopeN 64
/changeTarget/designedMaterial/isotopeA 64.
/changeTarget/designedMaterial/isotopeName Ni58
/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.026
/changeTarget/designedMaterial/isotopeZ 28.
/changeTarget/designedMaterial/isotopeN 58
/changeTarget/designedMaterial/isotopeA 58.
/changeTarget/designedMaterial/isotopeName Ni60
/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.0172
/changeTarget/designedMaterial/isotopeZ 28.
/changeTarget/designedMaterial/isotopeN 60
/changeTarget/designedMaterial/isotopeA 60.
/changeTarget/designedMaterial/isotopeName Ni61
/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.0015
/changeTarget/designedMaterial/isotopeZ 28.
/changeTarget/designedMaterial/isotopeN 61
/changeTarget/designedMaterial/isotopeA 61.
/changeTarget/designedMaterial/isotopeName Ni62
/changeTarget/designedMaterial/IsotopeAbundanceInElement 0.0053
/changeTarget/designedMaterial/isotopeZ 28.
/changeTarget/designedMaterial/isotopeN 62
/changeTarget/designedMaterial/isotopeA 62.
/changeTarget/designedMaterial/update
@@ -0,0 +1,13 @@
# Example 3 : defining the following : pure Ni64
/changeTarget/designedMaterial/materialDensity 8.85 g/cm3
/changeTarget/designedMaterial/MaterialNComponents 1
/changeTarget/designedMaterial/ElementName Ni64
/changeTarget/designedMaterial/MaterialFractionMass 1.
/changeTarget/designedMaterial/ElementSymbole Ni64
/changeTarget/designedMaterial/ElementNComponents 1
/changeTarget/designedMaterial/isotopeName Ni64
/changeTarget/designedMaterial/IsotopeAbundanceInElement 1.
/changeTarget/designedMaterial/isotopeZ 28.
/changeTarget/designedMaterial/isotopeN 64
/changeTarget/designedMaterial/isotopeA 64.
/changeTarget/designedMaterial/update
+11
View File
@@ -0,0 +1,11 @@
# Macro file for the initialization phase of example B1
# when running in interactive mode with visualization
#
# Set some default verbose
#
/control/verbose 1
/control/saveHistory
/run/verbose 1
#
# Visualization setting
/control/execute Macro/Vis/vis.mac
+92
View File
@@ -0,0 +1,92 @@
# Macro file for the visualization setting in the initialization phase
# of the example when running in interactive mode
#
#/vis/disable
# Use these open statements to open selected visualization
#
# Use this open statement to create an OpenGL view:
#/vis/open OGLI
/vis/open OGL 600x600-0+0
#
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established:
/vis/viewer/set/autoRefresh false
/vis/verbose 1
#
# Draw geometry:
/vis/drawVolume
#
# Specify view angle:
/vis/viewer/set/viewpointVector -1 0 0
/vis/viewer/set/lightsVector -1 0 0
#zoom the whole target part
#/vis/viewer/set/targetPoint 0 0 0.1 m
#/vis/viewer/zoomTo 10
#zoom just the target element
/vis/viewer/set/targetPoint 0 0 0 mm
/vis/viewer/zoomTo 1
#
#
# Specify style (surface, wireframe, auxiliary edges,...)
/vis/viewer/set/style surface
#/vis/viewer/set/auxiliaryEdge true
#/vis/viewer/set/lineSegmentsPerCircle 500
#
# Draw smooth trajectories at end of event, showing trajectory points
# as markers 2 pixels wide:
/vis/scene/add/trajectories smooth
/vis/modeling/trajectories/create/drawByCharge
/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
#
# Draw hits at end of event:
/vis/scene/add/hits
#
# Many other options are available with /vis/modeling and /vis/filtering.
# For example, to select colour by particle ID:
/vis/modeling/trajectories/create/drawByParticleID
/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
# To select or override default colours (note: e+ is blue by default):
/vis/modeling/trajectories/list
/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
#
# To superimpose all of the events from a given run:
#/vis/scene/endOfEventAction accumulate
#
# Decorations
# Name
/vis/set/textColour green
/vis/set/textLayout right
/vis/scene/add/text2D 0.9 -.9 24 ! ! sahmri_Simulation
#/vis/scene/add/axes 0 0 0 186.14 mm
#
#
# Set geometry attributes
/vis/geometry/set/visibility World 0 0
/vis/geometry/set/colour Layer_PART1 0 1. 0.1 0.5 0.3 #Al
/vis/geometry/set/colour Layer_PART2 0 1. 0.1 0.5 0.3 #Al
/vis/geometry/set/colour Layer_PART3 0 1. 0.2 0.4 0.3 #Al
/vis/geometry/set/colour Layer_PART4 0 0. 0.2 0.7 0.3 #Al
/vis/geometry/set/colour Layer1_PART4 0 1. 0. 0. 0.3 #Pt
/vis/geometry/set/colour Layer1_PART5 0 0. 0.2 0.7 0.3 #Pt
/vis/geometry/set/colour Layer2_PART5 0 1. 0. 0. 0.3 #Al
/vis/geometry/set/colour Layer3_PART5 0 1. 0. 0. 0.3 #Al
/vis/geometry/set/colour Foil 0 1. 0.8 0.4 0.3 #foil
/vis/geometry/set/colour Target 0 0.1 0.8 0.4 0.6 #target
/vis/geometry/set/colour Tube_PART1 0 1. 1. 0. 0.3 #beam
/vis/geometry/set/colour Tube_PART2 0 1. 1. 0. 0.3 #beam
/vis/geometry/set/colour Tube_PART3 0 1. 1. 0. 0.3 #beam
/vis/geometry/set/colour Tube_PART4 0 1. 1. 0. 0.3 #beam
/vis/geometry/set/colour Grid 0 0.1 0.5 1. 0.9 #Al
#
#/run/verbose 0
#/tracking/verbose 1
#/control/verbose 0
# Re-establish auto refreshing and verbosity:
/vis/viewer/set/autoRefresh true
/vis/verbose warnings
#
# For file-based drivers, use this to create an empty detector view:
#/vis/viewer/flush
+9
View File
@@ -0,0 +1,9 @@
# Macro file for the initialization phase
# when running in interactive mode without
# visualization
#
# Set some default verbose
/run/initialize
/control/verbose 2
/control/saveHistory
/run/verbose 0
+73
View File
@@ -0,0 +1,73 @@
#This macro file is where the user can set up the different parameters one can modify.
/run/initialize
##############################################
#
# PART1: Set the values for the beam
#
/gps/particle proton #incoming particles = proton
/gps/direction 0 0 1 #oriented along the Z axis
/gps/ene/type Mono #monoenergetic
/gps/ene/mono 18. MeV #at 18 MeV
/gps/pos/type Beam
/gps/pos/shape Circle #the beam geometry is a circle
/gps/pos/radius 3. mm #of diameter of 3 mm
#
/setBeamCurrent/beamCurrent 30.E-6 #set the value of beam current in ampere
/setTimeOfIrradiation/time 6. # Set the irradiation time (in hours)
#
#
#
##############################################
#
# PART 2 : Set the values for the Target
#
/changeTarget/diameter 6. mm
/changeTarget/thickness 0.6 mm
#control/execute Macro/Material/Target/Ni64_enriched_95.mac
#
#
#
###############################################
#
# PART 3 : Set the values for the Foil
#
#/changeFoil/thickness 0.32 mm
/changeFoil/thickness 0.32 mm
#
#
#
##############################################
# PART 4 : Set the edges of histograms
#
#Beam data
/analysis/setFileName STCyclotron
/analysis/h1/set 0 32 12. 19. MeV #energy primary particles when reaching the target (in MeV). By default equal or lower than the beam energy.
/analysis/h1/set 1 16 16. 19. MeV #energy primary particles when reaching the foil (in MeV). By default equal or lower than the beam energy.
/analysis/h1/set 2 72 0.0 18. MeV #energy spectrum of primaries going out of the target (MeV)
/analysis/h1/set 3 32 12. 19. MeV #energy of primary particles when going out of the foil (MeV)
/analysis/h1/set 4 30 185. 188. mm #depth of isotope creation in the target.
/analysis/h1/set 5 72 0. 18. MeV #energy spectrum of positrons created in the target (MeV)
/analysis/h1/set 6 72 0. 18. MeV #energy spectrum of electrons created in the target (MeV)
/analysis/h1/set 7 72 0. 18. MeV #energy spectrum of gammas created in the target (MeV)
/analysis/h1/set 8 72 0. 18. MeV #energy spectrum of neutrons created in the target (MeV)
/analysis/h1/set 9 72 0. 18. MeV #energy spectrum of positrons created in the target via decay (MeV)
/analysis/h1/set 10 72 0. 18. MeV #energy spectrum of electrons created in the target via decay (MeV)
/analysis/h1/set 11 72 0. 18. MeV #energy spectrum of gammas created in the target via decay (MeV)
/analysis/h1/set 12 72 0. 18. MeV #energy spectrum of neutrons created in the target via decay (MeV)
/analysis/h1/set 13 72 0. 18. MeV #energy spectrum of nu_e created in the target via decay (MeV)
/analysis/h1/set 14 72 0. 18. MeV #energy spectrum of anti_nu_e created in the target via decay (MeV)
#
#
/analysis/h2/setX 0 100 -7.5 7.5 mm #beam intensity before hiting the target (mm)
/analysis/h2/setY 0 100 -7.5 7.5 mm #beam intensity before hiting the target (mm)
/analysis/h2/setX 1 100 -7.5 7.5 mm #beam intensity before hiting the foil (mm)
/analysis/h2/setY 1 100 -7.5 7.5 mm #beam intensity before hiting the foil (mm)
/analysis/h2/setX 2 21 14.5 35.5 #radioisotopes produced
/analysis/h2/setY 2 30 44.5 74.5 #radioisotopes produced
/analysis/h2/setX 3 100 185. 188. mm #depth = f(energy (MeV))
/analysis/h2/setY 3 100 0. 19. MeV #depth = f(energy (MeV))
/analysis/h2/setX 4 100 -7.5 7.5 mm #beam intensity going out from the target (mm)
/analysis/h2/setY 4 100 -7.5 7.5 mm #beam intensity going out from the target (mm)
/analysis/h2/setX 5 100 -7.5 7.5 mm #beam intensity going out from the foil (mm)
/analysis/h2/setY 5 100 -7.5 7.5 mm #beam intensity going out from the foil (mm)
+12
View File
@@ -0,0 +1,12 @@
#
# Macro file for myProgram
#
# set verbose level for this run
#
/control/execute Macro/init_parameters.mac
/control/verbose 2
/run/verbose 2
/event/verbose 0
/tracking/verbose 0
#
/run/beamOn 10