Warning, /geant4/examples/extended/eventgenerator/pythia/decayer6/common/vis.mac is written in an unsupported language. File is not indexed.
0001 # Macro file for the visualization setting in the initialization phase
0002 # of the B1 example when running in interactive mode
0003 #
0004
0005 # Open a viewer
0006 /vis/open
0007 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0008 # more comprehensive overview of options. Also the documentation.
0009 #
0010 # Use this open statement to create an offscreen file with TSG:
0011 #/vis/open TSG_OFFSCREEN 1200x1200
0012 # See the tsg_offscreen.mac file for more commands to change
0013 # the file format, file name, picture size, etc.
0014 #
0015 # Disable auto refresh and quieten vis messages whilst scene and
0016 # trajectories are established:
0017 /vis/viewer/set/autoRefresh false
0018 /vis/verbose errors
0019 #
0020 # Draw geometry:
0021 /vis/drawVolume
0022 #
0023 # Specify view angle:
0024 /vis/viewer/set/viewpointVector -1 0 0
0025 /vis/viewer/set/lightsVector -1 0 0
0026 #
0027 # Specify style (surface, wireframe, auxiliary edges,...)
0028 /vis/viewer/set/style wireframe
0029 /vis/viewer/set/auxiliaryEdge true
0030 /vis/viewer/set/lineSegmentsPerCircle 100
0031 #
0032 # Draw smooth trajectories at end of event, showing trajectory points
0033 # as markers 2 pixels wide:
0034 /vis/scene/add/trajectories smooth
0035 /vis/modeling/trajectories/create/drawByCharge
0036 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0037 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0038 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0039 #
0040 # Draw hits at end of event:
0041 #/vis/scene/add/hits
0042 #
0043 # To draw only gammas:
0044 #/vis/filtering/trajectories/create/particleFilter
0045 #/vis/filtering/trajectories/particleFilter-0/add gamma
0046 #
0047 # To invert the above, drawing all particles except gammas,
0048 # keep the above two lines but also add:
0049 #/vis/filtering/trajectories/particleFilter-0/invert true
0050 #
0051 # Many other options are available with /vis/modeling and /vis/filtering.
0052 # For example, to select colour by particle ID:
0053 #/vis/modeling/trajectories/create/drawByParticleID
0054 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
0055 # To select or override default colours (note: e+ is blue by default):
0056 #/vis/modeling/trajectories/list
0057 #/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
0058 #
0059 # To superimpose all of the events from a given run:
0060 /vis/scene/endOfEventAction accumulate
0061 #
0062 # Decorations
0063 # Name
0064 /vis/set/textColour green
0065 /vis/set/textLayout right
0066 /vis/scene/add/text2D 0.9 -.9 24 ! ! exampleB1
0067 # or, if your system does not support right-adjustment
0068 #/vis/scene/add/text2D 0 -.9 24 ! ! exampleB1
0069 /vis/set/textLayout # Revert to normal (left adjusted) layout
0070 /vis/set/textColour # Revert to default text colour (blue)
0071 #
0072 # Axes, scale, etc.
0073 /vis/scene/add/scale # Simple scale line
0074 /vis/scene/add/axes # Simple axes: x=red, y=green, z=blue.
0075 /vis/scene/add/eventID # Drawn at end of event
0076 /vis/scene/add/date # Date stamp
0077 /vis/scene/add/logo2D # Simple logo
0078 /vis/scene/add/logo # 3D logo
0079 #
0080 # Frame
0081 /vis/set/colour red
0082 /vis/set/lineWidth 2
0083 /vis/scene/add/frame # Simple frame around the view
0084 /vis/set/colour # Revert to default colour (white)
0085 /vis/set/lineWidth # Revert to default line width (1.)
0086 #
0087 # Attach text to one edge of Shape1, with a small, fixed offset
0088 /vis/scene/add/text 0 6 -4 cm 18 4 4 Shape1
0089 # Attach text to one corner of Shape2, with a small, fixed offset
0090 /vis/scene/add/text 6 7 10 cm 18 4 4 Shape2
0091 #
0092 # To get nice view
0093 # Make the "World" box invisible
0094 /vis/geometry/set/visibility World 0 false
0095 # "Envelope" is transparent blue to represent water
0096 #/vis/geometry/set/colour Envelope 0 0 0 1 .3
0097 /vis/viewer/set/style surface
0098 /vis/viewer/set/hiddenMarker true
0099 /vis/viewer/set/viewpointThetaPhi 120 150
0100 #
0101 # Re-establish auto refreshing and verbosity:
0102 /vis/viewer/set/autoRefresh true
0103 /vis/verbose warnings
0104 #
0105 # For file-based drivers, use this to create an empty detector view:
0106 #/vis/viewer/flush