    #######################################################################
    #  MACRO FILE NAME: exN03Vis13.mac                                    #
    #                                                                     #
    #  AUTHOR(S): John Allison                                            #
    #                                                                     #
    #  DATE: 18th August 2006                                             #
    #                                                                     #
    #  CONTENTS: Time development of an electrmagnetic shower.            #
    #                                                                     #
    #  USAGE:  % $G4BINDIR/exampleN03  visTutor/exN03Vis12.mac             #
    #                                                                     #
    #  REQUIRED PLATFORMS & SOFTWARES: Mac/Unix with X-Windows, OpenGL    #
    #                                                                     #
    #  ADDITIONAL NOTES:                                                  #
    #                                                                     #
    #######################################################################

    /control/verbose 2
    /vis/verbose confirmations

    /vis/open OGLSX 600x600-0+0
    /vis/drawVolume
    /vis/scene/add/trajectories
    /vis/scene/add/eventID

    # Set up drawByParticleID with time slicing
    /vis/modeling/trajectories/create/drawByParticleID
    /vis/modeling/trajectories/drawByParticleID-0/set e- red
    /vis/modeling/trajectories/drawByParticleID-0/set e+ blue
    /vis/modeling/trajectories/drawByParticleID-0/set pi- cyan
    /vis/modeling/trajectories/drawByParticleID-0/set pi+ magenta
    #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
    /vis/modeling/trajectories/drawByParticleID-0/default/setStepPtsSize 5
    #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawAuxPts true
    /vis/modeling/trajectories/drawByParticleID-0/default/setAuxPtsSize 5
    /vis/modeling/trajectories/drawByParticleID-0/default/setTimeSliceInterval 0.01 ns
    /vis/modeling/trajectories/list

    # Remove gammas
    /vis/filtering/trajectories/create/particleFilter
    /vis/filtering/trajectories/particleFilter-0/add gamma
    /vis/filtering/trajectories/particleFilter-0/invert true

    # Create trajecgtories
    /gun/energy 10 GeV
    /vis/viewer/set/globalLineWidthScale 2
    /run/beamOn

    # Run time sequence
    /vis/ogl/set/fade 1
    /vis/ogl/set/displayHeadTime true
    /vis/ogl/set/displayLightFront true -90 0 0 mm
    /vis/viewer/panTo -9 0 cm
    /vis/viewer/zoomTo 2
    /control/alias timeRange 0.1
    /control/alias dx 0.3
    /vis/verbose warnings
    /control/verbose 0
    /control/loop visTutor/exN03Vis13.loop endTime 0 0.7 0.001
    /control/verbose 2
    /vis/verbose confirmations