| 1 | <pre>
|
|---|
| 2 | #######################################################################
|
|---|
| 3 | # MACRO FILE NAME: exN03Vis13.mac #
|
|---|
| 4 | # #
|
|---|
| 5 | # AUTHOR(S): John Allison #
|
|---|
| 6 | # #
|
|---|
| 7 | # DATE: 18th August 2006 #
|
|---|
| 8 | # #
|
|---|
| 9 | # CONTENTS: Time development of an electrmagnetic shower. #
|
|---|
| 10 | # #
|
|---|
| 11 | # USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis12.mac #
|
|---|
| 12 | # #
|
|---|
| 13 | # REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL #
|
|---|
| 14 | # #
|
|---|
| 15 | # ADDITIONAL NOTES: #
|
|---|
| 16 | # #
|
|---|
| 17 | #######################################################################
|
|---|
| 18 |
|
|---|
| 19 | /control/verbose 2
|
|---|
| 20 | /vis/verbose confirmations
|
|---|
| 21 |
|
|---|
| 22 | /vis/open OGLSX 600x600-0+0
|
|---|
| 23 | /vis/drawVolume
|
|---|
| 24 | /vis/scene/add/trajectories
|
|---|
| 25 | /vis/scene/add/eventID
|
|---|
| 26 |
|
|---|
| 27 | # Set up drawByParticleID with time slicing
|
|---|
| 28 | /vis/modeling/trajectories/create/drawByParticleID
|
|---|
| 29 | /vis/modeling/trajectories/drawByParticleID-0/set e- red
|
|---|
| 30 | /vis/modeling/trajectories/drawByParticleID-0/set e+ blue
|
|---|
| 31 | /vis/modeling/trajectories/drawByParticleID-0/set pi- cyan
|
|---|
| 32 | /vis/modeling/trajectories/drawByParticleID-0/set pi+ magenta
|
|---|
| 33 | #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
|
|---|
| 34 | /vis/modeling/trajectories/drawByParticleID-0/default/setStepPtsSize 5
|
|---|
| 35 | #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawAuxPts true
|
|---|
| 36 | /vis/modeling/trajectories/drawByParticleID-0/default/setAuxPtsSize 5
|
|---|
| 37 | /vis/modeling/trajectories/drawByParticleID-0/default/setTimeSliceInterval 0.01 ns
|
|---|
| 38 | /vis/modeling/trajectories/list
|
|---|
| 39 |
|
|---|
| 40 | # Remove gammas
|
|---|
| 41 | /vis/filtering/trajectories/create/particleFilter
|
|---|
| 42 | /vis/filtering/trajectories/particleFilter-0/add gamma
|
|---|
| 43 | /vis/filtering/trajectories/particleFilter-0/invert true
|
|---|
| 44 |
|
|---|
| 45 | # Create trajecgtories
|
|---|
| 46 | /gun/energy 10 GeV
|
|---|
| 47 | /vis/viewer/set/globalLineWidthScale 2
|
|---|
| 48 | /run/beamOn
|
|---|
| 49 |
|
|---|
| 50 | # Run time sequence
|
|---|
| 51 | /vis/ogl/set/fade 1
|
|---|
| 52 | /vis/ogl/set/displayHeadTime true
|
|---|
| 53 | /vis/ogl/set/displayLightFront true -90 0 0 mm
|
|---|
| 54 | /vis/viewer/panTo -9 0 cm
|
|---|
| 55 | /vis/viewer/zoomTo 2
|
|---|
| 56 | /control/alias timeRange 0.1
|
|---|
| 57 | /control/alias dx 0.3
|
|---|
| 58 | /vis/verbose warnings
|
|---|
| 59 | /control/verbose 0
|
|---|
| 60 | /control/loop visTutor/exN03Vis13.loop endTime 0 0.7 0.001
|
|---|
| 61 | /control/verbose 2
|
|---|
| 62 | /vis/verbose confirmations
|
|---|
| 63 | </pre>
|
|---|