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

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

tag geant4.9.4 beta 1 + modifs locales

File size: 2.2 KB
RevLine 
[474]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#
[1337]10# Use this open statement to create an OpenGL view:
11/vis/open OGL 600x600-0+0
[474]12#
[1337]13# Use this open statement to create a .prim file suitable for
14# viewing in DAWN:
15#/vis/open DAWNFILE
[474]16#
[1337]17# Use this open statement to create a .heprep file suitable for
18# viewing in HepRApp:
19#/vis/open HepRepFile
[474]20#
[1337]21# Use this open statement to create a .wrl file suitable for
22# viewing in a VRML viewer:
23#/vis/open VRML2FILE
[474]24#
[1337]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
[474]29#
[1337]30# Draw geometry:
31/vis/drawVolume
[474]32#
[1337]33# Specify view angle:
34#/vis/viewer/set/viewpointThetaPhi 90. 0.
[474]35#
[1337]36# Specify zoom value:
37#/vis/viewer/zoom 2.
[474]38#
[1337]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:
[1209]47/vis/scene/add/trajectories smooth
[483]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)
[474]52#
[1337]53# Draw hits at end of event:
54#/vis/scene/add/hits
55#
56# To draw only gammas:
[483]57#/vis/filtering/trajectories/create/particleFilter
58#/vis/filtering/trajectories/particleFilter-0/add gamma
59#
[1337]60# To invert the above, drawing all particles except gammas,
61# keep the above two lines but also add:
[483]62#/vis/filtering/trajectories/particleFilter-0/invert true
63#
[1337]64# Many other options are available with /vis/modeling and /vis/filtering.
65# For example, to select colour by particle ID:
[483]66#/vis/modeling/trajectories/create/drawByParticleID
[1337]67#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
[483]68#
[1337]69# To superimpose all of the events from a given run:
[474]70/vis/scene/endOfEventAction accumulate
71#
[1337]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
Note: See TracBrowser for help on using the repository browser.