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