1 | ####################################################################### |
---|
2 | # MACRO FILE NAME: exN03Vis7.mac # |
---|
3 | # # |
---|
4 | # AUTHOR(S): Satoshi Tanaka # |
---|
5 | # # |
---|
6 | # DATE: # |
---|
7 | # Nov 14, 2001 # |
---|
8 | # # |
---|
9 | # CONTENTS: A macro to demonstrate batch visualization to generate # |
---|
10 | # PostScript file with the DAWNFILE driver # |
---|
11 | # # |
---|
12 | # % setenv DAWN_BATCH 1 # |
---|
13 | # % make visclean # |
---|
14 | # % $G4BINDIR/exampleN03 # |
---|
15 | # Idle> /control/execute visTutor/exN03Vis7.mac # |
---|
16 | # Idle> exit # |
---|
17 | # % gv g4_00.eps & # |
---|
18 | # % gv g4_01.eps & # |
---|
19 | # % gv g4_02.eps & # |
---|
20 | # # |
---|
21 | # REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, # |
---|
22 | # DAWN (version 3.85 or after) # |
---|
23 | # # |
---|
24 | # ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: # |
---|
25 | # (See geant4/source/visualization/README for details.) # |
---|
26 | # # |
---|
27 | # * Unnecessary # |
---|
28 | # # |
---|
29 | # ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: # |
---|
30 | # (See geant4/source/visualization/README for details.) # |
---|
31 | # # |
---|
32 | # * Unnecessary # |
---|
33 | # # |
---|
34 | # ADDITIONAL NOTES: # |
---|
35 | # # |
---|
36 | ####################################################################### |
---|
37 | |
---|
38 | #################################################################### |
---|
39 | # Creation of a multi-page PostScript file with the DAWNFILE driver |
---|
40 | #################################################################### |
---|
41 | |
---|
42 | # Invoke the DAWNFILE driver |
---|
43 | /vis/open DAWNFILE |
---|
44 | |
---|
45 | # Add the world volume to the current scene |
---|
46 | /vis/drawVolume |
---|
47 | |
---|
48 | # Add trajectories to the current scene |
---|
49 | # Note: This command is not necessary in exampleN03, |
---|
50 | # since the C++ method DrawTrajectory() is |
---|
51 | # described in the event action. |
---|
52 | #/vis/scene/add/trajectories |
---|
53 | |
---|
54 | # Set camera |
---|
55 | /vis/viewer/reset |
---|
56 | /vis/viewer/zoom 1.5 |
---|
57 | /vis/viewer/set/viewpointThetaPhi 70 20 |
---|
58 | |
---|
59 | # Visualize events added to the current scene |
---|
60 | /tracking/storeTrajectory 1 |
---|
61 | /run/beamOn 3 |
---|