source: trunk/examples/advanced/gammaray_telescope/macro3.mac @ 1288

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

update to geant4.9.3

File size: 1.0 KB
Line 
1# ----------------------------------------------
2# Example macro file for the GammaRayTel
3# Visualization with OpenGL
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 1
13/control/saveHistory
14/run/verbose 1
15/gun/sourceGen true
16/control/execute emstd.mac
17/run/initialize
18/gun/particle gamma
19/gun/energy 1 GeV
20/gun/vertexRadius 25. cm
21/gun/sourceType 2
22
23
24# You can modify the geometry of the telescope via a messenger
25#/payload/setNbOfTKRLayers 15
26#/payload/update
27
28#
29# Create a scene handler for a specific graphics system
30/vis/open DAWN
31#/vis/open HepRepFile
32
33/vis/viewer/reset
34/vis/viewer/set/viewpointThetaPhi 90 0
35
36# Visualize of the whole detector geometry
37/vis/drawVolume
38
39# for drawing the tracks
40# if too many tracks cause core dump => storeTrajectory 0
41/tracking/storeTrajectory 1
42
43#
44# Flush visualization
45/vis/viewer/update
46
47# run 10 events
48/run/beamOn 10
49
50
Note: See TracBrowser for help on using the repository browser.