Back to home page

EIC code displayed by LXR

 
 

    


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

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