Warning, /g4exampledetector/template/macros/vis.mac is written in an unsupported language. File is not indexed.
0001 # $Id: vis.mac,v 1.4 2010/04/14 18:32:59 lindenle Exp $
0002 #
0003 # Macro file for the initialization phase of "exampleN03.cc"
0004 # when running in interactive mode
0005 #
0006 # Sets some default verbose
0007 #
0008 /control/verbose 2
0009 /control/saveHistory
0010 /run/verbose 2
0011 #
0012 # create empty scene
0013 #
0014 /vis/scene/create
0015 #
0016 # Create a scene handler for a specific graphics system
0017 # (Edit the next line(s) to choose another graphic system)
0018 #
0019 # Use this open statement to get an .eps and .prim files
0020 # suitable for viewing in DAWN.
0021 ###/vis/open DAWNFILE
0022 #
0023 # Use this open statement instead for OpenGL in immediate mode.
0024 # OGLIX works on the desktops in 1008 while OGLSX terminates
0025 # the X server. I've heard similar stories about OGLIX on other
0026 # machines. You might have to play with it. GEANT prints out a
0027 # list of available graphics systems at some point.
0028 /vis/open OGLIX 1200x900-0+0
0029 #/vis/open OGLSX 1200x900-0+0
0030 # increase display limit for more complex detectors
0031 /vis/ogl/set/displayListLimit 500000
0032 # our world is 4x4 meters, the detector is about 1m across
0033 # zooming by 4 makes it fill the display
0034 /vis/viewer/zoom 0.3
0035 #
0036 # Use this open statement instead to get a HepRep version 1 file
0037 # suitable for viewing in WIRED.
0038 #/vis/open HepRepFile
0039 #
0040 # Use this open statement instead to get a HepRep version 2 file
0041 # suitable for viewing in WIRED.
0042 #/vis/open HepRepXML
0043 #
0044 # Output an empty detector
0045 /vis/viewer/flush
0046 #
0047 # Draw trajectories at end of event, showing trajectory points as
0048 # markers of size 2 pixels
0049 /vis/scene/add/trajectories smooth
0050 /vis/modeling/trajectories/create/drawByCharge
0051 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0052 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0053 #
0054 /vis/scene/endOfEventAction accumulate
0055 #