Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/microbeam/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 viewpoint:
0015 /vis/viewer/set/viewpointVector 400 0 105.79
0016 #
0017 # Specify target point (so a viewpoint rotation keeps it in view)
0018 /vis/viewer/set/targetPoint -1461.42 0.0 -386.51 mm
0019 #
0020 # Specify zoom value:
0021 /vis/viewer/zoom 2000000.
0022 #
0023 # Specify style (surface or wireframe):
0024 #/vis/viewer/set/style wireframe
0025 #
0026 # Draw coordinate axes:
0027 #/vis/scene/add/axes 0 0 0 1 m
0028 #
0029 # Draw smooth trajectories at end of event, showing trajectory points
0030 # as markers 2 pixels wide:
0031 /vis/scene/add/trajectories smooth
0032 /vis/modeling/trajectories/create/drawByCharge
0033 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0034 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0035 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0036 #
0037 # Draw hits at end of event:
0038 #/vis/scene/add/hits
0039 #
0040 # To draw only gammas:
0041 #/vis/filtering/trajectories/create/particleFilter
0042 #/vis/filtering/trajectories/particleFilter-0/add gamma
0043 #
0044 # To invert the above, drawing all particles except gammas,
0045 # keep the above two lines but also add:
0046 #/vis/filtering/trajectories/particleFilter-0/invert true
0047 #
0048 # Many other options are available with /vis/modeling and /vis/filtering.
0049 # For example, to select colour by particle ID:
0050 #/vis/modeling/trajectories/create/drawByParticleID
0051 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0052 #
0053 # To superimpose all of the events from a given run:
0054 /vis/scene/endOfEventAction accumulate
0055 #
0056 # Re-establish auto refreshing and verbosity:
0057 /vis/viewer/set/autoRefresh true
0058 /vis/verbose warnings
0059 #
0060 # For file-based drivers, use this to create an empty detector view:
0061 #/vis/viewer/flush