source: trunk/source/geometry/solids/test/SurfaceVisTest/run1.mac @ 1358

Last change on this file since 1358 was 1350, checked in by garnier, 14 years ago

update to last version 4.9.4

File size: 1.3 KB
Line 
1###################################################
2# Visualization of detector geometry and events 
3###################################################
4
5# create empty scene
6/vis/scene/create
7
8# Create a scene handler for a specific graphics system
9/vis/open OGLIX
10
11# draw scene
12/vis/viewer/zoom 9
13#/vis/viewer/set/viewpointThetaPhi 45 45 deg
14/vis/viewer/set/viewpointThetaPhi 90 -25 deg
15#/vis/viewer/flush
16/vis/drawVolume
17
18#if you want to see trajectories and hits points
19/vis/scene/add/trajectories
20/vis/modeling/trajectories/create/drawByCharge
21/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
22/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 5
23
24# (if you prefer not refreshing each event, uncomment next line)
25# /vis/scene/endOfEventAction accumulate
26
27#hard coded position and direction for gun
28#/gun/position 400 0 -0.1 mm
29#/gun/direction  0 0 1
30
31#if you want make a run with particle
32
33#/run/beamOn 1
34
35#if you want to change the detector
36
37/mydet/SelectDetector Polycone
38#Other examples for Polycone/Polyhedra
39#Most of the Geant4 solids are supported
40#/mydet/SelectDetector PolyconeGen
41#/mydet/SelectDetector PolyconeGenComplex
42#/mydet/SelectDetector Polyhedra
43#/mydet/SelectDetector PolyhedraGen
44#/mydet/SelectDetector PolyhedraGenComplex
45/rndm/numPoints 100
46
47#to draw Points on the Surface
48
49/run/beamOn 1
50
51
Note: See TracBrowser for help on using the repository browser.