Loading...
Searching...
No Matches
vis.mac
Go to the documentation of this file.
1#
2# Open a viewer
3/vis/open
4# This opens the default viewer - see examples/basic/B1/vis.mac for a
5# more comprehensive overview of options. Also the documentation.
6#
7# Create an empty scene and add the detector geometry to it
8/vis/drawVolume
9#
10#/vis/viewer/set/style surface
11/vis/viewer/set/style wireframe
12#
13#
14# The compound command "/vis/drawVolume"
15# is equivalent to the following set of commands:
16#
17# /vis/scene/create
18# /vis/scene/add/volume
19# /vis/sceneHandler/attach
20#
21# Store particle trajectories for visualization
22# (if too many tracks cause core dump => storeTrajectory 0)
23/tracking/storeTrajectory 2
24#
25# Add trajectories to the current scene
26/vis/scene/add/trajectories smooth
27/vis/modeling/trajectories/create/drawByCharge
28/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
29/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
30# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
31#
32#/vis/modeling/trajectories/create/drawByParticleID
33#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
34#/vis/modeling/trajectories/drawByParticleID-0/set mu+ green
35#/vis/modeling/trajectories/drawByParticleID-0/set e+ red
36#/vis/modeling/trajectories/drawByParticleID-0/set gamma gray
37#/vis/modeling/trajectories/drawByParticleID-0/set nu_e yellow
38#/vis/modeling/trajectories/drawByParticleID-0/set anti_nu_mu yellow
39#
40# To superimpose all of the events from a given run:
41/vis/scene/endOfEventAction accumulate
42#
43# field04 specific setting
44#
45# To get nice view
46#/vis/geometry/set/visibility World 0 false
47/vis/geometry/set/colour World 0 1 1 1 .3 # gray
48/vis/geometry/set/colour CaptureMgnt 0 0 0 1 .3 # blue
49/vis/geometry/set/colour Target 0 1 0 0 .3 # red
50/vis/geometry/set/colour TransferMgnt 0 0 1 0 .3 # green
51/vis/geometry/set/colour TestPlane 0 1 1 0 .3 # yellow
52/vis/geometry/set/colour Degrader 0 0 1 1 .3 # cyan
53/vis/viewer/set/style surface
54/vis/viewer/set/hiddenMarker true
55#
56# Specify view angle:
57# Set direction from target to camera.
58/vis/viewer/set/viewpointThetaPhi 110 140
59#
60# Specify zoom value:
61/vis/viewer/zoom 1.4
62#
63# Draw magnetic field
64#/vis/scene/add/magneticField 1
65#
66# Re-establish auto refreshing and verbosity:
67/vis/viewer/set/autoRefresh true
68/vis/verbose warnings
69#
70# For file-based drivers, use this to create an empty detector view:
71#/vis/viewer/flush

Applications | User Support | Publications | Collaboration