Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/ICRP110_HumanPhantoms/vis.mac is written in an unsupported language. File is not indexed.

0001 # Echo UI commands
0002 /control/verbose 2
0003 #
0004 /phantom/setPhantomSection full
0005 # Note: It's only feasible to view the "full" phantom if
0006 # specialMeshRendering is set below. If not, we suggest
0007 #/phantom/setPhantomSection head
0008 #
0009 /run/initialize
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 # Define background colour (comment out for black as default)
0022 #/vis/viewer/set/background white
0023 #
0024 # Draw phantom
0025 /vis/viewer/set/specialMeshRendering
0026 /vis/drawVolume
0027 #
0028 # Alternatively comment out
0029 # /vis/viewer/set/specialMeshRendering
0030 # /vis/drawVolume
0031 # and replace by
0032 # Temporarily switch culling off so even a "transparent/invisible" volume
0033 #   is drawn
0034 #/vis/viewer/set/culling global false
0035 # phantomContainer is transparent - but defines "extent"
0036 #/vis/drawVolume phantomContainer ! 0
0037 #/vis/viewer/set/culling global true
0038 # Add vis user action
0039 #/vis/scene/add/userAction
0040 #
0041 # Specify view angle:
0042 /vis/viewer/set/viewpointThetaPhi 85 -75 deg
0043 #/vis/viewer/set/lightsMove with-camera
0044 #
0045 # Specify zoom value:
0046 #/vis/viewer/zoom 2.
0047 #
0048 # Specify style (surface or wireframe, etc.):
0049 #/vis/viewer/set/style wireframe
0050 /vis/viewer/set/rotationStyle freeRotation
0051 /vis/viewer/set/hiddenMarker true
0052 #
0053 # Draw coordinate axes:
0054 /vis/scene/add/axes
0055 #
0056 # Draw trajectories at end of event, showing trajectory points
0057 # as markers 2 pixels wide:
0058 /vis/scene/add/trajectories
0059 /vis/modeling/trajectories/create/drawByCharge
0060 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0061 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0062 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0063 #
0064 # Draw hits at end of event:
0065 #/vis/scene/add/hits
0066 #
0067 # To draw only gammas:
0068 #/vis/filtering/trajectories/create/particleFilter
0069 #/vis/filtering/trajectories/particleFilter-0/add gamma
0070 #
0071 # To invert the above, drawing all particles except gammas,
0072 # keep the above two lines but also add:
0073 #/vis/filtering/trajectories/particleFilter-0/invert true
0074 #
0075 # Many other options are available with /vis/modeling and /vis/filtering.
0076 # For example, to select colour by particle ID:
0077 #/vis/modeling/trajectories/create/drawByParticleID
0078 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0079 #
0080 # To superimpose all of the events from a given run:
0081 /vis/scene/endOfEventAction accumulate
0082 #
0083 # Re-establish auto refreshing and verbosity:
0084 /vis/viewer/set/autoRefresh true
0085 /vis/verbose warnings
0086 #
0087 # For file-based drivers, use this to create an empty detector view:
0088 #/vis/viewer/flush
0089 #
0090 # Define the primary particles
0091 /control/execute primary.mac
0092 #
0093 # Try "/vis/viewer/interpolate g4views 1000 0", which runs a cutaway
0094 #   plane through the phantom.
0095 # (See examples/extended/visualization/movies for how to create view
0096 #   files for interpolation.)