Ignore:
Timestamp:
Sep 30, 2010, 2:47:17 PM (14 years ago)
Author:
garnier
Message:

tag geant4.9.4 beta 1 + modifs locales

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 #
    31# Macro file for the initialization phase of "exampleN03.cc"
    42# when running in interactive mode
     
    108/run/verbose 2
    119#
    12 # create empty scene
     10# Use this open statement to create an OpenGL view:
     11/vis/open OGL 600x600-0+0
    1312#
    14 /vis/scene/create
     13# Use this open statement to create a .prim file suitable for
     14# viewing in DAWN:
     15#/vis/open DAWNFILE
    1516#
    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:
    2819#/vis/open HepRepFile
    2920#
    30 # Use this open statement instead to get a HepRep version 2 file
    31 # suitable for viewing in WIRED.
    32 #/vis/open HepRepXML
     21# Use this open statement to create a .wrl file suitable for
     22# viewing in a VRML viewer:
     23#/vis/open VRML2FILE
    3324#
    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
    3729#
    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:
    4047/vis/scene/add/trajectories smooth
    4148/vis/modeling/trajectories/create/drawByCharge
     
    4451# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
    4552#
    46 # To draw gammas only
     53# Draw hits at end of event:
     54#/vis/scene/add/hits
     55#
     56# To draw only gammas:
    4757#/vis/filtering/trajectories/create/particleFilter
    4858#/vis/filtering/trajectories/particleFilter-0/add gamma
    4959#
    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:
    5162#/vis/filtering/trajectories/particleFilter-0/invert true
    5263#
    53 # Many other options available with /vis/modeling and /vis/filtering.
    54 # For example, select colour by particle ID
     64# Many other options are available with /vis/modeling and /vis/filtering.
     65# For example, to select colour by particle ID:
    5566#/vis/modeling/trajectories/create/drawByParticleID
    56 #/vis/modeling/trajectories/drawByParticleID-0/set e- red
     67#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
    5768#
     69# To superimpose all of the events from a given run:
    5870/vis/scene/endOfEventAction accumulate
    5971#
    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.