| 1 | #
|
|---|
| 2 | # Macro file for the initialization phase of "exampleN03.cc"
|
|---|
| 3 | # when running in interactive mode
|
|---|
| 4 | #
|
|---|
| 5 | # Sets some default verbose
|
|---|
| 6 | #
|
|---|
| 7 | /control/verbose 2
|
|---|
| 8 | /control/saveHistory
|
|---|
| 9 | /run/verbose 2
|
|---|
| 10 | #
|
|---|
| 11 | # create empty scene
|
|---|
| 12 | #
|
|---|
| 13 | /vis/scene/create
|
|---|
| 14 | #
|
|---|
| 15 | # Create a scene handler for a specific graphics system
|
|---|
| 16 | # (Edit the next line(s) to choose another graphic system)
|
|---|
| 17 | #
|
|---|
| 18 | # Use this open statement to get an .eps and .prim files
|
|---|
| 19 | # suitable for viewing in DAWN.
|
|---|
| 20 | #--- /vis/open DAWNFILE
|
|---|
| 21 | #
|
|---|
| 22 | # Use this open statement instead for OpenGL in immediate mode.
|
|---|
| 23 | /vis/open OGLIQT
|
|---|
| 24 | #/vis/open OGLIX
|
|---|
| 25 | #
|
|---|
| 26 | # Use this open statement instead to get a HepRep version 1 file
|
|---|
| 27 | # suitable for viewing in WIRED.
|
|---|
| 28 | #/vis/open HepRepFile
|
|---|
| 29 | #
|
|---|
| 30 | # Use this open statement instead to get a HepRep version 2 file
|
|---|
| 31 | # suitable for viewing in WIRED.
|
|---|
| 32 | #/vis/open HepRepXML
|
|---|
| 33 | #
|
|---|
| 34 | # Output an empty detector
|
|---|
| 35 | #--- /vis/viewer/flush
|
|---|
| 36 | #
|
|---|
| 37 | # Draw trajectories at end of event, showing trajectory points as
|
|---|
| 38 | # markers of size 2 pixels
|
|---|
| 39 | #/vis/scene/add/trajectories
|
|---|
| 40 | #--- /vis/modeling/trajectories/create/drawByCharge
|
|---|
| 41 | #--- /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
|
|---|
| 42 | #--- /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
|
|---|
| 43 | # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
|
|---|
| 44 | #
|
|---|
| 45 | # To draw gammas only
|
|---|
| 46 | #/vis/filtering/trajectories/create/particleFilter
|
|---|
| 47 | #/vis/filtering/trajectories/particleFilter-0/add gamma
|
|---|
| 48 | #
|
|---|
| 49 | # To draw charged particles only
|
|---|
| 50 | #/vis/filtering/trajectories/particleFilter-0/invert true
|
|---|
| 51 | #
|
|---|
| 52 | # Many other options available with /vis/modeling and /vis/filtering.
|
|---|
| 53 | # For example, select colour by particle ID
|
|---|
| 54 | #/vis/modeling/trajectories/create/drawByParticleID
|
|---|
| 55 | #/vis/modeling/trajectories/drawByParticleID-0/set e- red
|
|---|
| 56 | #
|
|---|
| 57 | #--- /vis/scene/endOfEventAction accumulate
|
|---|
| 58 | #
|
|---|
| 59 | # At end of each run, an automatic flush causes graphical output.
|
|---|
| 60 | #/run/beamOn 1
|
|---|
| 61 | # When you exit Geant4, you will find a file called scene-0.heprep.zip.
|
|---|
| 62 | # Unzipping this will give you three separate HepRep files suitable for
|
|---|
| 63 | # viewing in WIRED.
|
|---|
| 64 | # The first file will contain just detector geometry.
|
|---|
| 65 | # The second file will contain the detector plus one event.
|
|---|
| 66 | # The third file will contain the detector plus ten events.
|
|---|