Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #
0002 # Macro file for the initialization phase of "wls"
0003 # Sets some default verbose
0004 # and initializes the graphic.
0005 #
0006 /control/verbose 2
0007 /run/verbose 2
0008 
0009 /WLS/setPhotonDetGeometry Circle
0010 /WLS/setNumOfLayers 2
0011 /WLS/setSurfaceRoughness 0.999
0012 /WLS/setXYRatio 0.8
0013 /WLS/setWLSLength 1. m
0014 /WLS/setWLSRadius 0.5 mm
0015 /WLS/setClad1Radius 0.3 mm
0016 /WLS/setClad2Radius 0.1 mm
0017 #
0018 /WLS/setPhotonDetHalfLength 0.6 mm
0019 /WLS/setGap 0.15 mm
0020 /WLS/setAlignment 0.1 deg
0021 /WLS/setMirror true
0022 
0023 /WLS/setBarLength 1.1 m
0024 /WLS/setBarBase 9.5 mm
0025 /WLS/setHoleRadius 0.9 mm
0026 /WLS/setCoatingThickness 0.3 mm
0027 /WLS/setCoatingRadius 1.775 mm
0028 
0029 
0030 /run/initialize
0031 #
0032 # Open a viewer
0033 /vis/open
0034 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0035 # more comprehensive overview of options. Also the documentation.
0036 #
0037 # Disable auto refresh and quieten vis messages whilst scene and
0038 # trajectories are established:
0039 /vis/viewer/set/autoRefresh false
0040 /vis/verbose errors
0041 #
0042 # Draw geometry:
0043 /vis/drawVolume
0044 #
0045 # Specify view angle:
0046 #/vis/viewer/set/viewpointThetaPhi 90. 0.
0047 #
0048 # Specify zoom value:
0049 /vis/viewer/zoom 20
0050 #
0051 # Specify style (surface or wireframe):
0052 /vis/viewer/set/style surface
0053 #
0054 # Draw coordinate axes:
0055 #/vis/scene/add/axes 0 0 0 1 m
0056 #
0057 # Draw smooth trajectories at end of event, showing trajectory points
0058 # as markers 2 pixels wide:
0059 /vis/scene/add/trajectories smooth
0060 /vis/modeling/trajectories/create/drawByCharge
0061 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0062 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 1
0063 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0064 #
0065 # Draw hits at end of event:
0066 #/vis/scene/add/hits
0067 #
0068 # To draw only gammas:
0069 #/vis/filtering/trajectories/create/particleFilter
0070 #/vis/filtering/trajectories/particleFilter-0/add gamma
0071 #
0072 # To invert the above, drawing all particles except gammas,
0073 # keep the above two lines but also add:
0074 #/vis/filtering/trajectories/particleFilter-0/invert true
0075 #
0076 # Many other options are available with /vis/modeling and /vis/filtering.
0077 # For example, to select colour by particle ID:
0078 #/vis/modeling/trajectories/create/drawByParticleID
0079 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0080 #
0081 # To superimpose all of the events from a given run:
0082 /vis/scene/endOfEventAction accumulate
0083 #
0084 # Re-establish auto refreshing and verbosity:
0085 /vis/viewer/set/autoRefresh true
0086 /vis/verbose warnings
0087 #
0088 # For file-based drivers, use this to create an empty detector view:
0089 #/vis/viewer/flush
0090 
0091 /gps/particle e-
0092 
0093 /gps/energy 10 MeV
0094 
0095 /gps/pos/type Plane
0096 /gps/pos/shape Circle
0097 /gps/pos/radius 0.5 mm
0098 
0099 /gps/pos/centre 0.0 0.0 0.0 cm
0100 /gps/pos/rot1 0 1 0
0101 /gps/pos/rot2 0 0 1
0102 
0103 /gps/ang/type iso
0104 /gps/ang/mintheta   0.0 deg
0105 /gps/ang/maxtheta  90.0 deg