source: trunk/examples/novice/N07/vis.mac

Last change on this file was 1313, checked in by garnier, 14 years ago

geant4.9.4 beta rc0

File size: 2.2 KB
Line 
1# Use this open statement to create an OpenGL view:
2/vis/open OGL 600x600-0+0
3#
4# Use this open statement to create a .prim file suitable for
5# viewing in DAWN:
6#/vis/open DAWNFILE
7#
8# Use this open statement to create a .heprep file suitable for
9# viewing in HepRApp:
10#/vis/open HepRepFile
11#
12# Use this open statement to create a .wrl file suitable for
13# viewing in a VRML viewer:
14#/vis/open VRML2FILE
15#
16# Disable auto refresh and quieten vis messages whilst scene and
17# trajectories are established:
18/vis/viewer/set/autoRefresh false
19/vis/verbose errors
20#
21# Draw geometry:
22/vis/drawVolume worlds
23#
24# Set specific colur for identification
25/vis/geometry/set/colour Calor-AP_LayerLog ! yellow
26/vis/geometry/set/colour Calor-BP_LayerLog ! yellow
27/vis/geometry/set/colour Calor-CP_LayerLog ! yellow
28#
29# Specify view angle:
30/vis/viewer/set/viewpointThetaPhi 105 165 deg
31#
32# Specify zoom value:
33/vis/viewer/zoom 3.2
34#
35# Specify style (surface or wireframe):
36#/vis/viewer/set/style wireframe
37#
38# Draw coordinate axes:
39#/vis/scene/add/axes 0 0 0 1 m
40#
41# Draw smooth trajectories at end of event, showing trajectory points
42# as markers 2 pixels wide:
43/vis/scene/add/trajectories smooth
44/vis/modeling/trajectories/create/drawByCharge
45/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
46/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
47# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
48#
49# Draw hits at end of event:
50#/vis/scene/add/hits
51#
52# To draw only gammas:
53#/vis/filtering/trajectories/create/particleFilter
54#/vis/filtering/trajectories/particleFilter-0/add gamma
55#
56# To invert the above, drawing all particles except gammas,
57# keep the above two lines but also add:
58#/vis/filtering/trajectories/particleFilter-0/invert true
59#
60# Many other options are available with /vis/modeling and /vis/filtering.
61# For example, to select colour by particle ID:
62#/vis/modeling/trajectories/create/drawByParticleID
63#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
64#
65# To superimpose all of the events from a given run:
66/vis/scene/endOfEventAction accumulate
67#
68# Re-establish auto refreshing and verbosity:
69/vis/viewer/set/autoRefresh true
70/vis/verbose warnings
71#
72# For file-based drivers, use this to create an empty detector view:
73#/vis/viewer/flush
Note: See TracBrowser for help on using the repository browser.