Warning, /geant4/examples/advanced/lAr_calorimeter/vis.mac is written in an unsupported language. File is not indexed.
0001 #
0002 # Macro file for the initialization phase of
0003 #
0004 # Sets some default verbose
0005 # and initializes the graphic.
0006 #
0007 /control/verbose 2
0008 /run/verbose 2
0009 #
0010 /run/initialize
0011 #
0012 # Open a viewer
0013 /vis/open
0014 # This opens the default viewer - see examples/basic/B1/vis.mac for a
0015 # more comprehensive overview of options. Also the documentation.
0016 #
0017 # Disable auto refresh and quieten vis messages whilst scene and
0018 # trajectories are established:
0019 /vis/viewer/set/autoRefresh false
0020 /vis/verbose errors
0021 #
0022 # Draw geometry:
0023 /vis/drawVolume
0024 #
0025 # Specify view angle:
0026 #/vis/viewer/set/viewpointThetaPhi 90. 0.
0027 #
0028 # Specify zoom value:
0029 /vis/viewer/zoom 10.5
0030 #
0031 # Specify style (surface or wireframe):
0032 #/vis/viewer/set/style wireframe
0033 #
0034 # Draw coordinate axes:
0035 #/vis/scene/add/axes 0 0 0 1 m
0036 #
0037 # Draw smooth trajectories at end of event, showing trajectory points
0038 # as markers 2 pixels wide:
0039 /vis/scene/add/trajectories smooth
0040 /vis/modeling/trajectories/create/drawByCharge
0041 /vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true
0042 /vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2
0043 # (if too many tracks cause core dump => /tracking/storeTrajectory 0)
0044 #
0045 # Draw hits at end of event:
0046 #/vis/scene/add/hits
0047 #
0048 # To draw only gammas:
0049 #/vis/filtering/trajectories/create/particleFilter
0050 #/vis/filtering/trajectories/particleFilter-0/add gamma
0051 #
0052 # To invert the above, drawing all particles except gammas,
0053 # keep the above two lines but also add:
0054 #/vis/filtering/trajectories/particleFilter-0/invert true
0055 #
0056 # Many other options are available with /vis/modeling and /vis/filtering.
0057 # For example, to select colour by particle ID:
0058 #/vis/modeling/trajectories/create/drawByParticleID
0059 #/vis/modeling/trajectories/drawByParticleID-0/set e- blue
0060 #
0061 # To superimpose all of the events from a given run:
0062 /vis/scene/endOfEventAction accumulate
0063 #
0064 # Re-establish auto refreshing and verbosity:
0065 /vis/viewer/set/autoRefresh true
0066 /vis/verbose warnings
0067 #
0068 # For file-based drivers, use this to create an empty detector view:
0069 #/vis/viewer/flush
0070 #
0071 # set magnetic field for visualization only, and limit
0072 # the step for a proper visualization of the tracjectories
0073 #
0074 #/calor/setField 4 tesla
0075 #/tracking/stepMax 1 m
0076 #/tracking/stepMax 0.25 cm
0077
0078
0079