Loading...
Searching...
No Matches
vis.mac
Go to the documentation of this file.
1#
2# Macro file for the initialization phase of "RE02.cc"
3# when runing in interactive mode
4#
5# Sets some default verbose
6#
7/control/verbose 2
8/vis/verbose confirmations
9/run/verbose 2
10#/tracking/verbose 2
11#
12# Open a viewer
13/vis/open
14# This opens the default viewer - see examples/basic/B1/vis.mac for a
15# more comprehensive overview of options. Also the documentation.
16#
17# Disable auto refresh and quieten vis messages whilst scene and
18# trajectories are established:
19/vis/viewer/set/autoRefresh false
20/vis/verbose errors
21#
22# Draw geometry:
23/vis/drawVolume
24#
25# Specify view angle:
26/vis/viewer/set/viewpointThetaPhi 90. 180.
27#
28# Specify zoom value:
29/vis/viewer/zoom 1.4
30#
31# Make all invisible - final voxels will be drawn with computed vis attrubutes
32#/vis/geometry/set/visibility Phantom -1 false
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#
74/run/beamOn 100

Applications | User Support | Publications | Collaboration