Back to home page

EIC code displayed by LXR

 
 

    


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

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