topasmc / topas-docs

TOPAS Documentation
http://topas.readthedocs.org
13 stars 26 forks source link

Update misc.rst #15

Closed grzanka closed 4 years ago

grzanka commented 4 years ago

In TOPAS 3.2 it seems than two, not 3 extra bins are added.

Following configuration file block:

s:Sc/SPC_all/Quantity                  = "Fluence"
s:Sc/SPC_all/Component                 = "Phantom"
sv:Sc/SPC_all/Report = 1 "Mean"
i:Sc/SPC_all/EBins = 2000 # defaults to 1, that is, un-binned
d:Sc/SPC_all/EBinMin = 1e-15 MeV # defaults to zero
d:Sc/SPC_all/EBinMax = 72.523906 MeV # must be specified if EBins is greater than 1
s:Sc/SPC_all/EBinEnergy = "PreStep"
s:Sc/SPC_all/OutputType = "csv"

Gives CSV output like this:

# TOPAS Version: 3.2
# Parameter File: spc.txt
# Results for scorer SPC_all
# Scored in component: Phantom
# R in 1 bin  of 21 cm
# Phi in 1 bin  of 360 deg
# Z in 200 bins of 0.03 cm
# Fluence ( /mm2 ) : Mean   
# Binned by pre-step energy in 2000 bins of 0.036262 MeV from 1e-15 MeV to 72.5239 MeV
# First bin is underflow, last bin is overflow.

The same applies to the binary output. I deliberately set EBinMin to 1e-15 to avoid scoring particles with zero kinetic energy.