Changeset 1337 for trunk/examples/novice/N03/vis.mac
- Timestamp:
- Sep 30, 2010, 2:47:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/novice/N03/vis.mac
r1276 r1337 1 # $Id: vis.mac,v 1.7 2009/11/15 14:48:40 maire Exp $2 #3 1 # Macro file for the initialization phase of "exampleN03.cc" 4 2 # when running in interactive mode … … 10 8 /run/verbose 2 11 9 # 12 # create empty scene 10 # Use this open statement to create an OpenGL view: 11 /vis/open OGL 600x600-0+0 13 12 # 14 /vis/scene/create 13 # Use this open statement to create a .prim file suitable for 14 # viewing in DAWN: 15 #/vis/open DAWNFILE 15 16 # 16 # Create a scene handler for a specific graphics system 17 # (Edit the next line(s) to choose another graphic system) 18 # 19 # Use this open statement to get an .eps and .prim files 20 # suitable for viewing in DAWN. 21 ###/vis/open DAWNFILE 22 # 23 # Use this open statement instead for OpenGL in immediate mode. 24 /vis/open OGLIQt 450x420 25 # 26 # Use this open statement instead to get a HepRep version 1 file 27 # suitable for viewing in WIRED. 17 # Use this open statement to create a .heprep file suitable for 18 # viewing in HepRApp: 28 19 #/vis/open HepRepFile 29 20 # 30 # Use this open statement instead to get a HepRep version 2 file31 # suitable for viewing in WIRED.32 #/vis/open HepRepXML21 # Use this open statement to create a .wrl file suitable for 22 # viewing in a VRML viewer: 23 #/vis/open VRML2FILE 33 24 # 34 # Output an empty detector 35 #/gun/energy 10 GeV 36 /vis/viewer/flush 25 # Disable auto refresh and quieten vis messages whilst scene and 26 # trajectories are established: 27 /vis/viewer/set/autoRefresh false 28 /vis/verbose errors 37 29 # 38 # Draw trajectories at end of event, showing trajectory points as 39 # markers of size 2 pixels 30 # Draw geometry: 31 /vis/drawVolume 32 # 33 # Specify view angle: 34 #/vis/viewer/set/viewpointThetaPhi 90. 0. 35 # 36 # Specify zoom value: 37 #/vis/viewer/zoom 2. 38 # 39 # Specify style (surface or wireframe): 40 #/vis/viewer/set/style wireframe 41 # 42 # Draw coordinate axes: 43 #/vis/scene/add/axes 0 0 0 1 m 44 # 45 # Draw smooth trajectories at end of event, showing trajectory points 46 # as markers 2 pixels wide: 40 47 /vis/scene/add/trajectories smooth 41 48 /vis/modeling/trajectories/create/drawByCharge … … 44 51 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 45 52 # 46 # To draw gammas only 53 # Draw hits at end of event: 54 #/vis/scene/add/hits 55 # 56 # To draw only gammas: 47 57 #/vis/filtering/trajectories/create/particleFilter 48 58 #/vis/filtering/trajectories/particleFilter-0/add gamma 49 59 # 50 # To draw charged particles only 60 # To invert the above, drawing all particles except gammas, 61 # keep the above two lines but also add: 51 62 #/vis/filtering/trajectories/particleFilter-0/invert true 52 63 # 53 # Many other options a vailable with /vis/modeling and /vis/filtering.54 # For example, select colour by particle ID64 # Many other options are available with /vis/modeling and /vis/filtering. 65 # For example, to select colour by particle ID: 55 66 #/vis/modeling/trajectories/create/drawByParticleID 56 #/vis/modeling/trajectories/drawByParticleID-0/set e- red67 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue 57 68 # 69 # To superimpose all of the events from a given run: 58 70 /vis/scene/endOfEventAction accumulate 59 71 # 60 # At end of each run, an automatic flush causes graphical output. 61 #/run/beamOn 1 62 # When you exit Geant4, you will find a file called scene-0.heprep.zip. 63 # Unzipping this will give you three separate HepRep files suitable for 64 # viewing in WIRED. 65 # The first file will contain just detector geometry. 66 # The second file will contain the detector plus one event. 67 # The third file will contain the detector plus ten events. 72 # Re-establish auto refreshing and verbosity: 73 /vis/viewer/set/autoRefresh true 74 /vis/verbose warnings 75 # 76 # For file-based drivers, use this to create an empty detector view: 77 #/vis/viewer/flush
Note: See TracChangeset
for help on using the changeset viewer.