Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/eventgenerator/exgps/vis.mac is written in an unsupported language. File is not indexed.

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