Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/medical/dna/splitting/vis.mac is written in an unsupported language. File is not indexed.

0001 #
0002 # Macro file for the initialization phase of "TestEm6.cc"
0003 #
0004 # Sets some default verbose
0005 # and initializes the graphic.
0006 #
0007 /control/verbose 0
0008 /run/verbose 0
0009 
0010 /vrt/numberOfSplit 200
0011 
0012 /detector/diameter 6.0 nm
0013 /detector/length   10.0 nm
0014 
0015 /run/initialize
0016 
0017 /gun/particle alpha
0018 /gun/position 0 0 -20 nm
0019 /gun/direction 0 0 1
0020 /gun/energy 4 MeV 
0021 
0022 #
0023 # Open a viewer
0024 /vis/open
0025 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0026 # more comprehensive overview of options. Also the documentation.
0027 #
0028 # Disable auto refresh and quieten vis messages whilst scene and
0029 # trajectories are established:
0030 /vis/viewer/set/autoRefresh false
0031 /vis/verbose errors
0032 #
0033 # Draw geometry:
0034 /vis/drawVolume
0035 #
0036 # Specify view angle:
0037 /vis/viewer/set/viewpointThetaPhi -90 0 deg
0038 /vis/viewer/set/projection perspective 30 deg
0039 
0040 #
0041 # Specify zoom value:
0042 /vis/viewer/zoom 4
0043 #
0044 # Specify style (surface or wireframe):
0045 #/vis/viewer/set/style wireframe
0046 #
0047 # Draw coordinate axes:
0048 #/vis/scene/add/axes 0 0 0 1 m
0049 #
0050 # Draw smooth trajectories at end of event, showing trajectory points
0051 # as markers 2 pixels wide:
0052 /vis/scene/add/trajectories smooth
0053 /vis/modeling/trajectories/create/drawByCharge
0054 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0055 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 1.5
0056 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0057 #
0058 # Draw hits at end of event:
0059 #/vis/scene/add/hits
0060 #
0061 # To draw only gammas:
0062 #/vis/filtering/trajectories/create/particleFilter
0063 #/vis/filtering/trajectories/particleFilter-0/add gamma
0064 #
0065 # To invert the above, drawing all particles except gammas,
0066 # keep the above two lines but also add:
0067 #/vis/filtering/trajectories/particleFilter-0/invert true
0068 #
0069 # Many other options are available with /vis/modeling and /vis/filtering.
0070 # For example, to select colour by particle ID:
0071 #/vis/modeling/trajectories/create/drawByParticleID
0072 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0073 #
0074 # To superimpose all of the events from a given run:
0075 /vis/scene/endOfEventAction accumulate
0076 #
0077 # Re-establish auto refreshing and verbosity:
0078 /vis/viewer/set/autoRefresh true
0079 /vis/verbose warnings
0080 #
0081 # For file-based drivers, use this to create an empty detector view:
0082 #/vis/viewer/flush
0083 /run/beamOn 1