Loading...
Searching...
No Matches
run.mac
Go to the documentation of this file.
1#
2# can be run in batch, without graphic
3# or interactively: Idle> /control/execute run.mac
4#
5/run/verbose 2
6/event/verbose 0
7/control/verbose 1
8#
9# photon 10 MeV to the direction (0.,0.,1.)
10#
11/geometry/textInput/verbose 0
12
13/run/initialize
14
15# Open a viewer
16/vis/open
17# This opens the default viewer - see examples/basic/B1/vis.mac for a
18# more comprehensive overview of options. Also the documentation.
19#
20# Disable auto refresh and quieten vis messages whilst scene and
21# trajectories are established:
22/vis/viewer/set/autoRefresh false
23/vis/verbose errors
24#
25# Draw geometry:
26/vis/drawVolume
27#
28# Specify view angle:
29#/vis/viewer/set/viewpointThetaPhi 90. 0.
30#
31# Specify zoom value:
32#/vis/viewer/zoom 2.
33#
34# Specify style (surface or wireframe):
35#/vis/viewer/set/style wireframe
36#
37# Draw coordinate axes:
38#/vis/scene/add/axes 0 0 0 1 m
39#
40# Draw smooth trajectories at end of event, showing trajectory points
41# as markers 2 pixels wide:
42/vis/scene/add/trajectories smooth
43/vis/modeling/trajectories/create/drawByCharge
44/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
45/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
46# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
47#
48# Draw hits at end of event:
49#/vis/scene/add/hits
50#
51# To draw only gammas:
52#/vis/filtering/trajectories/create/particleFilter
53#/vis/filtering/trajectories/particleFilter-0/add gamma
54#
55# To invert the above, drawing all particles except gammas,
56# keep the above two lines but also add:
57#/vis/filtering/trajectories/particleFilter-0/invert true
58#
59# Many other options are available with /vis/modeling and /vis/filtering.
60# For example, to select colour by particle ID:
61#/vis/modeling/trajectories/create/drawByParticleID
62#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
63#
64# To superimpose all of the events from a given run:
65/vis/scene/endOfEventAction accumulate
66#
67# Re-establish auto refreshing and verbosity:
68/vis/viewer/set/autoRefresh true
69/vis/verbose warnings
70#
71# For file-based drivers, use this to create an empty detector view:
72#/vis/viewer/flush
73/gun/particle gamma
74/gun/energy 10 MeV
75/tracking/verbose 0
76/run/beamOn 10
77

Applications | User Support | Publications | Collaboration