Skip to content

Update MainTxHead.txt #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 54 additions & 49 deletions examples/MVLinac/MainTxHead.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,46 @@
# 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.
#
# 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.
#
# 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.
#
# 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.
#
# Example prepared by KyungDon Choi, Jose Ramos Mendez and Bruce Faddegon. May 28, 2021.

# 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.
#
# 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:
# 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.
#
# 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.
#
# 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.

# Uncomment one and only one of the following four includeFile lines:
includeFile = FullTxHead.txt
#includeFile = FixedTxHead.txt
#includeFile = Field.txt
#includeFile = TestComponent.txt
#
# FullTxHead.txt
# Simulates the full treatment head, from the exit window of the waveguide
# through to the isocenter. Change gantry, collimator and couch angles and
# field size settings from defaults set in the includeFile files included
# in FullTxHead.txt. 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. Change gantry, collimator and couch
# angles and field size settings from defaults set in the includeFile files
# included in Field.txt. Scores dose distributions.
#
# TestComponent.txt
# Displays one or more of the linac components in the GUI. Change parameter
# values in the includeFile files (these contain the default values).

# 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 @@ -46,7 +51,7 @@ includeFile = FullTxHeadField.txt
# 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 @@ -59,22 +64,22 @@ includeFile = FullTxHeadField.txt
# 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/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
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
s:Ge/World/Material = "Air"
Expand Down Expand Up @@ -117,7 +122,7 @@ d:Ge/IEC_S/TransZ = 0. m
# Physics
sv:Ph/Default/Modules = 1 "g4em-standard_opt4"

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