source: trunk/examples/advanced/Rich/RichTbVis0.mac @ 1321

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

geant4.9.4 beta rc0

File size: 2.0 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
23#
24# Specify view angle:
25/vis/viewer/set/viewpointThetaPhi -90. -90.
26#/vis/camera/viewpoint 270 0
27#
28# Specify zoom value:
29/vis/viewer/zoom 0.8
30#
31# Specify style (surface or wireframe):
32#/vis/viewer/set/style wireframe
33#
34# Draw coordinate axes:
35#/vis/scene/add/axes 0 0 0 1 m
36#
37# Draw smooth trajectories at end of event, showing trajectory points
38# as markers 2 pixels wide:
39/vis/scene/add/trajectories smooth
40/vis/modeling/trajectories/create/drawByCharge
41/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
42/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
43# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
44#
45# Draw hits at end of event:
46#/vis/scene/add/hits
47#
48# To draw only gammas:
49#/vis/filtering/trajectories/create/particleFilter
50#/vis/filtering/trajectories/particleFilter-0/add gamma
51#
52# To invert the above, drawing all particles except gammas,
53# keep the above two lines but also add:
54#/vis/filtering/trajectories/particleFilter-0/invert true
55#
56# Many other options are available with /vis/modeling and /vis/filtering.
57# For example, to select colour by particle ID:
58#/vis/modeling/trajectories/create/drawByParticleID
59#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
60#
61# To superimpose all of the events from a given run:
62#/vis/scene/endOfEventAction accumulate
63#
64# Re-establish auto refreshing and verbosity:
65/vis/viewer/set/autoRefresh true
66/vis/verbose warnings
67#
68/vis/viewer/update
69
70
71
72
73
74
75
Note: See TracBrowser for help on using the repository browser.