source: trunk/examples/advanced/gammaray_telescope/macro2.mac @ 1272

Last change on this file since 1272 was 1230, checked in by garnier, 14 years ago

update to geant4.9.3

File size: 1.1 KB
Line 
1# ----------------------------------------------
2# Example macro file for the GammaRayTel
3# Visualization with VRML
4# ----------------------------------------------
5# Authors: R.Giannitrapani, F.Longo and G.Santin
6# ----------------------------------------------
7
8#
9# Sets some default verbose
10# and initializes the graphic.
11#
12/control/verbose 2
13/control/saveHistory
14/run/verbose 2
15/gun/sourceGen true
16
17
18/control/execute emlowe.mac
19
20/run/initialize
21
22/gun/particle mu-
23/gun/energy 100 MeV
24/gun/vertexRadius 30. cm
25/gun/sourceType 2
26/gun/direction 0 0 -1
27
28# You can modify the geometry of the telescope via a messenger
29
30/control/execute emstd.mac
31/payload/setNbOfTKRLayers 10
32/payload/update
33
34
35#
36# Create a scene handler for a specific graphics system
37/vis/open VRML2FILE
38#/vis/open OGLIX
39
40/vis/viewer/reset
41/vis/viewer/set/viewpointThetaPhi 90 0
42
43# Visualize of the whole detector geometry
44/vis/drawVolume
45
46# for drawing the tracks
47# if too many tracks cause core dump => storeTrajectory 0
48/tracking/storeTrajectory 1
49
50#
51# Flush visualization
52/vis/viewer/update
53
54/run/beamOn 10
55
56
57
58
59
60
Note: See TracBrowser for help on using the repository browser.