source: trunk/examples/advanced/xray_telescope/dawn.mac@ 1326

Last change on this file since 1326 was 807, checked in by garnier, 17 years ago

update

File size: 6.0 KB
Line 
1#######################################################################
2# #
3# This code implementation is the intellectual property of #
4# the GEANT4 collaboration. #
5# #
6# By copying, distributing or modifying the Program (or any work #
7# based on the Program) you indicate your acceptance of this #
8# statement, and all its terms. #
9# #
10# ******************************************************************* #
11# * * #
12# * GEANT 4 xray_telescope advanced example * #
13# * * #
14# * MACRO: dawn.mac * #
15# * ------ demostrates the DAWN DRIVER * #
16# * * #
17# * Version: 0.6 * #
18# * Date: 15/11/00 * #
19# * Author: R Nartallo * #
20# * Organisation: ESA/ESTEC, Noordwijk, THe Netherlands * #
21# * * #
22# ******************************************************************* #
23# #
24# NOTES #
25# ----- #
26# USAGE: Idle> /control/execute dawn.mac #
27# prompt> XrayTel dawn.mac #
28# #
29# REQUIRED PLATFORMS & SOFTWARE: DAWN (version 3.85 or after) #
30# Ghostview #
31# #
32# ENVIRONMENT VARIABLES (C-MACROS) FOR INSTALLATION: #
33# (See geant4/source/visualization/README for details.) #
34# #
35# % setenv G4VIS_USE_DAWN 1 #
36# % setenv G4VIS_USE_DAWNFILE 1 #
37# % setenv G4VIS_BUILD_DAWN_DRIVER 1 #
38# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
39# #
40# Addional Notes: #
41# #
42# * You may have to set the command path to the directory where #
43# a Fukui Renderer DAWN is installed, e.g., to #
44# "/afs/cern.ch/sw/contrib/DAWN/3.85/bin/Linux/" #
45# at CERN. #
46# #
47# * Set as follows to skip DAWN GUI: #
48# % setenv G4DAWNFILE_VIEWER "dawn -d" #
49# #
50# * In order to make the generated PostScript file "g4_XX.eps" #
51# printable, append the "showpage" PostScript command to the file. #
52# You can do it with the 4th page of the DAWN GUI panel #
53# or by editing the file by hand. #
54# #
55#######################################################################
56# #
57# CHANGE HISTORY #
58# -------------- #
59# #
60# 15.11.2000 R. Nartallo #
61# - Replaced standard particle gun by GPS set options #
62# #
63# 08.11.2000 R. Nartallo #
64# - Modified version #
65# #
66# 17.10.2000 S. Tanaka #
67# - First implementation #
68# #
69#######################################################################
70
71# Set verbose level
72/run/verbose 2
73
74# Invoke the DAWNFILE driver
75/vis/open DAWNFILE
76
77# Create a new scene
78/vis/scene/create
79
80# Attach the current scene handler to the current scene
81/vis/sceneHandler/attach
82
83# Add the world volume to the current scene
84/vis/scene/add/volume
85
86# Set drawing style
87/vis/viewer/set/style surface
88#/vis/viewer/set/style wireframe
89
90# Set camera
91/vis/camera/reset
92/vis/camera/viewpoint 25 0
93
94# Visualize one event added to the current scene
95# * Command "/vis/scene/notifyHandlers" is written in
96# XrayTelRunAction::BeginOfRunAction()
97# * Command "/vis/viwer/update" is written in
98# XrayTelRunAction::EndOfRunAction()
99
100# Store particle trajactories for visualization
101/tracking/storeTrajectory 1
102
103# Set to draw tracks of positively charged particles
104/event/drawTracks charged
105
106# Set General Particle Source options
107/gps/particle proton
108/gps/pos/type Plane
109/gps/pos/shape Annulus
110/gps/pos/rot1 0. 0. 1.
111/gps/pos/rot2 0. 1. 0.
112/gps/pos/radius 35.5 cm
113/gps/pos/inner_radius 30.5 cm
114/gps/pos/centre 780.1 0. 0. cm
115/gps/ang/type cos
116/gps/ang/maxtheta 1. deg
117/gps/ene/type Mono
118/gps/ene/mono 0.5 MeV
119
120# Set number of particles and start
121/run/beamOn 30000
122
123
124
125
126
127
128
129
Note: See TracBrowser for help on using the repository browser.