Back to home page

sPhenix code displayed by LXR

 
 

    


Warning, /tutorials/sPHENIX_sims/vis.mac is written in an unsupported language. File is not indexed.

0001 # $Id: vis.mac,v 1.4 2010/04/14 18:32:59 lindenle Exp $
0002 #
0003 # Macro file for the initialization phase of "exampleN03.cc"
0004 # when running in interactive mode
0005 #
0006 # Sets some default verbose
0007 #
0008 /control/verbose 2
0009 /control/saveHistory
0010 /run/verbose 2
0011 #
0012 # create empty scene
0013 #
0014 /vis/scene/create
0015 #
0016 # Create a scene handler for a specific graphics system
0017 # (Edit the next line(s) to choose another graphic system)
0018 #
0019 # Use this open statement to get an .eps and .prim files
0020 # suitable for viewing in DAWN.
0021 #/vis/open DAWNFILE
0022 #
0023 # Use this open statement instead for OpenGL in immediate mode.
0024 # OGLIX works on the desktops in 1008 while OGLSX terminates
0025 # the X server. I've heard similar stories about OGLIX on other
0026 # machines. You might have to play with it. GEANT prints out a
0027 # list of available graphics systems at some point.
0028 #/vis/open OGLIX
0029 #/vis/open OGL 1200x900-0+0
0030 
0031 /vis/open OGL 600x600 -0+0 
0032  
0033 
0034 # increase display limit for more complex detectors
0035 /vis/ogl/set/displayListLimit 500000
0036 #/vis/viewer/set/viewpointThetaPhi 85 10
0037 /vis/viewer/set/viewpointThetaPhi 20 40
0038 
0039 #/vis/scene/add/axes 0 300 0 50 cm
0040 
0041 #/vis/viewer/addCutawayPlane 0 0 0 m -1 1 0
0042 # our world is 4x4 meters, the detector is about 1m across
0043 # zooming by 4 makes it fill the display
0044 /vis/viewer/zoom 2
0045 
0046 #/vis/viewer/set/style wireframe
0047 # Use this open statement instead to get a HepRep version 1 file
0048 # suitable for viewing in WIRED.
0049 #/vis/open HepRepFile
0050 #
0051 # Use this open statement instead to get a HepRep version 2 file
0052 # suitable for viewing in WIRED.
0053 #/vis/open HepRepXML
0054 #
0055 # Output an empty detector
0056 /vis/viewer/flush
0057 #
0058 # Draw trajectories at end of event, showing trajectory points as
0059 # markers of size 2 pixels
0060 /vis/scene/add/trajectories smooth
0061 /vis/modeling/trajectories/create/drawByCharge
0062 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0063 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0064 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0065 #
0066 # To draw gammas only
0067 #/vis/filtering/trajectories/create/particleFilter
0068 #/vis/filtering/trajectories/particleFilter-0/add gamma
0069 #
0070 # To draw charged particles only
0071 #/vis/filtering/trajectories/particleFilter-0/invert true
0072 #
0073 # Many other options available with /vis/modeling and /vis/filtering.
0074 # For example, select colour by particle ID
0075 #/vis/modeling/trajectories/create/drawByParticleID
0076 #/vis/modeling/trajectories/drawByParticleID-0/set e- red
0077 # remove low energy stuff
0078 /vis/filtering/trajectories/create/attributeFilter
0079 /vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
0080 /vis/filtering/trajectories/attributeFilter-0/addInterval 2 MeV 1000 GeV
0081 
0082 /vis/modeling/trajectories/create/drawByParticleID
0083 /vis/modeling/trajectories/drawByParticleID-0/set e- red
0084 /vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
0085 /vis/modeling/trajectories/drawByParticleID-0/set gamma magenta
0086 /vis/modeling/trajectories/drawByParticleID-0/set pi- blue
0087 /vis/modeling/trajectories/drawByParticleID-0/set mu- white
0088 
0089 
0090 /vis/scene/endOfEventAction accumulate
0091 #
0092 # At end of each run, an automatic flush causes graphical output.
0093 #/run/beamOn 1
0094 # When you exit Geant4, you will find a file called scene-0.heprep.zip.
0095 # Unzipping this will give you three separate HepRep files suitable for
0096 # viewing in WIRED.
0097 # The first file will contain just detector geometry.
0098 # The second file will contain the detector plus one event.
0099 # The third file will contain the detector plus ten events.