1###################################################
2# Visualization of detector geometry and events
3###################################################
5# reading Geometry from File
6/mydet/readFile test.gdml
11# This opens the default viewer - see examples/basic/B1/vis.mac for a
12# more comprehensive overview of options. Also the documentation.
16#/vis/viewer/set/viewpointThetaPhi 45 45 deg
17#/vis/viewer/set/viewpointThetaPhi 90 -25 deg
21#if you want to see trajectories and hits points
22/vis/scene/add/trajectories
23/vis/modeling/trajectories/create/drawByCharge
24/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
25/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 5
27# (if you prefer not refreshing each event, uncomment next line)
28 /vis/scene/endOfEventAction accumulate
30#hard coded position and direction for gun
31/gun/position 0 0 -0.1 mm
34#if you want make a run with particle