source: trunk/geant4/N03/vis.mac @ 553

Last change on this file since 553 was 483, checked in by garnier, 17 years ago

r569@mac-90108: laurentgarnier | 2007-06-05 15:53:34 +0200
version contre geant4.8.2.p01

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