Warning, /geant4/examples/extended/electromagnetic/TestEm16/TestReflection.mac is written in an unsupported language. File is not indexed.
0001 /run/numberOfThreads 5 # 5
0002 /control/cout/setCoutFile .out #---- write to one file per thread G4W_0_.out ..
0003 #
0004 /control/verbose 1
0005 /process/verbose 1
0006 /tracking/setVerbosePrecision 10
0007 #
0008 /control/useDoublePrecision
0009 /testem/det/GeomFile Box_1m_Cu.gdml # geometry to test reflection
0010 #
0011 /run/initialize
0012 #
0013 # /process/setVerbose 3 XrayReflection
0014 #
0015 /testem/phys/SetXrayReflectionRoughness 5 nm
0016 #
0017 /globalField/setValue 0 0 0 T # turn off field - no synchrotron radiation
0018 /gun/particle gamma
0019 /gun/energy 10 keV
0020 #
0021 # set up histos
0022 /analysis/setFileName TestReflection
0023 /analysis/h1/set 1 100 0 20 keV
0024 /analysis/h1/set 4 100 0 0.0015 # 0 to 1.5 mrad
0025 /analysis/verbose 2
0026 # 0.25 mrad expected reflection probability 0.98
0027 /gun/position 0 0.000124999998697917 -0.499999984375 m
0028 /gun/direction 0 -0.000249999997395833 0.99999996875 # hit at 0,0,0
0029 /run/beamOn 1000
0030 # angle=1.05 mrad reflection probability 0.83
0031 /gun/position 0 0.000524999903531255 -0.499999724375025 m
0032 /gun/direction 0 -0.00104999980706251 0.999999448750051 # hit at 0,0,0
0033 /run/beamOn 1000
0034 # hadd -f merged.root TestReflection*.root