Back to home page

EIC code displayed by LXR

 
 

    


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

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