Geant4 Cross Reference |
1 # Macro file for the visualization setting in 1 # Macro file for the visualization setting in the initialization phase 2 # of the field05 example. 2 # of the field05 example. 3 # 3 # 4 # Open a viewer << 4 # Create a scene handler for a specific graphics system 5 /vis/open << 5 # (Edit the next line(s) to choose another graphic system) 6 # This opens the default viewer - see examples << 6 /vis/open OGL 600x600-0+0 7 # more comprehensive overview of options. Also << 8 # 7 # 9 # Draw detector 8 # Draw detector 10 /vis/drawVolume 9 /vis/drawVolume 11 # 10 # 12 # Draw trajectories at end of event, showing t 11 # Draw trajectories at end of event, showing trajectory points as 13 # markers of size 2 pixels 12 # markers of size 2 pixels 14 /vis/scene/add/trajectories 13 /vis/scene/add/trajectories 15 #/vis/modeling/trajectories/create/drawByCharg 14 #/vis/modeling/trajectories/create/drawByCharge 16 #/vis/modeling/trajectories/drawByCharge-0/def 15 #/vis/modeling/trajectories/drawByCharge-0/default/setDrawStepPts true 17 #/vis/modeling/trajectories/drawByCharge-0/def 16 #/vis/modeling/trajectories/drawByCharge-0/default/setStepPtsSize 2 18 # (if too many tracks cause core dump => /trac 17 # (if too many tracks cause core dump => /tracking/storeTrajectory 0) 19 # 18 # 20 # To draw gammas only 19 # To draw gammas only 21 #/vis/filtering/trajectories/create/particleFi 20 #/vis/filtering/trajectories/create/particleFilter 22 #/vis/filtering/trajectories/particleFilter-0/ 21 #/vis/filtering/trajectories/particleFilter-0/add gamma 23 # 22 # 24 # To draw charged particles only 23 # To draw charged particles only 25 #/vis/filtering/trajectories/particleFilter-0/ 24 #/vis/filtering/trajectories/particleFilter-0/invert true 26 # 25 # 27 # To draw positive charge particl only 26 # To draw positive charge particl only 28 #/vis/filtering/trajectories/create/chargeFilt 27 #/vis/filtering/trajectories/create/chargeFilter 29 #/vis/filtering/trajectories/chargeFilter-0/ad 28 #/vis/filtering/trajectories/chargeFilter-0/add +1 30 # 29 # 31 # Many other options available with /vis/model 30 # Many other options available with /vis/modeling and /vis/filtering. 32 # For example, select colour by particle ID 31 # For example, select colour by particle ID 33 /vis/modeling/trajectories/create/drawByPartic 32 /vis/modeling/trajectories/create/drawByParticleID 34 /vis/modeling/trajectories/drawByParticleID-0/ 33 /vis/modeling/trajectories/drawByParticleID-0/set e- blue 35 /vis/modeling/trajectories/drawByParticleID-0/ 34 /vis/modeling/trajectories/drawByParticleID-0/set mu+ green 36 /vis/modeling/trajectories/drawByParticleID-0/ 35 /vis/modeling/trajectories/drawByParticleID-0/set e+ red 37 /vis/modeling/trajectories/drawByParticleID-0/ 36 /vis/modeling/trajectories/drawByParticleID-0/set gamma gray 38 /vis/modeling/trajectories/drawByParticleID-0/ 37 /vis/modeling/trajectories/drawByParticleID-0/set nu_e yellow 39 /vis/modeling/trajectories/drawByParticleID-0/ 38 /vis/modeling/trajectories/drawByParticleID-0/set anti_nu_mu yellow 40 # 39 # 41 /vis/scene/endOfEventAction accumulate 40 /vis/scene/endOfEventAction accumulate 42 # 41 #