Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/eventgenerator/HepMC/HepMCEx02/vis.mac is written in an unsupported language. File is not indexed.

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