Loading...
Searching...
No Matches
run1.mac
Go to the documentation of this file.
1# Macro file for example B4
2#
3# Can be run in batch, without graphic
4# or interactively: Idle> /control/execute run1.mac
5#
6# change the default number of workers (in multi-threading mode)
7#/run/numberOfThreads 4
8#
9# Kind of tutorial:
10# interactively with visualization, issue the commands one by one:
11# Idle> gun/particle mu+
12# Idle> ...etc...
13#
14# Initialize kernel
15/run/initialize
16#
17# muon 300 MeV in direction (0.,0.,1.)
18/gun/particle mu+
19/gun/energy 300 MeV
20#
21/run/beamOn 1
22#
23/run/printProgress 5
24/run/beamOn 10
25#
26# inactivate multiple scattering process
27/process/inactivate msc
28/run/beamOn 10
29#
30# set a magnetic field
31/globalField/setValue 2 0 0 tesla
32/run/beamOn 10
33#
34# re-activate multiple scattering
35/process/activate msc
36/run/beamOn 10
37#
38# verbosity
39/tracking/verbose 2
40/run/beamOn 1

Applications | User Support | Publications | Collaboration