-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a133f42
commit eba44e1
Showing
21 changed files
with
683 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _example_basic_emittance_gaussian: | ||
|
||
Emittance_Gaussian.txt | ||
---------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _example_basic_emittance_twiss: | ||
|
||
Emittance_Twiss.txt | ||
------------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _example_basic_spectrum: | ||
|
||
Spectrum.txt | ||
------------ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _example_phsp_ascii_write: | ||
|
||
WriteASCII.txt | ||
-------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _example_phsp_binary_write: | ||
|
||
WriteBinary.txt | ||
--------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _example_phsp_limited_write: | ||
|
||
WriteLimited.txt | ||
---------------- | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ Physics | |
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
intro | ||
modular | ||
reference | ||
optical | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Introduction | ||
------------ | ||
|
||
In Geant4, physics options are set in pieces of code called "Physics Lists". A physics list specifies what particles and physics processes are defined, plus various cuts and options. | ||
By default, we set TOPAS physics to a list that has been shown to work well for proton therapy research at the Massachusetts General Hospital. This list includes models that handle not only protons but also all secondary particles (neutrons, helium ions, deuterons, tritons, photons, electrons, etc.). The default gives results that closely match a previous custom list that was described in: | ||
|
||
* C. Zacharatou Jarlskog and H. Paganetti, "Physics settings for using the Geant4 toolkit in proton therapy," IEEE Trans. Nucl. Sci. 55, 1018-1025 (2008) | ||
|
||
but which can no longer be used since that list corresponded to a much earlier Geant4 release. | ||
|
||
Advanced users can set their own parameters to override some of these default settings, or can specify entirely different physics lists. | ||
|
||
You can choose from two general types of physics lists: | ||
|
||
* "Reference" physics lists are pre-made, complete lists provided by Geant4. | ||
* "Modular" physics lists are lists where you mix and match a set of modules to create a customized complete list. | ||
|
||
You can also provide your own physics list (not recommended unless you have significant Geant4 expertise). | ||
|
||
You can get a list of what processes are in your currently selected physics list by:: | ||
|
||
b:Ph/ListProcesses = "True" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,112 @@ | ||
.. _physics_modular: | ||
|
||
Modular Physics Lists | ||
--------------------- | ||
|
||
The default list we provide is a Modular physics list. It is specified by the following parameters that are set for you by default:: | ||
|
||
s:Ph/ListName = "Default" | ||
s:Ph/Default/Type= "Geant4_Modular" | ||
sv:Ph/Default/Modules = 6 "g4em-standard_opt4" "g4h-phy_QGSP_BIC_HP" "g4decay" "g4ion-binarycascade" "g4h-elastic_HP" "g4stopping" | ||
d:Ph/Default/EMRangeMin = 100. eV # See note below on recommended values | ||
d:Ph/Default/EMRangeMax = 500. MeV | ||
i:Ph/Default/dEdXBins = 220 | ||
i:Ph/Default/LambdaBins = 220 | ||
|
||
The Geant4 EM physics group recommends against setting EMRangeMin too low: | ||
|
||
* Set to 100. eV or greater when using standard Geant4 EM physics | ||
* Set to 10. eV or greater when using Geant4-DNA physics | ||
|
||
If you want to run with no physics, but only the transportation process (useful for some demos and tests), specify the modules in the following special way:: | ||
|
||
sv:Ph/Default/Modules = 1 "Transportation_Only" | ||
|
||
The full list of module names and the corresponding Geant4 class names are shown in the table at the end of this section. | ||
|
||
The remaining options for Geant4_Modular are:: | ||
|
||
d:Ph/Default/CutForAllParticles = 0.05 mm # single range cut to use for all particles | ||
d:Ph/Default/CutForGamma = 0.05 mm # overrides CutForAllParticles for Gamma | ||
d:Ph/Default/CutForElectron = 0.05 mm # overrides CutForAllParticles for Electron | ||
d:Ph/Default/CutForPositron = 0.05 mm # overrides CutForAllParticles for Positron | ||
d:Ph/Default/CutForProton = 0.05 mm # overrides CutForAllParticles for Proton | ||
d:Ph/Default/CutForAlpha = 0.05 mm # overrides CutForAllParticles for Alpha | ||
d:Ph/Default/CutForDeuteron = 0.05 mm # overrides CutForAllParticles for Deuteron | ||
d:Ph/Default/CutForTriton = 0.05 mm # overrides CutForAllParticles for Triton | ||
d:Ph/Default/EMRangeMin = 100. eV # minimum for EM tables | ||
d:Ph/Default/EMRangeMax = 300. MeV # maximum for EM tables | ||
i:Ph/Default/dEdXBins = 220 # number of bins for dEdX tables | ||
i:Ph/Default/LambdaBins = 220 # number of Lambda bins | ||
b:Ph/Default/Fluorescence = "False" # Set to true to turn on Fluorescence | ||
b:Ph/Default/Auger = "False" # Set to true to turn on Auger | ||
b:Ph/Default/PIXE = "False" # Set to true to turn on PIXE | ||
|
||
By default, cuts affect the entire world, but you can optionally divide the world into several regions and can specify different cuts in each region. First, specify which components belong to a given region:: | ||
|
||
s:Ge/MyComponent/AssignToRegionNamed = “MyRegion” | ||
|
||
* All children of this component will also be assigned to that region, unless the child has its own "AssignToRegionNamed" parameter. | ||
* There is no requirement that all of the components in a given region be contiguous. | ||
|
||
Then assign cuts per region by including the region name in the parameter name as in:: | ||
|
||
d:Ph/Default/ForRegion/MyRegion/CutForGamma = 0.05 mm | ||
d:Ph/Default/ForRegion/MyRegion/CutForElectron = 0.05 mm | ||
d:Ph/Default/ForRegion/MyRegion/CutForPositron = 0.05 mm | ||
d:Ph/Default/ForRegion/MyRegion/CutForProton = 0.05 mm | ||
|
||
Cuts do not affect all processes, but only those listed below: | ||
|
||
* Energy thresholds for gamma are used in Bremsstrahlung | ||
* Energy thresholds for electrons are used in ionization and e+e- pair production processes Energy thresholds for positrons are used in e+e- pair production process | ||
* Energy thresholds for gamma and electrons are used optionally in all discrete processes | ||
* Photoelectriceffect | ||
* Compton | ||
* gamma conversion | ||
* Energy thresholds for protons are used in processes of elastic scattering for hadrons and ions defining the threshold for kinetic energy of nuclear recoil | ||
|
||
========================== =========================== | ||
TOPAS Module Name Geant4 Class Name | ||
========================== =========================== | ||
g4h-chargeexchange G4ChargeExchangePhysics | ||
g4decay G4DecayPhysics | ||
g4em-dna G4EmDNAPhysics | ||
g4em-extra G4EmExtraPhysics | ||
g4em-livermore G4EmLivermorePhysics | ||
g4em-polarized G4EmLivermorePolarizedPhysics | ||
g4em-lowep G4EmLowEPPhysics | ||
g4em-penelope G4EmPenelopePhysics | ||
g4em-standard_opt0 G4EmStandardPhysics | ||
g4em-standard_opt1 G4EMStandardPhysics_option1 | ||
g4em-standard_opt2 G4EMStandardPhysics_option2 | ||
g4em-standard_opt3 G4EMStandardPhysics_option3 | ||
g4em-standard_opt4 G4EMStandardPhysics_option4 | ||
g4em-standard_WVI G4EmStandardPhysicsWVI | ||
g4h-elastic_D G4HadronDElasticPhysics | ||
g4h-elastic G4HadronElasticPhysics | ||
g4h-elastic_HP G4HadronElasticPhysicsHP | ||
g4h-elastic_LEND G4HadronElasticPhysicsLEND | ||
g4h-elastic_XS G4HadronElasticPhysicsXS | ||
g4h-elastic_H G4HadronHElasticPhysics | ||
g4h-inelastic_QBBC G4HadronInelasticQBBC | ||
g4h-phy_FTFP_BERT HadronPhysicsFTFP_BERT | ||
g4h-phy_FTFP_BERT_HP HadronPhysicsFTFP_BERT_HP | ||
g4h-phy_FTFP_BERT_TRV HadronPhysicsFTFP_BERT_TRV | ||
g4h-phy_FTF_BIC HadronPhysicsFTF_BIC | ||
g4h-phy_QGSP_BERT HadronPhysicsQGSP_BERT | ||
g4h-phy_QGSP_BERT_HP HadronPhysicsQGSP_BERT_HP | ||
g4h-phy_QGSP_BIC HadronPhysicsQGSP_BIC | ||
g4h-phy_QGSP_BIC_HP HadronPhysicsQGSP_BIC_HP | ||
g4h-phy_QGSP_FTFP_BERT HadronPhysicsQGSP_FTFP_BERT | ||
g4h-phy_QGS_BIC HadronPhysicsQGS_BIC | ||
g4h-phy_Shielding HadronPhysicsShielding | ||
g4ion-binarycascade G4IonBinaryCascadePhysics | ||
g4ion-inclxx G4IonINCLXXPhysics | ||
g4ion G4IonPhysics | ||
g4ion-QMD G4IonQMDPhysics | ||
g4n-trackingcut G4NeutronTrackingCut | ||
g4optical G4OpticalPhysics | ||
g4radioactivedecay G4RadioactiveDecayPhysics | ||
g4stopping G4StoppingPhysics | ||
========================== =========================== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,19 @@ | ||
.. _physics_reference: | ||
|
||
Reference Physics Lists | ||
----------------------- | ||
|
||
Reference physics lists are pre-made, complete lists provided by Geant4. | ||
|
||
One complication with reference lists is that they do not support use of Parallel Worlds. This means that you cannot place components into a parallel world, and, for the dividable components (TsBox, TsCylinder and TsSphere), you cannot score with a different set of divisions than you have set for the component itself (we handle such complex scoring by creating parallel worlds). TOPAS will give an error if you attempt to use a reference list in a situation where parallel worlds are needed. In such situations, use Geant4_Modular as described below. | ||
|
||
The names of the reference physics lists, and their detailed descriptions, are `here | ||
<http://geant4.web.cern.ch/geant4/support/proc_mod_catalog/physics_lists/referencePL.shtml>`_. | ||
|
||
To use a reference physics list, specify the list name in the Type parameter, such as:: | ||
|
||
s:Ph/Default/Type = "QGSP_BERT_HP" | ||
|
||
Reference physics lists allow only one additional option:: | ||
|
||
d:Ph/Default/CutForAllParticles = 0.05 mm # single range cut to use for all particles |
Oops, something went wrong.