source: trunk/examples/novice/N03/vis.mac @ 1339

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

test

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