############################################################################### # # # vis.mac # # Initialisation macro for interactive mode # # # ############################################################################### # /control/verbose 1 /run/verbose 1 #/control/saveHistory # # Create a scene handler for a specific graphics system # (Edit the next line(s) to choose another graphic system) #/vis/open OGLSX 600 /vis/open OGL #/vis/open OGL 600 #/vis/open HepRepFile #/vis/heprep/setFileDir HepRepOutput/ #/vis/open DAWNFILE #/vis/open VRML2FILE # # Create empty scene /vis/scene/create # # Change background color from black to white /vis/viewer/set/background cyan # # Add detector to scene /vis/drawVolume # # Nicer view # /vis/viewer/set/viewpointThetaPhi 90 0 /vis/viewer/set/viewpointVector 0.5 0.5 0.5 /vis/viewer/zoom 2 # # Add axis /vis/scene/add/axes -0.3 0.0 0.0 # /vis/scene/add/scale # # Enable visualisation /vis/enable # #/tracking/storeTrajectory 1 #/vis/scene/add/trajectories #/vis/reviewKeptEvents # ### Visualization of events /vis/scene/add/trajectories smooth /vis/modeling/trajectories/create/drawByParticleID /vis/modeling/trajectories/drawByParticleID-0/default/setDrawStepPts true /vis/modeling/trajectories/drawByParticleID-0/default/setStepPtsSize 2 # ### Colors of species # neutron = blue /vis/modeling/trajectories/drawByParticleID-0/set neutron blue # positron = red /vis/modeling/trajectories/drawByParticleID-0/set e+ red # gammas = yellow /vis/modeling/trajectories/drawByParticleID-0/set gamma yellow # # Accumulate event in the same view /vis/scene/endOfEventAction accumulate 10