source: trunk/examples/novice/N04/vis.mac @ 1320

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

geant4.9.4 beta rc0

File size: 2.2 KB
RevLine 
[807]1#
2# Macro file for the initialization phase of "exampleN02.cc"
3# when runing in interactive mode
4#
5# Sets some default verbose
6#
7/control/verbose 2
8/run/verbose 2
9#
[1313]10# Use this open statement to create an OpenGL view:
11/vis/open OGL 600x600-0+0
[807]12#
[1313]13# Use this open statement to create a .prim file suitable for
14# viewing in DAWN:
15#/vis/open DAWNFILE
[807]16#
[1313]17# Use this open statement to create a .heprep file suitable for
18# viewing in HepRApp:
19#/vis/open HepRepFile
[807]20#
[1313]21# Use this open statement to create a .wrl file suitable for
22# viewing in a VRML viewer:
23#/vis/open VRML2FILE
[807]24#
[1313]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
[807]29#
[1313]30# Draw geometry:
31/vis/drawVolume
[807]32#
[1313]33# Specify view angle:
34/vis/viewer/set/viewpointThetaPhi 90. 180.
35#
36# Specify zoom value:
[807]37/vis/viewer/zoom 1.4
38#
[1313]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
[807]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#
[1313]53# Draw hits at end of event:
54#/vis/scene/add/hits
[807]55#
[1313]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:
[807]70/vis/scene/endOfEventAction accumulate
71#
[1313]72# Re-establish auto refreshing and verbosity:
73/vis/viewer/set/autoRefresh true
74/vis/verbose warnings
[807]75#
[1313]76# For file-based drivers, use this to create an empty detector view:
77#/vis/viewer/flush
Note: See TracBrowser for help on using the repository browser.