# Use this open statement to create a .wrl file suitable for # viewing in a VRML viewer: #/vis/open VRML2FILE # Use this open statement to create an OpenGL view: /vis/open OGL 600x600-0+0 # Draw geometry: /vis/drawVolume /vis/viewer/set/auxiliaryEdge true /vis/viewer/set/lineSegmentsPerCircle 100 # Draw smooth trajectories at end of event, showing trajectory points # as markers 2 pixels wide: /vis/scene/add/trajectories smooth /vis/modeling/trajectories/create/drawByCharge /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 # Draw hits at end of event: /vis/scene/add/hits # To draw only gammas: #/vis/filtering/trajectories/create/particleFilter #/vis/filtering/trajectories/particleFilter-0/add gamma # To invert the above, drawing all particles except gammas, # keep the above two lines but also add: #/vis/filtering/trajectories/particleFilter-0/invert true # Many other options are available with /vis/modeling and /vis/filtering. # For example, to select colour by particle ID: #/vis/modeling/trajectories/create/drawByParticleID #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true # To select or override default colours (note: e+ is blue by default): #/vis/modeling/trajectories/list #/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow # To superimpose all of the events from a given run: /vis/scene/endOfEventAction accumulate # Re-establish auto refreshing and verbosity: /vis/viewer/set/autoRefresh true /vis/verbose warnings # Draw coordinate axes: /vis/scene/add/axes 0 0 0 0.1 m # output only detector #/vis/viewer/flush