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

Last change on this file since 1026 was 921, checked in by garnier, 15 years ago

en test de gl2ps. Problemes de libraries

File size: 2.2 KB
Line 
1# $Id: vis.mac,v 1.6 2007/06/13 10:36:39 maire Exp $
2#
3# Macro file for the initialization phase of "exampleN03.cc"
4# when running in interactive mode
5#
6# Sets some default verbose
7#
8/control/verbose 2
9/control/saveHistory
10/run/verbose 2
11#
12# create empty scene
13#
14/vis/scene/create
15#
16# Create a scene handler for a specific graphics system
17# (Edit the next line(s) to choose another graphic system)
18#
19# Use this open statement to get an .eps and .prim files
20# suitable for viewing in DAWN.
21###/vis/open DAWNFILE
22#
23# Use this open statement instead for OpenGL in immediate mode.
24#/vis/open OGLSWin32
25/vis/open OGLSQt
26#/vis/open/OIX
27#
28# Use this open statement instead to get a HepRep version 1 file
29# suitable for viewing in WIRED.
30#/vis/open HepRepFile
31#
32# Use this open statement instead to get a HepRep version 2 file
33# suitable for viewing in WIRED.
34#/vis/open HepRepXML
35#
36# Output an empty detector
37/vis/viewer/flush
38#
39# Draw trajectories at end of event, showing trajectory points as
40# markers of size 2 pixels
41/vis/scene/add/trajectories
42/vis/modeling/trajectories/create/drawByCharge
43/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
44/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
45# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
46#
47# To draw gammas only
48#/vis/filtering/trajectories/create/particleFilter
49#/vis/filtering/trajectories/particleFilter-0/add gamma
50#
51# To draw charged particles only
52#/vis/filtering/trajectories/particleFilter-0/invert true
53#
54# Many other options available with /vis/modeling and /vis/filtering.
55# For example, select colour by particle ID
56#/vis/modeling/trajectories/create/drawByParticleID
57#/vis/modeling/trajectories/drawByParticleID-0/set e- red
58#
59/vis/scene/endOfEventAction accumulate
60#
61# At end of each run, an automatic flush causes graphical output.
62#/run/beamOn 1
63# When you exit Geant4, you will find a file called scene-0.heprep.zip.
64# Unzipping this will give you three separate HepRep files suitable for
65# viewing in WIRED.
66# The first file will contain just detector geometry.
67# The second file will contain the detector plus one event.
68# The third file will contain the detector plus ten events.
Note: See TracBrowser for help on using the repository browser.