####################################################################################################
# Geometry:
####################################################################################################
s:Ge/World/Type = "TsBox"
s:Ge/World/Material = "G4_WATER"
d:Ge/World/HLX = 5. cm 
d:Ge/World/HLY = 5. cm
d:Ge/World/HLZ = 20. cm
d:Ge/World/TransX = 0. m
d:Ge/World/TransY = 0. m
d:Ge/World/TransZ = 0. m
d:Ge/World/RotX = 0. deg
d:Ge/World/RotY = 0. deg
d:Ge/World/RotZ = 0. deg
b:Ge/World/Invisible = "True"

# Water Box with 10*10*40 cm3
s:Ge/MyBox/Type     = "TsBox"
s:Ge/MyBox/Material = "G4_WATER"
s:Ge/MyBox/Parent   = "World"
d:Ge/MyBox/HLX      = 5 cm
d:Ge/MyBox/HLY      = 5 cm
d:Ge/MyBox/HLZ      = 20 cm
d:Ge/MyBox/TransX   = 0 m
d:Ge/MyBox/TransY   = 0 m
d:Ge/MyBox/TransZ   = 0 m
d:Ge/MyBox/RotY     = 0 deg
d:Ge/MyBox/RotZ     = 0 deg
s:Ge/MyBox/Color   = "skyblue"
#s:Ge/MyBox/DrawingStyle   = "solid"

####################################################################################################
# Source:
####################################################################################################
s:So/MySource/Type                     = "Beam"
s:So/MySource/Component                = "BeamPosition"
s:So/MySource/BeamParticle             = "proton"
d:So/MySource/BeamEnergy               = 190 MeV
u:So/MySource/BeamEnergySpread         = 0.757504
s:So/MySource/BeamPositionDistribution = "Gaussian"
s:So/MySource/BeamPositionCutoffShape  = "Ellipse"
d:So/MySource/BeamPositionCutoffX      = 10. cm
d:So/MySource/BeamPositionCutoffY      = 10. cm
d:So/MySource/BeamPositionSpreadX      = 0.65 cm
d:So/MySource/BeamPositionSpreadY      = 0.65 cm
s:So/MySource/BeamAngularDistribution  = "None"
i:So/MySource/NumberOfHistoriesInRun   = 100  

s:Ge/BeamPosition/Parent = "World"
s:Ge/BeamPosition/Type = "Group"
d:Ge/BeamPosition/TransX = 0. m
d:Ge/BeamPosition/TransY = 0. m
d:Ge/BeamPosition/TransZ = Ge/MyBox/HLZ cm
d:Ge/BeamPosition/RotX = 180. deg
d:Ge/BeamPosition/RotY = 0. deg
d:Ge/BeamPosition/RotZ = 0. deg

####################################################################################################
# Scorer:
####################################################################################################
s:Sc/DoseAtPhantom/Quantity = "DoseToMedium"
s:Sc/DoseAtPhantom/Component = "MyBox"
s:Sc/DoseAtPhantom/IfOutputFileAlreadyExists = "Overwrite"
b:Sc/DoseAtPhantom/OutputToConsole = "False"
i:Sc/DoseAtPhantom/ZBins = 80
s:Sc/DoseAtPhantom/OutputFile          = "Dose_190MeV"
# Rotate Phantom so that the bin numbered 0 will be the
# first bin hit.
d:Ge/MyBox/RotX = 180. deg

####################################################################################################
# Physics:
####################################################################################################
s:Ph/ListName               = "MyPhysics"
sv:Ph/MyPhysics/Modules     = 1 "g4em-livermore"
s:Ph/MyPhysics/Type         = "Geant4_Modular"
d:Ph/MyPhysics/SetProductionCutLowerEdge = 100 eV
d:Ph/MyPhysics/CutForGamma           = 5 um             # overrides CutForAllParticles for Gamma
d:Ph/MyPhysics/CutForElectron        = 5 um              # overrides CutForAllParticles for Electron
b:Ph/MyPhysics/Fluorescence          = "True"           # Set to true to turn on Fluorescence
b:Ph/MyPhysics/Auger                 = "True"           # Set to true to turn on Auger
b:Ph/MyPhysics/AugerCascade          = "True"           # Set to true to turn on AugerCascade
b:Ph/MyPhysics/DeexcitationIgnoreCut = "True"           # Set to true to implement DeexcitationIgnoreCut
b:Ph/MyPhysics/PIXE                  = "True"           # Set to true to turn on PIXE

####################################################################################################
# Visualization:
####################################################################################################
s:Gr/ViewA/Type             = "OpenGL"
s:Gr/ViewA/BackgroundColor  = "white"
b:Gr/ViewA/Active           = "true"
i:Gr/ViewA/WindowSizeX      = 1024
i:Gr/ViewA/WindowSizeY      = 768
b:Gr/ViewA/IncludeAxes      = "True" 
d:Gr/ViewA/AxesSize         = 30. cm # size of axes
d:Gr/ViewA/Theta            = 55 deg
d:Gr/ViewA/Phi              = 20 deg
s:Gr/ViewA/Projection       = "Perspective"
d:Gr/ViewA/PerspectiveAngle = 30 deg
u:Gr/ViewA/Zoom             = 1.
b:Gr/ViewA/IncludeGeometry = "True" # defaults to "True"
b:Gr/ViewA/IncludeTrajectories = "True" # defaults to "True"
b:Gr/ViewA/CopyOpenGLToPDF = "True" # save to PDF"

Ts/UseQt = "true"
####################################################################################################
# General Parameters:
####################################################################################################
i:Ts/ShowHistoryCountAtInterval = 10
b:Ts/PauseBeforeQuit = "true"