Back to home page

EIC code displayed by LXR

 
 

    


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

0001 #
0002 # Macro file for visualisation
0003 #
0004 # Sets some default verbose
0005 # and initializes the graphic.
0006 #
0007 /control/verbose 2
0008 /run/verbose 2
0009 /tracking/verbose 0
0010 #
0011 /action/IAEAphspReader/fileName    phsp/test
0012 /action/IAEAphspWriter/namePrefix  psf_z
0013 /action/IAEAphspWriter/zphsp       20. cm
0014 #
0015 /my_phys/setList     QGSP_BIC_HP_EMZ
0016 #
0017 /run/initialize
0018 #
0019 /run/setCut          0.1 mm
0020 #
0021 /IAEAphspReader/translate 0 0 -70.0 cm
0022 /IAEAphspReader/verbose  0
0023 #
0024 ###/gun/particle e-
0025 ###/gun/energy 6.0 MeV
0026 ###/my_beam/DX 2.0 cm
0027 ###/my_beam/DY 2.0 cm
0028 ###/my_beam/verbose 1
0029 #
0030 # Use this open statement to create an OpenGL view:
0031 /vis/open OGL 600x600-0+0
0032 #
0033 # Use this open statement to create a .prim file suitable for
0034 # viewing in DAWN:
0035 #/vis/open DAWNFILE
0036 #
0037 # Use this open statement to create a .heprep file suitable for
0038 # viewing in HepRApp:
0039 #/vis/open HepRepFile
0040 #
0041 # Use this open statement to create a .wrl file suitable for
0042 # viewing in a VRML viewer:
0043 #/vis/open VRML2FILE
0044 #
0045 # Disable auto refresh and quieten vis messages whilst scene and
0046 # trajectories are established:
0047 /vis/viewer/set/autoRefresh false
0048 /vis/verbose errors
0049 #
0050 # Draw geometry:
0051 /vis/drawVolume
0052 #
0053 # Specify view angle:
0054 /vis/viewer/set/viewpointThetaPhi -90. 0.
0055 #
0056 # Specify zoom value:
0057 /vis/viewer/zoom 1.4
0058 #
0059 # Specify style (surface or wireframe):
0060 #/vis/viewer/set/style wireframe
0061 #
0062 # Draw coordinate axes:
0063 #/vis/scene/add/axes 0 0 0 1 m
0064 #
0065 # Draw smooth trajectories at end of event, showing trajectory points
0066 # as markers 2 pixels wide:
0067 /vis/scene/add/trajectories smooth
0068 /vis/modeling/trajectories/create/drawByCharge
0069 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0070 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0071 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0072 #
0073 # Draw hits at end of event:
0074 #/vis/scene/add/hits
0075 #
0076 # To draw only gammas:
0077 #/vis/filtering/trajectories/create/particleFilter
0078 #/vis/filtering/trajectories/particleFilter-0/add gamma
0079 #
0080 # To invert the above, drawing all particles except gammas,
0081 # keep the above two lines but also add:
0082 #/vis/filtering/trajectories/particleFilter-0/invert true
0083 #
0084 # Many other options are available with /vis/modeling and /vis/filtering.
0085 # For example, to select colour by particle ID:
0086 #/vis/modeling/trajectories/create/drawByParticleID
0087 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0088 #
0089 # To superimpose all of the events from a given run:
0090 /vis/scene/endOfEventAction accumulate
0091 #
0092 # Re-establish auto refreshing and verbosity:
0093 /vis/viewer/set/autoRefresh true
0094 /vis/verbose warnings
0095 #
0096 # For file-based drivers, use this to create an empty detector view:
0097 #/vis/viewer/flush
0098 #
0099 # ------------------------
0100 # Launch a couple of runs to illustrate recording of IAEAphsp files
0101 #
0102 /run/beamOn  50
0103 #
0104 /run/beamOn 100