Warning, /geant4/examples/basic/B4/B4a/run1.mac is written in an unsupported language. File is not indexed.
0001 # Macro file for example B4
0002 #
0003 # Can be run in batch, without graphic
0004 # or interactively: Idle> /control/execute run1.mac
0005 #
0006 # change the default number of workers (in multi-threading mode)
0007 #/run/numberOfThreads 4
0008 #
0009 # Kind of tutorial:
0010 # interactively with visualization, issue the commands one by one:
0011 # Idle> gun/particle mu+
0012 # Idle> ...etc...
0013 #
0014 # Initialize kernel
0015 /run/initialize
0016 #
0017 # muon 300 MeV in direction (0.,0.,1.)
0018 /gun/particle mu+
0019 /gun/energy 300 MeV
0020 #
0021 /run/beamOn 1
0022 #
0023 /run/printProgress 5
0024 /run/beamOn 10
0025 #
0026 # inactivate multiple scattering process
0027 /process/inactivate msc
0028 /run/beamOn 10
0029 #
0030 # set a magnetic field
0031 /globalField/setValue 2 0 0 tesla
0032 /run/beamOn 10
0033 #
0034 # re-activate multiple scattering
0035 /process/activate msc
0036 /run/beamOn 10
0037 #
0038 # verbosity
0039 /tracking/verbose 2
0040 /run/beamOn 1