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