Back to home page

EIC code displayed by LXR

 
 

    


Warning, /DD4hep/examples/LHeD/compact/vis.mac is written in an unsupported language. File is not indexed.

0001 # Macro file for the visualization setting in the initialization phase 
0002 #
0003 # Set some default verbose
0004 /control/verbose 2
0005 /control/saveHistory
0006 #/run/verbose 2
0007 #
0008 # Change the default number of threads (in multi-threaded mode)
0009 #/run/numberOfThreads 4
0010 #
0011 # Use these open statements to open selected visualization
0012 #
0013 # Use this open statement to create an OpenGL view:
0014 #/vis/open OGL 600x600-0+0
0015 #
0016 # Use this open statement to create an OpenInventor view:
0017 #/vis/open OI
0018 #
0019 # Use this open statement to create a .prim file suitable for
0020 # viewing in DAWN:
0021 #/vis/open DAWNFILE
0022 #
0023 # Use this open statement to create a .heprep file suitable for
0024 # viewing in HepRApp:
0025 #/vis/open HepRepFile
0026 #
0027 # Use this open statement to create a .wrl file suitable for
0028 # viewing in a VRML viewer:
0029 #/vis/open VRML2FILE
0030 #
0031 # Draw geometry:
0032 #/vis/drawVolume
0033 #
0034 # Specify view angle:
0035 /vis/viewer/set/viewpointVector -1 0 0
0036 /vis/viewer/set/lightsVector -1 0 0
0037 #
0038 # Specify style (surface, wireframe, auxiliary edges,...)
0039 /vis/viewer/set/style wireframe
0040 /vis/viewer/set/auxiliaryEdge true
0041 /vis/viewer/set/lineSegmentsPerCircle 100
0042 #
0043 # Draw smooth trajectories at end of event, showing trajectory points
0044 # as markers 2 pixels wide:
0045 /vis/scene/add/trajectories smooth
0046 /vis/modeling/trajectories/create/drawByCharge
0047 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0048 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0049 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0050 /tracking/storeTrajectory 1
0051 #
0052 # Draw hits at end of event:
0053 /vis/scene/add/hits
0054 /vis/sceneHandler/attach
0055 #
0056 # To draw only gammas:
0057 #/vis/filtering/trajectories/create/particleFilter
0058 #/vis/filtering/trajectories/particleFilter-0/add gamma
0059 #
0060 # To invert the above, drawing all particles except gammas,
0061 # keep the above two lines but also add:
0062 #/vis/filtering/trajectories/particleFilter-0/invert true
0063 #
0064 # Many other options are available with /vis/modeling and /vis/filtering.
0065 # For example, to select colour by particle ID:
0066 #/vis/modeling/trajectories/create/drawByParticleID
0067 #/vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true
0068 # To select or override default colours (note: e+ is blue by default):
0069 #/vis/modeling/trajectories/list
0070 #/vis/modeling/trajectories/drawByParticleID-0/set e+ yellow
0071 #
0072 # To superimpose all of the events from a given run:
0073 /vis/scene/endOfEventAction accumulate
0074 #
0075 # Decorations
0076 # Name
0077 /vis/set/textColour green
0078 /vis/set/textLayout right
0079 /vis/scene/add/text2D 0.9 -.9 24 ! ! FCC-he
0080 # or, if your system does not support right-adjustment
0081 #/vis/scene/add/text2D 0 -.9 24 ! ! exampleB1
0082 /vis/set/textLayout    # Revert to normal (left adjusted) layout
0083 /vis/set/textColour    # Revert to default text colour (blue)
0084 #
0085 # Axes, scale, etc.
0086 /vis/scene/add/scale   # Simple scale line
0087 /vis/scene/add/axes    # Simple axes: x=red, y=green, z=blue.
0088 /vis/scene/add/eventID # Drawn at end of event
0089 /vis/scene/add/date    # Date stamp
0090 #/vis/scene/add/logo2D  # Simple logo
0091 #/vis/scene/add/logo    # 3D logo
0092 #
0093 # Frame
0094 /vis/set/colour red
0095 /vis/set/lineWidth 2
0096 /vis/scene/add/frame   # Simple frame around the view
0097 /vis/set/colour        # Revert to default colour (white)
0098 /vis/set/lineWidth     # Revert to default line width (1.)
0099 #
0100 # Attach text to one edge of Shape1, with a small, fixed offset
0101 #/vis/scene/add/text 0 6 -4 cm 18 4 4 Shape1
0102 # Attach text to one corner of Shape2, with a small, fixed offset
0103 #/vis/scene/add/text 6 7 10 cm 18 4 4 Shape2
0104 #
0105 # To get nice view
0106 /vis/geometry/set/visibility World 0 false
0107 /vis/geometry/set/visibility Envelope 0 false
0108 /vis/viewer/set/style surface
0109 /vis/viewer/set/hiddenMarker true
0110 /vis/viewer/set/viewpointThetaPhi 120 150
0111 #
0112 # Re-establish auto refreshing and verbosity:
0113 #/vis/viewer/set/autoRefresh true
0114 /vis/verbose warnings
0115 #
0116 # For file-based drivers, use this to create an empty detector view:
0117 #/vis/viewer/flush
0118 # Initialize kernel
0119 /run/initialize
0120 /run/verbose 2