Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #
0002 # Macro file for the initialization phase of "TestEm16.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 # inactivate other processes to make SynchrotronRadiation more visible
0013 /process/inactivate msc
0014 /process/inactivate eIoni
0015 /process/inactivate eBrem
0016 /process/inactivate annihil
0017 /process/inactivate phot
0018 /process/inactivate compt
0019 /process/inactivate conv
0020 /process/inactivate Rayl
0021 #
0022 /globalField/setValue 0 0 0.5 tesla
0023 #
0024 /gun/particle e-
0025 /gun/energy 9.9994890009 GeV
0026 #
0027 # Open a viewer
0028 /vis/open
0029 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0030 # more comprehensive overview of options. Also the documentation.
0031 #
0032 # Disable auto refresh and quieten vis messages whilst scene and
0033 # trajectories are established:
0034 /vis/viewer/set/autoRefresh false
0035 /vis/verbose errors
0036 #
0037 # Draw geometry:
0038 /vis/drawVolume
0039 #
0040 # Specify view angle:
0041 #/vis/viewer/set/viewpointThetaPhi 90. 0.
0042 #
0043 # Specify zoom value:
0044 /vis/viewer/zoom 1.4
0045 #
0046 # Specify style (surface or wireframe):
0047 #/vis/viewer/set/style wireframe
0048 #
0049 # Draw coordinate axes:
0050 #/vis/scene/add/axes 0 0 0 1 m
0051 #
0052 # Draw smooth trajectories at end of event, showing trajectory points
0053 # as markers 2 pixels wide:
0054 /vis/scene/add/trajectories smooth
0055 /vis/modeling/trajectories/create/drawByCharge
0056 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0057 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0058 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0059 #
0060 # Draw hits at end of event:
0061 #/vis/scene/add/hits
0062 #
0063 # To draw only gammas:
0064 #/vis/filtering/trajectories/create/particleFilter
0065 #/vis/filtering/trajectories/particleFilter-0/add gamma
0066 #
0067 # To invert the above, drawing all particles except gammas,
0068 # keep the above two lines but also add:
0069 #/vis/filtering/trajectories/particleFilter-0/invert true
0070 #
0071 # Many other options are available with /vis/modeling and /vis/filtering.
0072 # For example, to select colour by particle ID:
0073 #/vis/modeling/trajectories/create/drawByParticleID
0074 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0075 #
0076 # To superimpose all of the events from a given run:
0077 /vis/scene/endOfEventAction accumulate
0078 #
0079 # Re-establish auto refreshing and verbosity:
0080 /vis/viewer/set/autoRefresh true
0081 /vis/verbose warnings
0082 #
0083 # For file-based drivers, use this to create an empty detector view:
0084 #/vis/viewer/flush
0085 #