Warning, /geant4/examples/advanced/HGCal_testbeam/vis.mac is written in an unsupported language. File is not indexed.
0001 # Macro file for the visualization settings of the HGCal testbeam simulation
0002 #
0003
0004 # Open a viewer
0005 /vis/open
0006 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0007 # more comprehensive overview of options. Also the documentation.
0008 #
0009 ## To create an OpenGL view:
0010 #/vis/open OGL 800x600-0+0
0011
0012 #
0013 # Disable auto refresh and quieten vis messages whilst scene and
0014 # trajectories are established:
0015 /vis/viewer/set/autoRefresh false
0016 /vis/verbose errors
0017 #
0018
0019 #
0020 # Specify view angle:
0021 /vis/viewer/set/hiddenMarker true
0022 /vis/viewer/set/viewpointThetaPhi -45 30
0023 /vis/viewer/zoom 2
0024
0025 #
0026 # Specify style (surface, wireframe, auxiliary edges,...)
0027 /vis/viewer/set/style surface
0028 /vis/viewer/set/auxiliaryEdge true
0029 /vis/viewer/set/lineSegmentsPerCircle 100
0030 #
0031 # Draw smooth trajectories at end of event, showing trajectory points
0032 # as markers 2 pixels wide:
0033 /vis/modeling/trajectories/create/drawByCharge
0034 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0035 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0036 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0037 #
0038 #
0039 # To draw only gammas:
0040 /vis/filtering/trajectories/create/particleFilter particleFilter-0
0041 /vis/filtering/trajectories/particleFilter-0/add gamma
0042 #
0043 # To invert the above, drawing all particles except gammas,
0044 # keep the above two lines but also add:
0045 /vis/filtering/trajectories/particleFilter-0/invert true
0046 #
0047 # Momentum selection for the drawing
0048 /vis/filtering/trajectories/create/attributeFilter
0049 /vis/filtering/trajectories/attributeFilter-0/setAttribute IMag
0050 /vis/filtering/trajectories/attributeFilter-0/addInterval 10. MeV 1000 GeV
0051 /vis/modeling/trajectories/create/drawByAttribute
0052 /vis/modeling/trajectories/drawByAttribute-0/setAttribute IMag
0053 /vis/modeling/trajectories/drawByAttribute-0/addInterval interval1 1 MeV 10 MeV
0054 /vis/modeling/trajectories/drawByAttribute-0/addInterval interval2 10 MeV 100 MeV
0055 /vis/modeling/trajectories/drawByAttribute-0/addInterval interval3 100 MeV 200 MeV
0056 /vis/modeling/trajectories/drawByAttribute-0/addInterval interval4 200.0 MeV 500 MeV
0057 /vis/modeling/trajectories/drawByAttribute-0/addInterval interval5 500 MeV 0.9 GeV
0058 /vis/modeling/trajectories/drawByAttribute-0/addInterval interval6 0.9 GeV 10000 GeV
0059 /vis/modeling/trajectories/drawByAttribute-0/interval1/setLineColourRGBA 0.1 0.1 0.1 0.3
0060 /vis/modeling/trajectories/drawByAttribute-0/interval2/setLineColourRGBA 1 0.3 0 1
0061 /vis/modeling/trajectories/drawByAttribute-0/interval3/setLineColourRGBA 1 1 0 1
0062 /vis/modeling/trajectories/drawByAttribute-0/interval4/setLineColourRGBA 0 1 0 1
0063 /vis/modeling/trajectories/drawByAttribute-0/interval5/setLineColourRGBA 1 0 0 1
0064 /vis/modeling/trajectories/drawByAttribute-0/interval6/setLineColourRGBA 0 0 1 1
0065
0066 # Make the background white
0067 /vis/viewer/set/background 1 1 1 1.0
0068
0069 # Make the "World" box invisible
0070 /vis/geometry/set/visibility World 0 false
0071
0072 # Re-establish auto refreshing and verbosity:
0073 /vis/viewer/set/autoRefresh true
0074 /vis/verbose warnings
0075 #
0076 # For file-based drivers, use this to create an empty detector view:
0077 #/vis/viewer/flush
0078
0079 # Choose geometry setup
0080 /HGCalTestbeam/setup/configuration 0