Warning, /snippets/PID/hpDIRC/myvis.mac is written in an unsupported language. File is not indexed.
0001 /control/verbose 2
0002 /control/saveHistory
0003 /run/verbose 2
0004 /vis/scene/create
0005 #/vis/open OGLSX 1200x900-0+0
0006 /vis/open OGLSX 1200x900-0+0
0007
0008 # Draw geometry:
0009 /vis/drawVolume
0010 #
0011 # Specify view angle:
0012 #/vis/viewer/set/viewpointVector -1 0 0
0013 #/vis/viewer/set/lightsVector -1 0 0
0014 #
0015 # Specify style (surface, wireframe, auxiliary edges,...)
0016 /vis/viewer/set/style wireframe
0017 /vis/viewer/set/auxiliaryEdge false
0018 /vis/viewer/set/lineSegmentsPerCircle 100
0019 # increase display limit for more complex detectors
0020 /vis/ogl/set/displayListLimit 500000
0021 #/vis/viewer/set/viewpointThetaPhi 240 -10
0022 #/vis/viewer/set/viewpointThetaPhi 270 0 # Side view
0023 #/vis/viewer/set/viewpointThetaPhi 270 -89.9 # Top-down view
0024 /vis/viewer/set/viewpointThetaPhi 250 -50
0025
0026 #/vis/viewer/set/pan [right-increment] [up-increment] [unit] default unit meter
0027 /vis/viewer/panTo -0.1 0.
0028 /vis/viewer/addCutawayPlane 0 0 0 m 1 0 0
0029
0030 # Camera and lights commands
0031 #/vis/viewer/set/viewpointVector 0.000424748 4.92661e-16 1
0032 #/vis/viewer/set/upVector 0 -1 0
0033 #/vis/viewer/set/projection orthogonal
0034 #/vis/viewer/zoomTo 16.2111
0035 #/vis/viewer/scaleTo 1 1 1
0036 #/vis/viewer/set/targetPoint 47.7376 -0.585446 52.6602 cm
0037
0038 # zooming by 4 makes it fill the display
0039 /vis/viewer/zoom 1.2
0040 # Output an empty detector
0041 /vis/viewer/flush
0042 # Draw trajectories at end of event, showing trajectory points as
0043 # markers of size 2 pixels
0044 /tracking/storeTrajectory 1
0045 /vis/scene/add/hits
0046 /vis/scene/add/trajectories smooth
0047 /vis/modeling/trajectories/create/drawByCharge
0048 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0049 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0050 # For example, select colour by particle ID
0051 /vis/modeling/trajectories/create/drawByParticleID
0052 /vis/modeling/trajectories/drawByParticleID-0/set e- yellow
0053 /vis/modeling/trajectories/drawByParticleID-0/set e+ red
0054 /vis/modeling/trajectories/drawByParticleID-0/set pi- magenta
0055 /vis/modeling/trajectories/drawByParticleID-0/set pi+ magenta
0056 /vis/modeling/trajectories/drawByParticleID-0/set kaon- blue
0057 /vis/modeling/trajectories/drawByParticleID-0/set kaon+ blue
0058 /vis/modeling/trajectories/drawByParticleID-0/set proton cyan
0059 /vis/modeling/trajectories/drawByParticleID-0/set anti_proton cyan
0060 /vis/modeling/trajectories/drawByParticleID-0/set neutron white
0061 /vis/modeling/trajectories/drawByParticleID-0/set anti_neutron white
0062 /vis/modeling/trajectories/drawByParticleID-0/set gamma green
0063 /vis/modeling/trajectories/drawByParticleID-0/set opticalphoton yellow
0064 /vis/modeling/trajectories/drawByParticleID-0/setRGBA opticalphoton 1 0.8 0 0.3
0065 # remove low energy stuff
0066 /vis/filtering/trajectories/create/attributeFilter
0067 /vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
0068 /vis/filtering/trajectories/attributeFilter-0/addInterval 2 eV 1000 GeV
0069 /vis/scene/endOfEventAction accumulate
0070 /vis/viewer/flush
0071 /control/verbose 2
0072 /run/initialize