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