Back to home page

EIC code displayed by LXR

 
 

    


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

0001 # Macro file for the visualization setting in the initialization phase 
0002 # of the B3 example when running in interactive mode
0003 #
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 # Disable auto refresh and quieten vis messages whilst scene and
0011 # trajectories are established:
0012 /vis/viewer/set/autoRefresh false
0013 /vis/verbose errors
0014 #
0015 # Draw geometry:
0016 /vis/drawVolume
0017 #
0018 # Specify view angle:
0019 /vis/viewer/set/viewpointThetaPhi 0 90
0020 #
0021 # Specify zoom value:
0022 /vis/viewer/zoom 1
0023 #
0024 # Specify style (surface, wireframe, auxiliary edges,...)
0025 #/vis/viewer/set/style wireframe
0026 #/vis/viewer/set/auxiliaryEdge true
0027 #/vis/viewer/set/lineSegmentsPerCircle 100
0028 #
0029 /vis/viewer/set/style surface
0030 # Draw coordinate axes:
0031 /vis/scene/add/axes 0 0 0 10 cm
0032 #
0033 # Draw smooth trajectories at end of event, showing trajectory points
0034 # as markers 2 pixels wide:
0035 /vis/scene/add/trajectories smooth
0036 /vis/modeling/trajectories/create/drawByCharge
0037 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0038 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 1
0039 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0040 #
0041 # Draw hits at end of event:
0042 #/vis/scene/add/hits
0043 #
0044 # To draw only gammas:
0045 #/vis/filtering/trajectories/create/particleFilter
0046 #/vis/filtering/trajectories/particleFilter-0/add gamma
0047 #
0048 # To invert the above, drawing all particles except gammas,
0049 # keep the above two lines but also add:
0050 #/vis/filtering/trajectories/particleFilter-0/invert true
0051 #
0052 # Many other options are available with /vis/modeling and /vis/filtering.
0053 # For example, to select colour by particle ID:
0054 /vis/modeling/trajectories/create/drawByParticleID
0055 /vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
0056 #/vis/modeling/trajectories/drawByParticleID-0/default/setStepPtsSize 1
0057 # To select or override default colours (note: e+ is blue by default):
0058 #/vis/modeling/trajectories/list
0059 #/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
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