Back to home page

EIC code displayed by LXR

 
 

    


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