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