Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/STCyclotron/vis.mac is written in an unsupported language. File is not indexed.

0001 # Macro file for the visualization setting in the initialization phase 
0002 # of the example when running in interactive mode
0003 #
0004 #/vis/disable
0005 #
0006 # Open a viewer
0007 /vis/open
0008 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0009 # more comprehensive overview of options. Also the documentation.
0010 #
0011 # Disable auto refresh and quieten vis messages whilst scene and
0012 # trajectories are established:
0013 /vis/viewer/set/autoRefresh false
0014 /vis/verbose 1
0015 #
0016 # Draw geometry:
0017 /vis/drawVolume
0018 #
0019 # Specify view angle:
0020 /vis/viewer/set/viewpointVector -1 0 0
0021 /vis/viewer/set/lightsVector -1 0 0
0022 #zoom the whole target part
0023 #/vis/viewer/set/targetPoint 0 0 0.1 m
0024 #/vis/viewer/zoomTo 10
0025 #zoom just the target element
0026 /vis/viewer/set/targetPoint 0 0 0 mm
0027 /vis/viewer/zoomTo 1
0028 #
0029 #
0030 # Specify style (surface, wireframe, auxiliary edges,...)
0031 /vis/viewer/set/style surface
0032 #/vis/viewer/set/auxiliaryEdge true
0033 #/vis/viewer/set/lineSegmentsPerCircle 500
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 # Many other options are available with /vis/modeling and /vis/filtering.
0047 # For example, to select colour by particle ID:
0048 /vis/modeling/trajectories/create/drawByParticleID
0049 /vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
0050 # To select or override default colours (note: e+ is blue by default):
0051 /vis/modeling/trajectories/list
0052 /vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
0053 #
0054 # To superimpose all of the events from a given run:
0055 #/vis/scene/endOfEventAction accumulate
0056 #
0057 # Decorations
0058 # Name
0059 /vis/set/textColour green
0060 /vis/set/textLayout right
0061 /vis/scene/add/text2D 0.9 -.9 24 ! ! sahmri_Simulation
0062 #/vis/scene/add/axes 0 0 0 186.14 mm
0063 #
0064 #
0065 # Set geometry attributes
0066 /vis/geometry/set/visibility World 0 0
0067 /vis/geometry/set/colour Layer_PART1  0 1.  0.1 0.5 0.3        #Al
0068 /vis/geometry/set/colour Layer_PART2  0 1.  0.1 0.5 0.3        #Al
0069 /vis/geometry/set/colour Layer_PART3  0 1.  0.2 0.4 0.3        #Al
0070 /vis/geometry/set/colour Layer_PART4  0 0.  0.2 0.7 0.3        #Al
0071 /vis/geometry/set/colour Layer1_PART4 0 1.  0.  0.  0.3        #Pt
0072 /vis/geometry/set/colour Layer1_PART5 0 0.  0.2 0.7 0.3        #Pt
0073 /vis/geometry/set/colour Layer2_PART5 0 1.  0.  0.  0.3        #Al
0074 /vis/geometry/set/colour Layer3_PART5 0 1.  0.  0.  0.3        #Al
0075 /vis/geometry/set/colour Foil         0 1.  0.8 0.4 0.3        #foil
0076 /vis/geometry/set/colour Target       0 0.1 0.8 0.4 0.6        #target
0077 /vis/geometry/set/colour Tube_PART1   0 1.  1.  0.  0.3        #beam
0078 /vis/geometry/set/colour Tube_PART2   0 1.  1.  0.  0.3       #beam
0079 /vis/geometry/set/colour Tube_PART3   0 1.  1.  0.  0.3       #beam
0080 /vis/geometry/set/colour Tube_PART4   0 1.  1.  0.  0.3       #beam
0081 /vis/geometry/set/colour Grid         0 0.1 0.5 1.  0.9        #Al
0082 #
0083 #/run/verbose 0
0084 #/tracking/verbose 1
0085 #/control/verbose 0
0086 
0087 # Re-establish auto refreshing and verbosity:
0088 /vis/viewer/set/autoRefresh true
0089 /vis/verbose warnings
0090 #
0091 # For file-based drivers, use this to create an empty detector view:
0092 #/vis/viewer/flush