Back to home page

EIC code displayed by LXR

 
 

    


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