Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/extended/exoticphysics/channeling/ch3/vis.mac is written in an unsupported language. File is not indexed.

0001 #Macro for the visualization
0002 
0003 #Create an empty scene
0004 /vis/scene/create
0005 
0006 #Create a scene handler for a specific graphics system
0007 /vis/open OGL
0008 #/vis/open DAWNFILE
0009 #/vis/open VRML2FILE
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 errors
0015 
0016 #Draw the scene
0017 /vis/drawVolume
0018 /vis/viewer/flush
0019 
0020 #Set the camera
0021 /vis/viewer/reset
0022 /vis/viewer/set/viewpointThetaPhi 135. 45. deg
0023 /vis/viewer/zoom 1
0024 
0025 #Specify style (surface, wireframe, auxiliary edges,...)
0026 /vis/viewer/set/style wireframe
0027 /vis/viewer/set/lineSegmentsPerCircle 100
0028 
0029 #Geometry
0030 #/vis/geometry/set/lineWidth all 1 3
0031 
0032 #Decoration
0033 #Axes
0034 /vis/set/lineWidth 3
0035 #/vis/scene/add/axes 0 0 0 1.0 m        #Simple axes: x=red, y=green, z=blue.
0036 #Name
0037 #/vis/set/textColour red
0038 #/vis/set/textLayout right
0039 #/vis/scene/add/text2D 0.8 -0.85 24 ! ! FastSimChannelingRad
0040 #Frame
0041 #/vis/set/colour red
0042 #/vis/set/lineWidth 2
0043 #/vis/scene/add/frame   #Simple frame around the view
0044 #/vis/set/colour        #Revert to default colour (white)
0045 #/vis/set/lineWidth     #Revert to default line width (1.)
0046 
0047 #Commands for the drawing the tracks
0048 /vis/scene/add/eventID                          #Drawn at end of event
0049 /tracking/storeTrajectory 0                             #(if too many tracks cause core dumped => storeTrajectory 0)
0050 /vis/scene/endOfEventAction accumulate
0051 /vis/scene/add/trajectories smooth rich
0052 #/vis/modeling/trajectories/create/drawByParticleID
0053 /vis/modeling/trajectories/create/drawByCharge
0054 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0055 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0056 
0057 #Draw hits at end of event:
0058 /vis/scene/add/hits
0059 
0060 #Geometry test (it can cause a "core dumped")
0061 /geometry/navigator/reset
0062 /geometry/test/run 
0063 
0064 #Re-establish auto refreshing and verbosity:
0065 /vis/viewer/set/autoRefresh true
0066 /vis/verbose warnings
0067 
0068 #For file-based drivers, use this to create an empty detector view:
0069 #/vis/viewer/flush