source: trunk/examples/advanced/gammaray_telescope/macro1.mac @ 807

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

update

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