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/extended/polarisation/Pol01/vis.mac

    r807 r1337  
    1 # $Id: vis.mac,v 1.2 2006/11/17 09:49:41 vnivanch Exp $#
     1# $Id: vis.mac,v 1.3 2010/06/06 05:14:28 perl Exp $#
    22#
    33# Macro file for the initialization phase of "pol01.cc"
     
    1212/run/initialize
    1313#
    14 # Create empty scene ("world" is default)
    15 /vis/scene/create
     14# Use this open statement to create an OpenGL view:
     15/vis/open OGL 600x600-0+0
    1616#
    17 # Create a scene handler for a specific graphics system
    18 # Edit the next line(s) to choose another graphic system
    19 #
    20 /vis/open OGLIX
    21 #
     17# Use this open statement to create a .prim file suitable for
     18# viewing in DAWN:
    2219#/vis/open DAWNFILE
    2320#
    24 # Draw scene
     21# Use this open statement to create a .heprep file suitable for
     22# viewing in HepRApp:
     23#/vis/open HepRepFile
     24#
     25# Use this open statement to create a .wrl file suitable for
     26# viewing in a VRML viewer:
     27#/vis/open VRML2FILE
     28#
     29# Disable auto refresh and quieten vis messages whilst scene and
     30# trajectories are established:
     31/vis/viewer/set/autoRefresh false
     32/vis/verbose errors
     33#
     34# Draw geometry:
     35/vis/drawVolume
     36#
     37# Specify view angle:
     38/vis/viewer/set/viewpointThetaPhi 60. 25.
     39#
     40# Specify zoom value:
    2541/vis/viewer/zoom 1.4
    26 /vis/viewer/set/viewpointThetaPhi 60 25 deg
    27 /vis/viewer/flush
    2842#
    29 # for drawing the tracks
    30 # if too many tracks cause core dump => storeTrajectory 0
    31 /tracking/storeTrajectory 1
     43# Specify style (surface or wireframe):
     44#/vis/viewer/set/style wireframe
     45#
     46# Draw coordinate axes:
     47#/vis/scene/add/axes 0 0 0 1 m
     48#
     49# Draw smooth trajectories at end of event, showing trajectory points
     50# as markers 2 pixels wide:
     51/vis/scene/add/trajectories smooth
     52/vis/modeling/trajectories/create/drawByCharge
     53/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     54/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     55# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
     56#
     57# Draw hits at end of event:
     58#/vis/scene/add/hits
     59#
     60# To draw only gammas:
     61#/vis/filtering/trajectories/create/particleFilter
     62#/vis/filtering/trajectories/particleFilter-0/add gamma
     63#
     64# To invert the above, drawing all particles except gammas,
     65# keep the above two lines but also add:
     66#/vis/filtering/trajectories/particleFilter-0/invert true
     67#
     68# Many other options are available with /vis/modeling and /vis/filtering.
     69# For example, to select colour by particle ID:
     70#/vis/modeling/trajectories/create/drawByParticleID
     71#/vis/modeling/trajectories/drawByParticleID-0/set e- blue
     72#
     73# To superimpose all of the events from a given run:
    3274/vis/scene/endOfEventAction accumulate
     75#
     76# Re-establish auto refreshing and verbosity:
     77/vis/viewer/set/autoRefresh true
     78/vis/verbose warnings
     79#
     80# For file-based drivers, use this to create an empty detector view:
     81#/vis/viewer/flush
    3382#
    3483/run/beamOn 10
Note: See TracChangeset for help on using the changeset viewer.