/gamos/setParam GmReadPhantomGeometry:FileName ../exercise2/linac.geom
/gamos/setParam GmSimplePhantomGeometry:MaterialNames G4_WATER G4_LUNG_ICRP G4_BONE_COMPACT_ICRU
/gamos/setParam GmSimplePhantomGeometry:MaterialZVoxels 10 10 80
/gamos/setParam GmSimplePhantomGeometry:MaterialDensities 1. 0.3 1.85
/gamos/setParam GmSimplePhantomGeometry:NVoxels 10 10 100
/gamos/setParam GmSimplePhantomGeometry:PhantomDims -500 500 -500 500 -500 500
/gamos/setParam GmReadPhantomGeometry:InitialDisplacement 0. 0. 1400.
/gamos/setParam GmReadPhantomGeometry:InitialRotAngles 0*deg 0. 0.
/gamos/geometry GmSimplePhantomGeometry

/gamos/physicsList GmPSEMPhysics
/gamos/setParam GmParticleSplittingProcess:NSplit 10
/gamos/setParam GmPSZPlaneDirChecker:ZPos 90.*cm
/gamos/GmPhysics/addPhysics electron-lowener-UBS
/gamos/GmPhysics/addPhysics positron-standard-UBS
/gamos/GmPhysics/addPhysics gamma-standard

/gamos/generator GmGenerator

/gamos/setParam GmAnalysisMgr:FileNameSuffix UBS
/gamos/setParam RTPhaseSpaceUA:FileName testUBS
/gamos/setParam RTPhaseSpaceUA:ZStops 899
/gamos/setParam RTPhaseSpaceUA:KillAfterLastZStop 1
/gamos/userAction RTPhaseSpaceUA 

/gamos/userAction GmCountTracksUA

/run/initialize

/gamos/generator/addSingleParticleSource source e- 6.*MeV
/gamos/generator/directionDist source GmGenerDistDirectionConst 0. 0. 1.

/run/beamOn 100000
