Back to home page

EIC code displayed by LXR

 
 

    


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

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