Professional Documents
Culture Documents
TOPAS Wollongong 20170920a
TOPAS Wollongong 20170920a
Work supported by the U.S National Institutes of Health under contract numbers 1R01CA140735-01 & 2R01CA140735-05
and by TOPAS MC Inc
Tool for Particle Simulation
4D 100s of users in
academic research
& industry
world wide
Fully Multithreaded!
20 September 2017 TOPAS J. Perl 2
TOPAS User
Application Parameter File
( C++ ) ( text file )
Uses and Extends provides user's
Geant4 for Radiation customization of
Therapy simulation parameters
Other Other
Parameter Files Parameter Files
( text file ) ( text file )
additional simulation additional simulation
parameters parameters
Other
Geant4 Parameter Files
Simulation ( text file )
additional simulation
Toolkit parameters
( C++ )
Standard Geant4 Geant4 Data
Files etc.
Standard Geant4 parameter file
Physics Cross- hierarchy may be
Section Data Files arbitrarily complex
What was different from one of those examples to the next was what set
of “parameter files” that drove it.
Ge/World/Invisible = “True”
Ge/Phantom2/NumberOfVoxelsX = 2
Ge/BigBox/HLX = 4. m
Gr/View1/Zoom = 2.5
b:Ge/World/Invisible = “True”
i:Ge/Phantom2/NumberOfVoxelsX = 2
d:Ge/BigBox/HLX = 4. m
u:Gr/View1/Zoom = 2.5
b:Ge/World/Invisible = “True”
i:Ge/Phantom2/NumberOfVoxelsX = 2
d:Ge/BigBox/HLX = 4. m
u:Gr/View1/Zoom = 2.5
b:Ge/World/Invisible = “True”
Line
orde
i:Ge/Phantom2/NumberOfVoxelsX = 2 r do
esn
’t m
atte
d:Ge/BigBox/HLX = 4. m r
u:Gr/View1/Zoom = 2.5
Nozzle
Definition
Default File
Basic definitions
Gantry 1 Gantry 2
Nozzle details Nozzle details
Nozzle
Definition
Default File
Basic definitions
Patient or Phantom
CT file names, etc.
Gantry 1 Gantry 2
Nozzle details Nozzle details
General Patient
handling parameters,
HU conv. tables, etc. Nozzle
Definition
Default File
Basic definitions
General Patient
handling parameters, Flat Panel Imager
HU conv. tables, etc. Nozzle Definition
Definition
Default File
Basic definitions
General Patient
handling parameters, Flat Panel Imager
HU conv. tables, etc. Nozzle Definition
Definition
Vendor confidential
information is nicely
Default File encapsulated into
Basic definitions distinct parameter files
General Patient
handling parameters, Flat Panel Imager
HU conv. tables, etc. Nozzle Definition
Definition
Vendor confidential
information is nicely
Default File encapsulated into
Basic definitions distinct parameter files
0-
Difference
Specialized Components
compensator
aperture
range mod wheel
wire chamber
propeller
patient
group
Parameterized source
Twiss source
Filter by
particle type,
energy,
creator process,
origin volume,
ancestor attributes,
etc.
4D in motion
4D in component size
4D in magnetic and electric fields
4D in source position, characteristics and beam current
4D in VR, splitting planes, directional biasing, etc.
4D in scoring
4D in visualization
d:Ge/Magnet/Strength
= 0.2 T
d:Ge/Magnet/Strength
= Tf/Field/Value T
s:Tf/Field/Function = "Sine"
d:Tf/Field/StartTime =0.0 ms
d:Tf/Field/EndTime =100.0 ms
d:Tf/Field/Rate = 0.1 T/ms
d:Tf/Field/StartValue = 0.0 T
+
20 September 2017 TOPAS J. Perl 39
Tracking a Moving Target
+
20 September 2017 TOPAS J. Perl 40
Depth
Motion
Tracking
Dose distribution
Mean position of
protons every 0.5 ms
0-
Difference
0 -5
Gy
10 beams (6 directions + 4 boost)
Head and Neck Study - DVH (Absolute)
ctv-primary - TOPAS
ctv-primary - TPS
ctv-combined - TOPAS
ctv-combined - TPS
RT Parotid - TOPAS
RT Parotid - TPS
LT Parotid - TOPAS
LT Parotid - TPS
Variance Reduction
Geometrical Splitting, Directional Splitting,
Importance Sampling, Weight Window,
We seek public & private funding to make TOPAS free for all non-profit users.
We hope to eventually become Open Source.
But for now we thrive and provide excellent user support by charging license fees.
Introduction
Monte Carlo particle transport (MC) simulation codes have become important tools in proton therapy
and biology, both for research and practice. TOPAS [1] is an MC software layered upon the Geant4
general-purpose toolkit, designed specifically for medical physics applications. It serves users worldwide
(224 licensed users at 98 institutions in 22 countries).
Main features:
§ reproducible simulations configured by user-friendly parameter files
§ geometry components, electromagnetic fields, particle sources and scorers are positioned in space
§ their parameters can be changed in time (e.g. a rotating modulator wheel, moving MLC leaves)
§ other settings are also available (e.g. graphics, physics, variance reduction)
§ a versatile extension system enables users to add new features as needed
Quality control (QC) of stochastic simulation software is inherently difficult, and the versatility of
TOPAS introduces additional challenges. But QC is vital as the TOPAS development team implements
new features, addresses user feedback and reacts to upgrades of the underlying software (i.e. Geant4). Figure 1. The MGH double scattering Figure 2. Parameter file demonstrating how to
treatment nozzle simulated in TOPAS. score the Bragg peak of a 150 MeV proton beam.
Once TOPAS is built, 67 separate module tests are executed to check that various components are functioning. The
results of these tests are then quantitatively compared to those of the latest stable version. If any test fails, a
notification email is sent to the developer responsible for the change. Code coverage statistics highlight untested
portions of code and guide the development of new tests.
AAPM 2016 poster on Quality Control
Continuous integration and testing has proven effective in catching regressions at the time they are introduced. For
by David Hall et. al.
example, implementing a new feature that requires code refactoring might accidentally break a different feature
elsewhere. Automated testing on multiple operating systems is also important, since developers often only test
changes locally before committing. Figure 3. The TOPAS continuous integration dashboard.
20 September 2017 TOPAS J. Perl 57
ReadTheDocs Documentation System
TsExtension
Manager
We provide as skeleton.
User adds lines to call their
C++ extensions
TsV
Scorer
TsParameter
Manager
Allows User Extensions to
exploit the TOPAS
Parameter Control System
20 September 2017 TOPAS J. Perl 63
20 September 2017 TOPAS J. Perl 64
20 September 2017 TOPAS J. Perl 65
• moving from the macro scale to the organ and cellular scale
nBio
• building in outcome models
• building in organ and cellular effect models, LET, RBE
• Geant4-DNA
• a multi-scale platform How can Geant4-DNA model
radiation biology ?
• not just for physicists but
4
Physicochemistry/chemistry stage
• Radical species production
• Diffusion
• Mutual interactions
Geometry stage
DNA strands, chromatin fibres, chromosomes, whole cell nucleus, cells…
for the prediction of damages resulting from direct and indirect hits
Purpose Results
Understanding how ionizing radiation Users interact with TOPAS-nBio through easy-to-use input parameter files and can design complex
radiobiology experiments. A comprehensive library of biological geometries have been developed for the
interacts with cells is vital for improving and
toolkit.
developing new cancer radiotherapies. A full
A. Cell: TOPAS-nBio offers users an assortment of cell shapes and sizes, including irregularly shaped
description of the biological radiation
cells (e.g., fibroblasts). Users also have the option of adding organelles to the cell (e.g., cell
response requires detailed knowledge of not nucleus, mitochondria).
only the physical interactions within a B. Nucleus: DNA is the primary target of radiation damage. Damage to DNA from radiation in the form
realistic cell geometry, but also an accurate of strand breaks and complex lesions is highly dependent on the folding hierarchy of the genome.
description of the radiochemical reactions Two models of chromosome territories are provided: a box model and a fractal walk model. Each
and biological processes initiated. territory is comprised of chromosome fibers arranged in either a “flower” geometry or fractal loops.
Each fiber further consists of a DNA double helix wrapped around histone proteins.
Computational radiobiology offers a
C. Molecule: TOPAS-nBio provides users with an interface with which to read protein database (PDB)
powerful tool for quantitatively investigating
files, to allow simulation of radiation damage to nucleic acids and protein molecules. It also provides
the radiation interactions within the cell. models of plasmids and other simple DNA strand models.
Current codes, however, generally require D. Neuron: TOPAS-nBio has the ability to read in geometry files from the extensive NeuroMorpho.org
advanced programming skills. Here we database, giving users the capability of simulating over 50000 different types of neurons. Since
present a new simulation tool, TOPAS-nBio, radiation damage to synapses may contribute to cognitive dysfunction, as observed in rodents,
that gives non-experts the ability to easily TOPAS-nBio also include several dendritic spine models.
develop radiobiology models. Spherical lymphocyte with cell Mitochondrion with spherical
nucleus (blue) and mitochondrial DNA (purple)
mitochondria (green). Proton and gold nanoparticles on the
track is shown in yellow. membrane. Proton track is
shown in yellow.
Nucleus
nBio, extends TOPAS to
help bridge the gap
Nucleus with chromosome fibers arranged
PAS-nBio utilizes the in a fractal pattern to mimic chromosome
Chromosome loops in “flower” Chromosome fiber with double helix (yellow
territories (colored regions). Nucleus with chromosome territories.
arrangement. and black) wrapped around histones (blue).
f Geant4-DNA to model
ll (e.g. DNA strand
and molecular Molecules from the protein data bank (PDB) with atom
type represented by color.
the toolkit, since
Dinucleosome
Molecule
36O
dependent on the
0.34 nm
1 nm
2.3
RNA 1 nm
cells and organelles) to 2.37 nm
Circular plasmid model. Base pairs are shown in yellow
Simple DNA strand. Left: single
strand, right: double stand.
and sugar phosphate backbone in red and blue.
g., DNA and proteins).
Neuron
Spiny dendrite model
Neuron with soma with mushroom (red),
(red), axon (green), Mushroom spine
stubby (yellow) and
dendrites (blue and geometry with
thin (blue) spines as
yellow). Geometry ribosomes (black).
well as mitochondria
ers with a from NeuroMorpho
database.
(green). Proton track
20 September 2017 TOPAS shown in blue. J. Perl 69
arlo simulation tool
Tool for
Particle Simulation
To use Monte Carlo transport for radiation therapy research in the past, one had
to be both an expert in Monte Carlo and an expert in medical physics.
With TOPAS, it is sufficient to be an expert in medical physics or biology
Thank
You
NIH !!!!