Files
geant4/examples/extended/electromagnetic/TestEm6/vis.mac
T
2016-06-08 16:57:27 +02:00

38 lines
808 B
Plaintext

#
# Macro file for the initialization phase of "TestEm6.cc"
#
# Sets some default verbose
# and initializes the graphic.
#
/control/verbose 2
/run/verbose 2
#
/run/initialize
#
# Create empty scene ("world" is default)
/vis/scene/create
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
/vis/open OGLIX
#
#/vis/open DAWNFILE
#
# Draw scene
/vis/viewer/zoom 1.4
/vis/viewer/flush
#
# for drawing the tracks
# if too many tracks cause core dump => storeTrajectory 0
/tracking/storeTrajectory 1
/vis/scene/endOfEventAction accumulate
#
/testem/event/drawTracks all
#
# set magnetic field for visualization only, and limit
# the step for a proper visualization of the tracjectories
#
/testem/det/setField 100 tesla
/testem/tracking/stepMax 1 m