source: trunk/examples/extended/polarisation/Pol01/vis.mac

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

tag geant4.9.4 beta 1 + modifs locales

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