Skip to content
Snippets Groups Projects
Forked from Chad Lantz / zdcLG
This fork has diverged from the upstream repository.
beam.mac 1.20 KiB
#----- Set the beam energy profile -----
/gps/particle opticalphoton
/gps/ene/type Gauss
/gps/ene/mono 4.75 eV
/gps/ene/sigma 10 eV
/gps/ene/min 1.9 eV
/gps/ene/max 7.6 eV
/gps/ene/gradient -200 MeV
/gps/polarization 0 0 0



#----- Set the beam geometry -----
# Circular beam source. Simulates a single fiber optic
#/gps/pos/type Beam
#/gps/pos/shape Circle
#/gps/pos/radius 0.75 mm
#/gps/pos/radius 1.5 mm
#/gps/pos/sigma_r 0.002 mm

# Rectangular plane for infinite resolution
/gps/pos/type Plane
/gps/pos/shape Rectangle
/gps/pos/halfx 1.0 mm
/gps/pos/halfy 0.5 mm

# the incident surface is in the x-z plane just below the gas
/gps/pos/rot1 1 0 0
/gps/pos/rot2 0 0 1
#/gps/pos/centre 0 0 0 mm
/gps/pos/centre 28.80 625.750 -4.5 mm

# the photons are emitted around the y-axis
/gps/ang/rot1 1 0 0
/gps/ang/rot2 0 0 1
/gps/ang/type beam1d


#----- Set beam angular dispersion from histogram -----
#/gps/ang/surfnorm false
#/gps/ang/type iso
#/gps/ang/mintheta 0.0
#/gps/ang/maxtheta 90.0 deg


/gps/ang/type user
/control/execute hist.mac

#----- Set beam angular dispersion for fiber optic -----
# N.A. is 0.22 so acceptance cone is ~25.4 degrees
#/gps/ang/sigma_r 25.40 deg