Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/basic/B4/macros/vis.mac is written in an unsupported language. File is not indexed.

0001 # Macro file for the visualization setting for the initialization phase 
0002 # of the B4 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 90. 180.
0020 #
0021 # Specify zoom value:
0022 #/vis/viewer/zoom 2.
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 # Draw coordinate axes:
0030 #/vis/scene/add/axes 0 0 0 1 m
0031 #
0032 # Draw smooth trajectories at end of event, showing trajectory points
0033 # as markers 2 pixels wide:
0034 /vis/scene/add/trajectories smooth
0035 /vis/modeling/trajectories/create/drawByCharge
0036 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0037 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 1
0038 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0039 #
0040 # Draw hits at end of event:
0041 #/vis/scene/add/hits
0042 #
0043 # To draw only gammas:
0044 #/vis/filtering/trajectories/create/particleFilter
0045 #/vis/filtering/trajectories/particleFilter-0/add gamma
0046 #
0047 # To invert the above, drawing all particles except gammas,
0048 # keep the above two lines but also add:
0049 #/vis/filtering/trajectories/particleFilter-0/invert true
0050 #
0051 # Many other options are available with /vis/modeling and /vis/filtering.
0052 # For example, to select colour by particle ID:
0053 #/vis/modeling/trajectories/create/drawByParticleID
0054 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
0055 # To select or override default colours (note: e+ is blue by default):
0056 #/vis/modeling/trajectories/list
0057 #/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
0058 #
0059 # To superimpose all of the events from a given run:
0060 /vis/scene/endOfEventAction accumulate
0061 #
0062 # Re-establish auto refreshing and verbosity:
0063 /vis/viewer/set/autoRefresh true
0064 /vis/verbose warnings
0065 #
0066 # For file-based drivers, use this to create an empty detector view:
0067 #/vis/viewer/flush