Ignore:
Timestamp:
Jun 14, 2010, 3:54:58 PM (15 years ago)
Author:
garnier
Message:

geant4.9.4 beta rc0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/examples/advanced/cosmicray_charging/init.mac

    r893 r1313  
    99/vis/scene/create
    1010#
     11
    1112# Create a scene handler for a specific graphics system
    1213# (Edit the next line(s) to choose another graphic system)
    13 /vis/open OGLSQT
    14 #/vis/open OGLSX
    15 #/vis/open OGLIX
    16 #/vis/open OGLSXm
    17 #/vis/open OGLIXm
    18 #/vis/open DANWFILE
    19 #
    20 # Add detector to scene
    21 /vis/drawVolume
    22 #
    23 # Flush visualization
    24 #/vis/viewer/flush
    25 #
    26 /vis/viewer/set/lineSegmentsPerCircle 120
     14#
     15# Use this open statement to get an .eps and .prim files
     16# suitable for viewing in DAWN.
     17###/vis/open DAWNFILE
     18#
     19# Use this open statement instead for OpenGL in immediate mode.
     20#/vis/open OGLIQt 450x420
     21#
     22# Use this open statement instead to get a HepRep version 1 file
     23# suitable for viewing in WIRED.
     24#/vis/open HepRepFile
     25#
     26# Use this open statement instead to get a HepRep version 2 file
     27# suitable for viewing in WIRED.
     28#/vis/open HepRepXML
     29#
     30# Output an empty detector
     31#/gun/energy 10 GeV
     32/vis/viewer/flush
     33#
     34# Draw trajectories at end of event, showing trajectory points as
     35# markers of size 2 pixels
     36/vis/scene/add/trajectories smooth
     37/vis/modeling/trajectories/create/drawByCharge
     38/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     39/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     40# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
     41#
     42# To draw gammas only
     43#/vis/filtering/trajectories/create/particleFilter
     44#/vis/filtering/trajectories/particleFilter-0/add gamma
     45#
     46# To draw charged particles only
     47#/vis/filtering/trajectories/particleFilter-0/invert true
     48#
     49# Many other options available with /vis/modeling and /vis/filtering.
     50# For example, select colour by particle ID
     51#/vis/modeling/trajectories/create/drawByParticleID
     52#/vis/modeling/trajectories/drawByParticleID-0/set e- red
     53#
     54/vis/scene/endOfEventAction accumulate
     55#
     56# At end of each run, an automatic flush causes graphical output.
     57#/run/beamOn 1
     58# When you exit Geant4, you will find a file called scene-0.heprep.zip.
     59# Unzipping this will give you three separate HepRep files suitable for
     60# viewing in WIRED.
     61# The first file will contain just detector geometry.
     62# The second file will contain the detector plus one event.
     63# The third file will contain the detector plus ten events.
     64# $Id: vis.mac,v 1.7 2009/11/15 14:48:40 maire Exp $
     65#
     66# Macro file for the initialization phase of "exampleN03.cc"
     67# when running in interactive mode
     68#
     69# Sets some default verbose
     70#
     71/control/verbose 2
     72/control/saveHistory
     73/run/verbose 2
     74#
     75# create empty scene
     76#
     77#/vis/scene/create
     78#
     79# Create a scene handler for a specific graphics system
     80# (Edit the next line(s) to choose another graphic system)
     81#
     82# Use this open statement to get an .eps and .prim files
     83# suitable for viewing in DAWN.
     84###/vis/open DAWNFILE
     85#
     86# Use this open statement instead for OpenGL in immediate mode.
     87#/vis/open OGLIQt 450x420
     88#
     89# Use this open statement instead to get a HepRep version 1 file
     90# suitable for viewing in WIRED.
     91#/vis/open HepRepFile
     92#
     93# Use this open statement instead to get a HepRep version 2 file
     94# suitable for viewing in WIRED.
     95#/vis/open HepRepXML
     96#
     97# Output an empty detector
     98#/gun/energy 10 GeV
     99/vis/viewer/flush
     100#
     101# Draw trajectories at end of event, showing trajectory points as
     102# markers of size 2 pixels
     103/vis/scene/add/trajectories smooth
     104/vis/modeling/trajectories/create/drawByCharge
     105/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     106/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     107# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
     108#
     109# To draw gammas only
     110#/vis/filtering/trajectories/create/particleFilter
     111#/vis/filtering/trajectories/particleFilter-0/add gamma
     112#
     113# To draw charged particles only
     114#/vis/filtering/trajectories/particleFilter-0/invert true
     115#
     116# Many other options available with /vis/modeling and /vis/filtering.
     117# For example, select colour by particle ID
     118#/vis/modeling/trajectories/create/drawByParticleID
     119#/vis/modeling/trajectories/drawByParticleID-0/set e- red
     120#
     121/vis/scene/endOfEventAction accumulate
     122#
     123# At end of each run, an automatic flush causes graphical output.
     124#/run/beamOn 1
     125# When you exit Geant4, you will find a file called scene-0.heprep.zip.
     126# Unzipping this will give you three separate HepRep files suitable for
     127# viewing in WIRED.
     128# The first file will contain just detector geometry.
     129# The second file will contain the detector plus one event.
     130# The third file will contain the detector plus ten events.
     131# $Id: vis.mac,v 1.7 2009/11/15 14:48:40 maire Exp $
     132#
     133# Macro file for the initialization phase of "exampleN03.cc"
     134# when running in interactive mode
     135#
     136# Sets some default verbose
     137#
     138/control/verbose 2
     139/control/saveHistory
     140/run/verbose 2
     141#
     142# create empty scene
     143#
     144#/vis/scene/create
     145#
     146# Create a scene handler for a specific graphics system
     147# (Edit the next line(s) to choose another graphic system)
     148#
     149# Use this open statement to get an .eps and .prim files
     150# suitable for viewing in DAWN.
     151###/vis/open DAWNFILE
     152#
     153# Use this open statement instead for OpenGL in immediate mode.
     154#/vis/open OGLIQt 450x420
     155#
     156# Use this open statement instead to get a HepRep version 1 file
     157# suitable for viewing in WIRED.
     158#/vis/open HepRepFile
     159#
     160# Use this open statement instead to get a HepRep version 2 file
     161# suitable for viewing in WIRED.
     162#/vis/open HepRepXML
     163#
     164# Output an empty detector
     165#/gun/energy 10 GeV
     166/vis/viewer/flush
     167#
     168# Draw trajectories at end of event, showing trajectory points as
     169# markers of size 2 pixels
     170/vis/scene/add/trajectories smooth
     171/vis/modeling/trajectories/create/drawByCharge
     172/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
     173/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
     174# (if too many tracks cause core dump => /tracking/storeTrajectory 0)
     175#
     176# To draw gammas only
     177#/vis/filtering/trajectories/create/particleFilter
     178#/vis/filtering/trajectories/particleFilter-0/add gamma
     179#
     180# To draw charged particles only
     181#/vis/filtering/trajectories/particleFilter-0/invert true
     182#
     183# Many other options available with /vis/modeling and /vis/filtering.
     184# For example, select colour by particle ID
     185#/vis/modeling/trajectories/create/drawByParticleID
     186#/vis/modeling/trajectories/drawByParticleID-0/set e- red
     187#
     188/vis/scene/endOfEventAction accumulate
     189#
     190# At end of each run, an automatic flush causes graphical output.
     191#/run/beamOn 1
     192# When you exit Geant4, you will find a file called scene-0.heprep.zip.
     193# Unzipping this will give you three separate HepRep files suitable for
     194# viewing in WIRED.
     195# The first file will contain just detector geometry.
     196# The second file will contain the detector plus one event.
     197# The third file will contain the detector plus ten events.
     198#################################################################
     199# Shoots 1 GeV protons randomly from generator surface
     200#################################################################
     201#
     202/vis/enable
     203/tracking/storeTrajectory 1
     204/control/verbose 1
     205/run/verbose 1
     206/event/verbose 0
     207#
     208/control/suppressAbortion 1
     209#
     210# Random seeds
     211#/run/autoSeed 1
     212/random/resetEngineFrom seeds.rndm
     213#
     214# particle surveys
     215#/surveys/surveyParticles 1
     216#/surveys/surveyPrimaries 1
     217#/surveys/surveyTestMasses 1
     218#
     219/gps/particle proton
     220/gps/energy 1 GeV
     221#
     222# Isotropic distribution
     223/gps/pos/type Surface
     224/gps/pos/shape Sphere
     225/gps/pos/radius 1499. mm
     226/gps/pos/centre 0. 0. 0. mm
     227/gps/ang/type cos
     228#
     229/run/beamOn 10
Note: See TracChangeset for help on using the changeset viewer.