Skip to content

Commit

Permalink
Update MainTxHead.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jiperl committed Jul 14, 2021
1 parent d5e5389 commit 96f07db
Showing 1 changed file with 78 additions and 78 deletions.
156 changes: 78 additions & 78 deletions examples/MVLinac/MainTxHead.txt
Original file line number Diff line number Diff line change
@@ -1,30 +1,41 @@
# This is the top-level TOPAS parameter control file used to simulate a linear accelerator treatment head. The linac in this example is modeled after a Siemens Oncor machine. The exit window, target and monitor chamber are from Jabbari et al, "Monte Carlo simulation of Siemens ONCOR linear accelerator with BEAMnrc and DOSXYnrc code," J Med Signals & Sensors, 3(3):172-9, 2013. The source details and the rest of the geometry are from Sawkey and Faddegon, "Simulation of large x-ray fields using independently measured source and geometry details," Med Phys 36(12):5622-32 and references therein.

# This example was prepared by KyungDon Choi, Jose Ramos Mendez and Bruce Faddegon.
# February 19, 2021.

############ Parameter control files for full, fixed, and field simulations ###########
# Select one of the following includeFile files, used to set field specific parameters.
# Note: Treatment head components are positioned at distance from source according to SAD.
# This is the top-level TOPAS parameter control file used to simulate a linear
# accelerator treatment head. The linac is modeled after a Siemens Oncor machine.
#
# There are three options, chosen by including one and only one of the includeFile lines.
# 1. FullTxHeadField.txt: Simulates the full treatment head, from the exit window of the waveguide through to the isocenter - no scoring is done.
# 2. FixedTxHead.txt: Simulates the fixed components of the treatment head from the exit window to just upstream of the jaws.
# 3. Field.txt: Simulated the movable components of the treatment head, including Gantry and collimator angle, and jaw and MLC leaf settings.
# The exit window, target and monitor chamber are largely from Jabbari et al,
# "Monte Carlo simulation of Siemens ONCOR linear accelerator with BEAMnrc and
# DOSXYnrc code," J Med Signals & Sensors, 3(3):172-9, 2013.
#
# Comment out two of the three includeFile lines below, leaving only one line uncommented.
# The water channel thickness in the exit window, source details and the rest
# of the geometry are from Sawkey and Faddegon, "Simulation of large x-ray fields
# using independently measured source and geometry details," Med Phys 36(12):5622-32
# and references therein, supplemented with direct measurement.
#
#######################################################################################

includeFile = FullTxHeadField.txt #Full treatment head
#includeFile = FixedTxHead.txt #Fixed components of treatment head, score phase-space
#includeFile = Field.txt #Field-dependent variables, score dose distributions
# Treatment head components are positioned at distance from source according to SAD.
#
# Example prepared by KyungDon Choi, Jose Ramos Mendez and Bruce Faddegon. May 28, 2021.

#################### Parameter Control Files - Default Parameters ####################
# These parameter control files are used to set default linac parameters:
# MainTxHead.txt: Graphics, coordinate systems, basic simulation parameters, includeFiles
# Uncomment one and only one of the following four includeFile lines:
includeFile = FullTxHeadField.txt
#includeFile = FixedTxHead.txt
#includeFile = Field.txt
#includeFile = TestComponent.txt
#
# FullTxHeadField.txt
# Simulates the full treatment head, from the exit window of the waveguide
# through to the isocenter. Does not contain any scoring.
#
# FixedTxHead.txt
# Simulates the fixed components of the treatment head from the exit window
# to just upstream of the jaws. Scores phase space.
#
# Field.txt
# Simulates the movable components of the treatment head, including Gantry,
# collimator angle, jaw and MLC leaves. Scores dose distributions.
#
# Some or all of the following files is an includeFile in the above includeFile:
# TestComponent.txt
# Displays one or more of the linac components in the GUI.

# The above four includeFiles in turn include one or more of the following:
# Target.txt: Exit window and target
# Flattener.txt: Primary collimator and flattening filter
# Monitor.txt: Monitor chamber
Expand All @@ -34,10 +45,8 @@ includeFile = FullTxHeadField.txt #Full treatment head
# WaterPhantom.txt: Voxelized water phantom for scoring dose distributions
# Pelvis.txt: DICOM pelvic phantom
# LinacDefaults.txt: Default field and patient specific parameters
#
######################################################################################

############################# Parameter Descriptions #################################
# Parameter Descriptions
# IEC 61217 co-ordinates are used in this example. See the TOPAS user guide for details
# Axis names Xa, Ya, Za, rotation angles RotXa, RotYa, RotZa "a" from IEC as follows:
# Fixed system IEC_F, parent Geant4 world - e.g. Xf; (Xf,Yf,Zf) is world (-Z,-X,Y)
Expand All @@ -50,76 +59,67 @@ includeFile = FullTxHeadField.txt #Full treatment head
# HLX/Y/Z: half length of X/Y/Z axes
# TransX/Y/Z: translation of X/Y/Z axes relative to co-ordinates of parent
# RotX/Y/Z: rotation of X/Y/Z axes relative to co-ordinates of parent
######################################################################################

# The parameters in this TOPAS control file need not be changed.
# Parameters the user may wish to adjust are in the includeFile included above.

# Graphics
iv:Gr/Color/TransparentRed = 4 255 0 255 200
iv:Gr/Color/TransparentBlue = 4 0 0 255 200

#
s:Gr/view/Type = "OpenGl"
i:Gr/view/WindowSizeX = 1400
i:Gr/view/WindowSizeY = 700
u:Gr/view/Zoom = 1.0
d:Gr/view/Theta = 89 deg
d:Gr/view/Phi = -90 deg
b:Gr/view/IncludeAxes = "True"
d:Gr/view/AxesSize = 10 cm
iv:Gr/Color/TransparentRed = 4 255 0 255 200
iv:Gr/Color/TransparentBlue = 4 0 0 255 200

s:Gr/ViewA/Type = "OpenGL"
i:Gr/ViewA/WindowSizeX = 1400
i:Gr/ViewA/WindowSizeY = 700
u:Gr/ViewA/Zoom = 1.0
d:Gr/ViewA/Theta = 89 deg
d:Gr/ViewA/Phi = -90 deg
b:Gr/ViewA/IncludeAxes = "True"
d:Gr/ViewA/AxesSize = 10 cm

# Geometry
b:Ge/CheckForOverlaps = "True"
b:Ge/CheckForOverlaps = "True"

s:Ge/World/Material = "Air"
d:Ge/World/HLX = 1.25 m
d:Ge/World/HLY = 1.25 m
d:Ge/World/HLZ = 1.25 m
b:Ge/World/Invisible = "True"
s:Ge/World/Material = "Air"
d:Ge/World/HLX = 1.25 m
d:Ge/World/HLY = 1.25 m
d:Ge/World/HLZ = 1.25 m
b:Ge/World/Invisible = "True"

# Fixed system IEC_F, parent Geant4 world - e.g. Xf; (Xf,Yf,Zf) is world (-Z,-X,Y)
s:Ge/IEC_F/Parent = "World"
s:Ge/IEC_F/Type = "Group"
d:Ge/IEC_F/TransX = 0.0 cm
d:Ge/IEC_F/TransY = 0.0 cm
d:Ge/IEC_F/TransZ = 0.0 cm
d:Ge/IEC_F/RotX = 0.0 deg
d:Ge/IEC_F/RotY = 0.0 deg
d:Ge/IEC_F/RotZ = 0.0 deg
# Fixed system IEC_F, parent Geant4 world - e.g. Xf; (Xf,Yf,Zf) is world (X,Y,Z)
s:Ge/IEC_F/Parent = "World"
s:Ge/IEC_F/Type = "Group"
d:Ge/IEC_F/TransX = 0.0 cm
d:Ge/IEC_F/TransY = 0.0 cm
d:Ge/IEC_F/TransZ = 0.0 cm

# Gantry system IEC_G, parent IEC_F - e.g. Xg; Gantry rotates about Yg by IEC_G/RotY
# Gantry rotation, if any, is applied in the includeFile (see above)
s:Ge/IEC_G/Parent = "IEC_F"
s:Ge/IEC_G/Type = "Group"
d:Ge/IEC_G/TransX = 0. m
d:Ge/IEC_G/TransY = 0. m
d:Ge/IEC_G/TransZ = 0. m
s:Ge/IEC_G/Parent = "IEC_F"
s:Ge/IEC_G/Type = "Group"
d:Ge/IEC_G/TransX = 0. m
d:Ge/IEC_G/TransY = 0. m
d:Ge/IEC_G/TransZ = 0. m

# Beam limiting system IEC_B, parent IEC_G - e.g. Xb; Collimator rotates about Zb by IEC_B/RotZ
# Collimator rotation, if any, is applied in the includeFile (see above)
s:Ge/IEC_B/Parent = "IEC_G"
s:Ge/IEC_B/Type = "Group"
d:Ge/IEC_B/TransX = 0. m
d:Ge/IEC_B/TransY = 0. m
d:Ge/IEC_B/TransZ = 0. m
s:Ge/IEC_B/Parent = "IEC_G"
s:Ge/IEC_B/Type = "Group"
d:Ge/IEC_B/TransX = 0. m
d:Ge/IEC_B/TransY = 0. m
d:Ge/IEC_B/TransZ = 0. m

# Patient support system (couch) IEC_S, parent IEC_F - couch rotates by RotZs
# Couch rotation, if any, is applied in the includeFile (see above)
s:Ge/IEC_S/Parent = "IEC_F"
s:Ge/IEC_S/Type = "Group"
d:Ge/IEC_S/TransX = 0. m
d:Ge/IEC_S/TransY = 0. m
d:Ge/IEC_S/TransZ = 0. m
s:Ge/IEC_S/Parent = "IEC_F"
s:Ge/IEC_S/Type = "Group"
d:Ge/IEC_S/TransX = 0. m
d:Ge/IEC_S/TransY = 0. m
d:Ge/IEC_S/TransZ = 0. m

# Physics
sv:Ph/Default/Modules = 1 "g4em-standard_opt4"

s:Gr/ViewA/AxesComponent = "World"
b:Gr/ViewA/IncludeAxes = "true"
d:Gr/ViewA/AxesSize = 30.0 cm
u:Gr/ViewA/Zoom = 1.5
sv:Ph/Default/Modules = 1 "g4em-standard_opt4"

# Additional TOPAS parameters
Ts/NumberOfThreads = 0 #Uses maximum number of threads
b:Ts/ShowCPUTime = "True"
b:Ts/PauseBeforeQuit = Gr/Enable
# Overall TOPAS control
Ts/NumberOfThreads = 1 # Change to 0 to use all available threads
b:Ts/ShowCPUTime = "True"
b:Ts/PauseBeforeQuit = Gr/Enable

0 comments on commit 96f07db

Please sign in to comment.