Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -139,3 +139,7 @@
|
||||
#########################
|
||||
|
||||
/run/beamOn 10
|
||||
|
||||
|
||||
# Visualization setting in case you wish it)
|
||||
/control/execute vis.mac
|
||||
@@ -1,30 +1,27 @@
|
||||
# G.A.P.Cirrone, pablo.cirrone@lns.infn.it
|
||||
# Macro file for the initialization of example B1
|
||||
# in interactive session
|
||||
#
|
||||
# Default macro file with visualisation. It is called if no argument is provided at run
|
||||
# Set some default verbose
|
||||
/control/verbose 2
|
||||
/control/saveHistory
|
||||
/run/verbose 2
|
||||
#
|
||||
#########################
|
||||
# Set of the verboses
|
||||
#
|
||||
/control/verbose 0
|
||||
/tracking/verbose 0
|
||||
/run/verbose 0
|
||||
/event/verbose 0
|
||||
# Change the default number of threads (in multi-threaded mode)
|
||||
/run/numberOfThreads 4
|
||||
|
||||
##########################
|
||||
# Set of the physic models
|
||||
#
|
||||
#/Physics/addPhysics HADRONTHERAPY_1
|
||||
/Physics/addPhysics QGSP_BIC_HP
|
||||
|
||||
#/run/numberOfThreads 1
|
||||
|
||||
/Physics/addPhysics HADRONTHERAPY_1
|
||||
/run/numberOfThreads 10
|
||||
|
||||
##########################
|
||||
# Initialisation procedure
|
||||
#
|
||||
# Initialize kernel
|
||||
/run/initialize
|
||||
|
||||
# Set a very high time threshold to allow all decays to happen
|
||||
/process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
|
||||
#/process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
|
||||
|
||||
####################################################
|
||||
# Set here the CUT and the STEP MAX for the tracking.
|
||||
@@ -137,6 +134,9 @@
|
||||
# Default material is water liquid
|
||||
/changePhantom/material G4_WATER
|
||||
|
||||
|
||||
/run/printProgress 1000
|
||||
/run/beamOn 50000
|
||||
/run/beamOn 100000
|
||||
|
||||
# Visualization setting (in case you wish it)
|
||||
#
|
||||
# /control/execute vis.mac
|
||||
|
||||
@@ -1,53 +1,27 @@
|
||||
# G.A.P.Cirrone,
|
||||
# pablo.cirrone@lns.infn.it
|
||||
# Macro file for the initialization of example B1
|
||||
# in interactive session
|
||||
#
|
||||
# Default macro file. It is called if no argument is provided at run
|
||||
# and when the PHYSLIST enviroment variable is OFF
|
||||
# i.e. simply typing $G4WORKDIR/bin/Linux-++/Hadrontherapy <no argument here!>
|
||||
|
||||
#########################
|
||||
# Set of the verboses
|
||||
# Set some default verbose
|
||||
/control/verbose 2
|
||||
/control/saveHistory
|
||||
/run/verbose 2
|
||||
#
|
||||
/control/verbose 0
|
||||
/tracking/verbose 0
|
||||
/run/verbose 0
|
||||
/event/verbose 0
|
||||
# Change the default number of threads (in multi-threaded mode)
|
||||
/run/numberOfThreads 4
|
||||
|
||||
##########################
|
||||
# Set of the physic models
|
||||
#
|
||||
#/Physics/addPhysics HADRONTHERAPY_1
|
||||
/Physics/addPhysics QGSP_BIC_HP
|
||||
|
||||
#/run/numberOfThreads 1
|
||||
|
||||
/Physics/addPhysics HADRONTHERAPY_1
|
||||
/run/numberOfThreads 1
|
||||
|
||||
##########################
|
||||
# Initialisation procedure
|
||||
#
|
||||
# Initialize kernel
|
||||
/run/initialize
|
||||
|
||||
# Set a very high time threshold to allow all decays to happen
|
||||
/process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
|
||||
|
||||
##########################
|
||||
# Visualisation
|
||||
#
|
||||
/vis/open OGLI 600x600-0+0
|
||||
#/vis/open ## open the default viewer
|
||||
|
||||
# Disable auto refresh and quieten vis messages whilst scene and
|
||||
# trajectories are established:
|
||||
/vis/viewer/set/autoRefresh false
|
||||
/vis/verbose errors
|
||||
|
||||
/vis/drawVolume
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/vis/viewer/zoom 1
|
||||
/vis/viewer/pan -10 0 cm
|
||||
/vis/scene/add/trajectories smooth
|
||||
/vis/scene/endOfEventAction accumulate
|
||||
/vis/viewer/set/autoRefresh true
|
||||
/vis/verbose warnings
|
||||
#/process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
|
||||
|
||||
####################################################
|
||||
# Set here the CUT and the STEP MAX for the tracking.
|
||||
@@ -89,7 +63,6 @@
|
||||
|
||||
# the beam is travelling along the x-axis without any angular dispersion (angular despersion set to 0.0)
|
||||
#
|
||||
|
||||
/gps/ang/rot1 0 0 1
|
||||
/gps/ang/rot2 0 1 0
|
||||
/gps/ang/type beam1d
|
||||
@@ -98,8 +71,8 @@
|
||||
# the beam energy is in gaussian profile
|
||||
#
|
||||
/gps/ene/type Gauss
|
||||
/gps/ene/mono 60.0 MeV
|
||||
#/gps/ene/sigma 0.25 MeV
|
||||
/gps/ene/mono 62.3 MeV
|
||||
/gps/ene/sigma 0.25 MeV
|
||||
#/gps/ene/mono 744 MeV
|
||||
#/gps/ene/sigma 0.740 MeV
|
||||
|
||||
@@ -127,12 +100,6 @@
|
||||
/changeDetector/displacement 0 18 18 cm
|
||||
/changePhantom/update
|
||||
|
||||
#########################
|
||||
# Display the event number
|
||||
# during the run
|
||||
#
|
||||
/event/printEventNumber 100
|
||||
|
||||
#########################
|
||||
# Start of the run
|
||||
#
|
||||
@@ -140,9 +107,35 @@
|
||||
/analysis/secondary true
|
||||
/analysis/computeLet
|
||||
|
||||
|
||||
### RBE
|
||||
/rbe/verbose 2
|
||||
/rbe/loadLemTable data/rbe/lem1.csv
|
||||
/rbe/calculation 1
|
||||
/rbe/accumulate 1
|
||||
|
||||
## U87
|
||||
#/rbe/dcut 8.0 gray
|
||||
#/rbe/alphaX 0.11 gray(-1)
|
||||
#/rbe/betaX 0.06 gray(-2)
|
||||
#/rbe/lemTable data/rbe/U87_LEM.dat
|
||||
/rbe/cellLine U87
|
||||
|
||||
## AG01522
|
||||
#/rbe/dcut 9.5 gray
|
||||
#/rbe/alphaX 0.54 gray(-1)
|
||||
#/rbe/betaX 0.062 gray(-2)
|
||||
#/rbe/lemTable data/rbe/AG01522_LEM.dat
|
||||
|
||||
/rbe/doseScale 7777770
|
||||
# Dose scale should be: 2e7 / nEvents * voxelSizeInCm2
|
||||
|
||||
|
||||
# Default material is water liquid
|
||||
/changePhantom/material G4_WATER
|
||||
|
||||
/run/printProgress 1000
|
||||
/run/beamOn 1000
|
||||
/tracking/verbose 0
|
||||
/run/beamOn 500
|
||||
|
||||
# Visualization setting
|
||||
/control/execute vis.mac
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
# Macro file for the visualization setting in the initialization phase
|
||||
# of the B1 example when running in interactive mode
|
||||
#
|
||||
|
||||
# Specify a viewer, e.g., /vis/open OGL, or allow a system choice:
|
||||
/vis/open
|
||||
# This chooses a graphics system (in order of priority):
|
||||
# - by argument in G4VisExecutive construction.
|
||||
# - by environment variable, G4VIS_DEFAULT_DRIVER.
|
||||
# - by information in ~/.g4session.
|
||||
# - by mode (batch/interactive) and if interactive, by your build flags.
|
||||
# See "Choosing a graphics viewer" in the Application Guide for details.
|
||||
# For example, with environment variable G4VIS_DEFAULT_DRIVER:
|
||||
# The format is <graphics-system> [<window-size-hint>]. Set this, e.g:
|
||||
# (bash) export G4VIS_DEFAULT_DRIVER=TSG
|
||||
# (tcsh) setenv G4VIS_DEFAULT_DRIVER OI
|
||||
# or on the command line, precede the app invocation, e.g:
|
||||
# G4VIS_DEFAULT_DRIVER=Vtk ./<application-name>
|
||||
# The window-size-hint can optionally be added, e.g:
|
||||
# (bash) export G4VIS_DEFAULT_DRIVER="OGLSX 1000x1000-0+0"
|
||||
# Other suggestions for G4VIS_DEFAULT_DRIVER (see list of registered
|
||||
# graphics systems printed at the start):
|
||||
# DAWNFILE: to create a .prim file suitable for viewing in DAWN.
|
||||
# HepRepFile: to create a .heprep file suitable for viewing in HepRApp.
|
||||
# VRML2FILE: to create a .wrl file suitable for viewing in a VRML viewer.
|
||||
# "TSG_OFFSCREEN 1200x1200": to create an image file with TSG.
|
||||
# See the tsg_offscreen.mac in examples/basic/B5 for more commands
|
||||
# to change the file format, file name, picture size, etc.
|
||||
|
||||
# Disable auto refresh and quieten vis messages whilst scene and
|
||||
# trajectories are established:
|
||||
/vis/viewer/set/autoRefresh false
|
||||
/vis/verbose errors
|
||||
#
|
||||
# Draw geometry:
|
||||
/vis/drawVolume
|
||||
#
|
||||
# Specify view angle:
|
||||
/vis/viewer/set/viewpointVector -1 0 0
|
||||
/vis/viewer/set/lightsVector -1 0 0
|
||||
#
|
||||
# Specify style (surface, wireframe, auxiliary edges,...)
|
||||
/vis/viewer/set/style wireframe
|
||||
/vis/viewer/set/auxiliaryEdge true
|
||||
/vis/viewer/set/lineSegmentsPerCircle 100
|
||||
#
|
||||
# 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
|
||||
#
|
||||
# To draw only gammas:
|
||||
#/vis/filtering/trajectories/create/particleFilter
|
||||
#/vis/filtering/trajectories/particleFilter-0/add gamma
|
||||
#
|
||||
# To invert the above, drawing all particles except gammas,
|
||||
# keep the above two lines but also add:
|
||||
#/vis/filtering/trajectories/particleFilter-0/invert true
|
||||
#
|
||||
# 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 ! ! hadrontherapy
|
||||
#
|
||||
# Axes, scale, etc.
|
||||
/vis/scene/add/scale # Simple scale line
|
||||
/vis/scene/add/axes # Simple axes: x=red, y=green, z=blue.
|
||||
/vis/scene/add/eventID # Drawn at end of event
|
||||
/vis/scene/add/date # Date stamp
|
||||
#/vis/scene/add/logo2D # Simple logo
|
||||
#/vis/scene/add/logo # 3D logo
|
||||
#
|
||||
# Frame
|
||||
/vis/set/colour red
|
||||
/vis/set/lineWidth 2
|
||||
/vis/scene/add/frame # Simple frame around the view
|
||||
/vis/set/colour # Revert to default colour (white)
|
||||
/vis/set/lineWidth # Revert to default line width (1.)
|
||||
|
||||
#
|
||||
# To get nice view
|
||||
# Make the "World" box invisible
|
||||
/vis/geometry/set/visibility World 1 false
|
||||
# "Envelope" is transparent blue to represent water
|
||||
/vis/geometry/set/colour Envelope 0 0 0 1 .3
|
||||
/vis/viewer/set/style surface
|
||||
/vis/viewer/set/hiddenMarker true
|
||||
/vis/viewer/set/viewpointThetaPhi 40 120
|
||||
#
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user