Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/analysis/AnaEx02/vis.mac is written in an unsupported language. File is not indexed.

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