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 OGLSXm |
---|
25 | /vis/open OGLIQt 50x90-100+100 |
---|
26 | #/vis/open OGLSQt |
---|
27 | #/vis/open OGLOIX |
---|
28 | # |
---|
29 | # Use this open statement instead to get a HepRep version 1 file |
---|
30 | # suitable for viewing in WIRED. |
---|
31 | #/vis/open HepRepFile |
---|
32 | # |
---|
33 | # Use this open statement instead to get a HepRep version 2 file |
---|
34 | # suitable for viewing in WIRED. |
---|
35 | #/vis/open HepRepXML |
---|
36 | # |
---|
37 | # Output an empty detector |
---|
38 | /vis/viewer/flush |
---|
39 | # |
---|
40 | # Draw trajectories at end of event, showing trajectory points as |
---|
41 | # markers of size 2 pixels |
---|
42 | /vis/scene/add/trajectories |
---|
43 | /vis/modeling/trajectories/create/drawByCharge |
---|
44 | /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true |
---|
45 | /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 |
---|
46 | # (if too many tracks cause core dump => /tracking/storeTrajectory 0) |
---|
47 | # |
---|
48 | # To draw gammas only |
---|
49 | #/vis/filtering/trajectories/create/particleFilter |
---|
50 | #/vis/filtering/trajectories/particleFilter-0/add gamma |
---|
51 | # |
---|
52 | # To draw charged particles only |
---|
53 | #/vis/filtering/trajectories/particleFilter-0/invert true |
---|
54 | # |
---|
55 | # Many other options available with /vis/modeling and /vis/filtering. |
---|
56 | # For example, select colour by particle ID |
---|
57 | #/vis/modeling/trajectories/create/drawByParticleID |
---|
58 | #/vis/modeling/trajectories/drawByParticleID-0/set e- red |
---|
59 | # |
---|
60 | /vis/scene/endOfEventAction accumulate |
---|
61 | # |
---|
62 | # At end of each run, an automatic flush causes graphical output. |
---|
63 | #/run/beamOn 1 |
---|
64 | # When you exit Geant4, you will find a file called scene-0.heprep.zip. |
---|
65 | # Unzipping this will give you three separate HepRep files suitable for |
---|
66 | # viewing in WIRED. |
---|
67 | # The first file will contain just detector geometry. |
---|
68 | # The second file will contain the detector plus one event. |
---|
69 | # The third file will contain the detector plus ten events. |
---|
70 | |
---|