Warning, /geant4/examples/extended/eventgenerator/pythia/decayer6/vis.mac is written in an unsupported language. File is not indexed.
0001 #
0002 # Macro file for the initialization phase
0003 # when running in interactive mode
0004 #
0005 # Sets some default verbose
0006 #
0007 /control/verbose 2
0008 /control/saveHistory
0009 /run/verbose 2
0010 #
0011 # Open a viewer
0012 /vis/open
0013 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0014 # more comprehensive overview of options. Also the documentation.
0015 #
0016 # Disable auto refresh and quieten vis messages whilst scene and
0017 # trajectories are established:
0018 /vis/viewer/set/autoRefresh false
0019 /vis/verbose errors
0020 #
0021 # Draw geometry:
0022 /vis/drawVolume
0023 #
0024 # Specify view angle:
0025 /vis/viewer/set/viewpointThetaPhi 30. 30.
0026 #
0027 # Specify zoom value:
0028 #/vis/viewer/zoom 2.
0029 #
0030 # Specify style (surface or wireframe):
0031 #/vis/viewer/set/style wireframe
0032 #
0033 # Draw coordinate axes:
0034 #/vis/scene/add/axes 0 0 0 1 m
0035 #
0036 # Draw smooth trajectories at end of event, showing trajectory points
0037 # as markers 2 pixels wide:
0038 /vis/scene/add/trajectories smooth
0039 /vis/modeling/trajectories/create/drawByCharge
0040 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0041 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0042 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0043 #
0044 # Draw hits at end of event:
0045 #/vis/scene/add/hits
0046 #
0047 # To draw only gammas:
0048 #/vis/filtering/trajectories/create/particleFilter
0049 #/vis/filtering/trajectories/particleFilter-0/add gamma
0050 #
0051 # To invert the above, drawing all particles except gammas,
0052 # keep the above two lines but also add:
0053 #/vis/filtering/trajectories/particleFilter-0/invert true
0054 #
0055 # Many other options are available with /vis/modeling and /vis/filtering.
0056 # For example, to select colour by particle ID:
0057 #/vis/modeling/trajectories/create/drawByParticleID
0058 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0059 #
0060 # To superimpose all of the events from a given run:
0061 /vis/scene/endOfEventAction accumulate
0062 #
0063 # Re-establish auto refreshing and verbosity:
0064 /vis/viewer/set/autoRefresh true
0065 /vis/verbose warnings
0066 #
0067 # For file-based drivers, use this to create an empty detector view:
0068 #/vis/viewer/flush