source: trunk/examples/extended/persistency/P02/vis.mac @ 1358

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

tag geant4.9.4 beta 1 + modifs locales

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