source: trunk/examples/extended/electromagnetic/TestEm6/vis.mac @ 1339

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

tag geant4.9.4 beta 1 + modifs locales

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