Import Geant4 3.2.0 source tree
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
#######################################################################
|
||||
# MACRO FILE NAME: exN03Tree0.mac #
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: #
|
||||
# June 20, 2001 #
|
||||
# #
|
||||
# CONTENTS: A macro to demonstrate ASCII DTREE #
|
||||
# #
|
||||
# USAGE: #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Tree0.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix / Windows #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# #
|
||||
# % setenv G4VIS_BUILD_ASCIITREE_DRIVER 1 #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_USE_ASCIITREE 1 #
|
||||
# #
|
||||
# VERBOSE LEVEL: #
|
||||
# #
|
||||
# < 10: - does not print daughters of repeated logical volumes. #
|
||||
# - does not repeat replicas. #
|
||||
# >= 10: prints all physical volumes. #
|
||||
# For level of detail add: #
|
||||
# >= 0: prints physical volume name. #
|
||||
# >= 1: prints logical volume name. #
|
||||
# >= 2: prints solid name and type. #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# * The geometry tree is displayed in the stdout. #
|
||||
# #
|
||||
# * The compound command #
|
||||
# "/vis/drawTree [<physical-volume-name>] [<system>]" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# /vis/open system #
|
||||
# /vis/drawVolume PV-name #
|
||||
# #
|
||||
# The PV-name "world" is always means the world volume, #
|
||||
# whatever its real name, e.g., "World" in example N03, is. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
# Draw the whole geometry tree
|
||||
/vis/drawTree
|
||||
|
||||
# Draw a part of tree
|
||||
/vis/drawTree Gap
|
||||
|
||||
# Change the level to display details
|
||||
/vis/ASCIITree/verbose 1
|
||||
/vis/drawTree
|
||||
|
||||
# Change the level to display details
|
||||
/vis/ASCIITree/verbose 2
|
||||
/vis/drawTree
|
||||
|
||||
# Change the level to display details
|
||||
/vis/ASCIITree/verbose 10
|
||||
/vis/drawTree
|
||||
@@ -0,0 +1,67 @@
|
||||
#######################################################################
|
||||
# MACRO FILE NAME: exN03Tree0.mac #
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: #
|
||||
# June 20, 2001 #
|
||||
# #
|
||||
# CONTENTS: A macro to demonstrate GAG DTREE #
|
||||
# #
|
||||
# USAGE: #
|
||||
# * Edit exampleN03.cc to use the GAG interface #
|
||||
# % $G4BINDIR/exampleN03 #
|
||||
# Idle> /control/execute visTutor/exN03Tree1.mac #
|
||||
# #
|
||||
# REQUIRED PLATFORMS & SOFTWARES: Unix/Windows, GAG (Java version) #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
|
||||
# #
|
||||
# % setenv G4VIS_BUILD_GAGTREE_DRIVER 1 #
|
||||
# #
|
||||
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
|
||||
# (See geant4/source/visualization/README for details.) #
|
||||
# #
|
||||
# % setenv G4VIS_USE_GAGTREE 1 #
|
||||
# #
|
||||
# VERBOSE LEVEL: #
|
||||
# #
|
||||
# < 10: - does not print daughters of repeated logical volumes. #
|
||||
# - does not repeat replicas. #
|
||||
# >= 10: prints all physical volumes. #
|
||||
# For level of detail add: #
|
||||
# >= 0: prints physical volume name. #
|
||||
# >= 1: prints logical volume name. #
|
||||
# >= 2: prints solid name and type. #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# * The geometry tree is displayed in the stdout. #
|
||||
# #
|
||||
# * The compound command #
|
||||
# "/vis/drawTree [<physical-volume-name>] [<system>]" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# /vis/open system #
|
||||
# /vis/drawVolume PV-name #
|
||||
# #
|
||||
# The PV-name "world" is always means the world volume, #
|
||||
# whatever its real name, e.g., "World" in example N03, is. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
# Draw the whole geometry tree
|
||||
/vis/drawTree world GAGTree
|
||||
|
||||
# Draw a part of tree
|
||||
/vis/drawTree Gap GAGTree
|
||||
|
||||
# Change the level to display details
|
||||
/vis/GAGTree/verbose 1
|
||||
/vis/drawTree world GAGTree
|
||||
|
||||
# Change the level to display details
|
||||
/vis/GAGTree/verbose 2
|
||||
/vis/drawTree world GAGTree
|
||||
|
||||
# Change the level to display details
|
||||
/vis/GAGTree/verbose 10
|
||||
/vis/drawTree world GAGTree
|
||||
@@ -3,11 +3,13 @@
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: November 10, 1999 #
|
||||
# May 20, 2000 #
|
||||
# June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# DATE: #
|
||||
# June 20, 2001 #
|
||||
# November 26, 2000 #
|
||||
# October 17, 2000 #
|
||||
# June 06, 2000 #
|
||||
# May 20, 2000 #
|
||||
# November 10, 1999 #
|
||||
# #
|
||||
# CONTENTS: A simplest macro to demonstrate visualization of #
|
||||
# detector geometry and events #
|
||||
@@ -34,7 +36,7 @@
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# The compound command "/vis/open <vis-driver-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
# /vis/sceneHandler/create $1 #
|
||||
@@ -48,11 +50,10 @@
|
||||
# /vis/sceneHandler/attach #
|
||||
# /vis/viewer/refresh #
|
||||
# #
|
||||
# WARNING: You need one more command "/vis/viewer/update" for #
|
||||
# flushing in using post-processin visualization drivers #
|
||||
# WARNING: You should execute "/vis/viewer/update" after #
|
||||
# "/vis/drawVolume" in order to complete visualization #
|
||||
# when you use post-processin visualization drivers #
|
||||
# such as the DAWNFILE, VRMLFILE, OpenGL Motif drivers. #
|
||||
# You can execute, e.g. "/vis/draw/axes" before executing #
|
||||
# "/vis/viewer/update" to visualize coordinate axes. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
@@ -65,10 +66,8 @@
|
||||
/vis/open OGLIX
|
||||
|
||||
# Set camera
|
||||
# Note: Camera setting should be done
|
||||
# for each scene handler.
|
||||
/vis/camera/reset
|
||||
#/vis/camera/viewpoint 70 20
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/viewpointThetaPhi 70 20
|
||||
|
||||
# Visualize of the whole detector geometry
|
||||
/vis/drawVolume
|
||||
@@ -83,7 +82,7 @@
|
||||
# * In order to make the file "g4_XX.eps" printable,
|
||||
# append the "showpage" PostScript command to the file.
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
# or by editing the EPS file by hand.
|
||||
#
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
@@ -110,11 +109,9 @@
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Set camera
|
||||
# Note: Camera setting should be done
|
||||
# for each scene handler.
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 1.2
|
||||
/vis/camera/viewpoint 20 70
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 1.5
|
||||
/vis/viewer/viewpointThetaPhi 70 20
|
||||
|
||||
# Visualize events added to the current scene
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
@@ -3,11 +3,13 @@
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: November 10, 1999 #
|
||||
# May 20, 2000 #
|
||||
# June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# DATE: #
|
||||
# June 20, 2001 #
|
||||
# November 26, 2000 #
|
||||
# October 17, 2000 #
|
||||
# June 06, 2000 #
|
||||
# May 20, 2000 #
|
||||
# November 10, 1999 #
|
||||
# #
|
||||
# CONTENTS: A basic macro for visualization of detector geometry #
|
||||
# #
|
||||
@@ -33,7 +35,7 @@
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# The compound command "/vis/open <vis-driver-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
# /vis/sceneHandler/create $1 #
|
||||
@@ -47,11 +49,10 @@
|
||||
# /vis/sceneHandler/attach #
|
||||
# /vis/viewer/refresh #
|
||||
# #
|
||||
# WARNING: You need one more command "/vis/viewer/update" for #
|
||||
# flushing in using post-processin visualization drivers #
|
||||
# WARNING: You should execute "/vis/viewer/update" after #
|
||||
# "/vis/drawVolume" in order to complete visualization #
|
||||
# when you use post-processin visualization drivers #
|
||||
# such as the DAWNFILE, VRMLFILE, OpenGL Motif drivers. #
|
||||
# You can execute, e.g. "/vis/draw/axes" before executing #
|
||||
# "/vis/viewer/update" to visualize coordinate axes. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
@@ -65,16 +66,16 @@
|
||||
|
||||
# Visualize the detector geometry
|
||||
# with the defalut camera parameters
|
||||
/vis/camera/reset
|
||||
/vis/viewer/reset
|
||||
/vis/drawVolume
|
||||
/vis/viewer/update
|
||||
|
||||
# Slide show (spinning) of the view visualized above.
|
||||
# Draw 60 frames with steps of 3 degrees.
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 20 20
|
||||
/vis/camera/zoom 0.8
|
||||
/vis/camera/spin 60 3
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/viewpointThetaPhi 20 20
|
||||
/vis/viewer/zoom 0.8
|
||||
/vis/camera/spin 60 3
|
||||
|
||||
# Bird's-eye view of the detector geometry
|
||||
#
|
||||
@@ -84,15 +85,14 @@
|
||||
# x-axis:red, y-axis:green, z-axis:blue
|
||||
# origin: (0,0,0), length: 500
|
||||
#
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 20 70
|
||||
/vis/camera/zoom 0.8
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/viewpointThetaPhi 20 70
|
||||
/vis/viewer/zoom 0.8
|
||||
/vis/drawVolume
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/viewer/update
|
||||
|
||||
##########################################################
|
||||
# Visualization with DAWNFILE driver
|
||||
# Visualization with the DAWNFILE driver
|
||||
#
|
||||
# * Each visualized view is saved to a file "g4_XX.eps"
|
||||
# with the "vectorized" PostScript format.
|
||||
@@ -100,7 +100,7 @@
|
||||
# * In order to make the file "g4_XX.eps" printable,
|
||||
# append the "showpage" PostScript command to the file.
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
# or by editing the EPS file by hand.
|
||||
#
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
@@ -112,43 +112,52 @@
|
||||
|
||||
# Bird's-eye view of a detector component (Absorber)
|
||||
# viewpoint : (theta,phi) = (35*deg, 35*deg),
|
||||
# zoom factor: 0.9 of the full screen size
|
||||
# zoom factor: 1.1 of the full screen size
|
||||
# coordinate axes:
|
||||
# x-axis:red, y-axis:green, z-axis:blue
|
||||
# origin: (0,0,0), length: 500
|
||||
#
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/drawVolume Absorber
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Absorber
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 1.1
|
||||
/vis/viewer/viewpointThetaPhi 35 35
|
||||
/vis/scene/create
|
||||
/vis/scene/add/volume Absorber
|
||||
/vis/scene/add/axes 0 0 0 500
|
||||
/vis/scene/add/text 0 0 0 mm 40 -100 -120 Absorber
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/refresh
|
||||
/vis/viewer/update
|
||||
|
||||
# Bird's-eye view of a detector component (Gap)
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/drawVolume Gap
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Gap
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 1.1
|
||||
/vis/viewer/viewpointThetaPhi 35 35
|
||||
/vis/scene/create
|
||||
/vis/scene/add/volume Gap
|
||||
/vis/scene/add/axes 0 0 0 500
|
||||
/vis/scene/add/text 0 0 0 mm 50 -100 -120 Gap
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/refresh
|
||||
/vis/viewer/update
|
||||
|
||||
# Bird's-eye view of the whole detector components
|
||||
# * The argument "world" of the command
|
||||
# "/vis/scene/add/volume" is omittable.
|
||||
# * "/vis/set/culling off" makes the invisible
|
||||
# * "/vis/viewer/set/culling false" makes the invisible
|
||||
# world volume visible.
|
||||
# (The invisibility of the world volume is set
|
||||
# in ExN03DetectorConstruction.cc.)
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/set/culling off
|
||||
/vis/drawVolume
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -50 -200 world
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 1.1
|
||||
/vis/viewer/viewpointThetaPhi 35 35
|
||||
/vis/viewer/set/culling global false
|
||||
/vis/scene/create
|
||||
/vis/scene/add/volume
|
||||
/vis/scene/add/axes 0 0 0 500
|
||||
/vis/scene/add/text 0 0 0 mm 50 -100 -190 World
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/refresh
|
||||
/vis/viewer/update
|
||||
|
||||
# Make the culling on for next visualization
|
||||
/vis/set/culling on
|
||||
/vis/viewer/set/culling global true
|
||||
|
||||
@@ -3,11 +3,13 @@
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: November 10, 1999 #
|
||||
# May 20, 2000 #
|
||||
# June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# DATE: #
|
||||
# June 20, 2001 #
|
||||
# November 26, 2000 #
|
||||
# October 17, 2000 #
|
||||
# June 06, 2000 #
|
||||
# May 20, 2000 #
|
||||
# November 10, 1999 #
|
||||
# #
|
||||
# CONTENTS: A basic macro for visualization of events #
|
||||
# #
|
||||
@@ -33,7 +35,7 @@
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# The compound command "/vis/open <vis-driver-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
# /vis/sceneHandler/create $1 #
|
||||
@@ -46,9 +48,9 @@
|
||||
#################################################
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
#####################################################
|
||||
# Visualization with OGLSX (OpenGL Stored X) driver
|
||||
#####################################################
|
||||
#######################################################
|
||||
# Visualization with the OGLSX (OpenGL Stored X) driver
|
||||
#######################################################
|
||||
|
||||
# Invoke the OGLSX driver
|
||||
/vis/open OGLSX
|
||||
@@ -56,10 +58,10 @@
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Attach the current visualization driver
|
||||
# Attach the current scene handler
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
@@ -69,18 +71,17 @@
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Set drawing style to "surface"
|
||||
/vis/viewer/set/style surface
|
||||
|
||||
# Set camera
|
||||
# Set viewing parameters
|
||||
# viewpoint : (theta,phi) = (10*deg, 10*deg).
|
||||
# zoom factor: 0.9 x (full screen size)
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 10 10
|
||||
/vis/camera/zoom 0.9
|
||||
# drawing style: surface
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/set/style surface
|
||||
/vis/viewer/viewpointThetaPhi 10 10
|
||||
/vis/viewer/zoom 0.9
|
||||
|
||||
# Generate one event and visualize it.
|
||||
/run/beamOn 1
|
||||
/run/beamOn 1
|
||||
|
||||
# Slide show (spinning).
|
||||
# Draw 18 frames with steps of 20 degrees.
|
||||
@@ -92,7 +93,7 @@
|
||||
|
||||
|
||||
##########################################################
|
||||
# Visualization with DAWNFILE driver
|
||||
# Visualization with the DAWNFILE driver
|
||||
#
|
||||
# * Each visualized view is saved to a file "g4_XX.eps"
|
||||
# with the "vectorized" PostScript format.
|
||||
@@ -100,7 +101,7 @@
|
||||
# * In order to make the file "g4_XX.eps" printable,
|
||||
# append the "showpage" PostScript command to the file
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
# or by editing the EPS file by hand.
|
||||
#
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
@@ -113,10 +114,10 @@
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Attach the current visualization driver
|
||||
# Attach the current scene handler
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
@@ -126,22 +127,21 @@
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Set the drawing style to "wireframe".
|
||||
/vis/viewer/set/style wireframe
|
||||
|
||||
# Visualize many events (bird's eye view)
|
||||
# viewpoint : (theta,phi) = (45*deg, 45*deg)
|
||||
# zoom factor: 1.5 x (full screen size)
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 45 45
|
||||
/vis/camera/zoom 1.5
|
||||
# drawing style: wireframe
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/set/style wireframe
|
||||
/vis/viewer/viewpointThetaPhi 45 45
|
||||
/vis/viewer/zoom 1.5
|
||||
/run/beamOn 50
|
||||
|
||||
# Visualize many events (zoomed-up view)
|
||||
# viewpoint : (theta,phi) = (90*deg, 0)
|
||||
# zoom factor: 5 x (full screen size)
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 90 0
|
||||
/vis/camera/zoom 5
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/set/style wireframe
|
||||
/vis/viewer/viewpointThetaPhi 90 0
|
||||
/vis/viewer/zoom 5
|
||||
/run/beamOn 50
|
||||
|
||||
|
||||
@@ -3,11 +3,13 @@
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: November 10, 1999 #
|
||||
# May 20, 2000 #
|
||||
# June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# DATE: #
|
||||
# June 20, 2001 #
|
||||
# November 26, 2000 #
|
||||
# October 17, 2000 #
|
||||
# June 06, 2000 #
|
||||
# May 20, 2000 #
|
||||
# November 10, 1999 #
|
||||
# #
|
||||
# CONTENTS: A basic macro for demonstrating various drawing styles #
|
||||
# #
|
||||
@@ -33,7 +35,7 @@
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# The compound command "/vis/open <vis-driver-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
# /vis/sceneHandler/create $1 #
|
||||
@@ -46,9 +48,9 @@
|
||||
##############################################
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
######################################################
|
||||
# Visualization with OGLIX (OpenGL Immediate X) driver
|
||||
######################################################
|
||||
###########################################################
|
||||
# Visualization with the OGLIX (OpenGL Immediate X) driver
|
||||
###########################################################
|
||||
|
||||
# Invoke the OGLIX driver
|
||||
/vis/open OGLIX
|
||||
@@ -56,10 +58,10 @@
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Attach the current visualization driver
|
||||
# Attach the current scene handler
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
@@ -71,13 +73,13 @@
|
||||
|
||||
# Bird-eye view of events with
|
||||
# the hidden-surface drawing style
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 45 45
|
||||
/vis/viewer/set/style surface
|
||||
/run/beamOn 10
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/viewpointThetaPhi 45 45
|
||||
/vis/viewer/set/style surface
|
||||
/run/beamOn 10
|
||||
|
||||
##########################################################
|
||||
# Visualization with DAWNFILE driver
|
||||
# Visualization with the DAWNFILE driver
|
||||
#
|
||||
# * Each visualized view is saved to a file "g4_XX.eps"
|
||||
# with the "vectorized" PostScript format.
|
||||
@@ -85,7 +87,7 @@
|
||||
# * In order to make the file "g4_XX.eps" printable,
|
||||
# append the "showpage" PostScript command to the file.
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
# or by editing the EPS file by hand.
|
||||
#
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
@@ -99,10 +101,10 @@
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
|
||||
# Attach the current visualization driver
|
||||
# Attach the current scene handler
|
||||
# to the current scene (omitable)
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
@@ -112,28 +114,25 @@
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Set camera
|
||||
# Camera is zoomed up by 1.5 times of the standard setting.
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 1.5
|
||||
/vis/camera/viewpoint 45 45
|
||||
|
||||
# Bird-eye view of events with the
|
||||
# wireframe drawing style
|
||||
/vis/viewer/set/style wireframe
|
||||
/run/beamOn 5
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 1.5
|
||||
/vis/viewer/viewpointThetaPhi 45 45
|
||||
/vis/viewer/set/style wireframe
|
||||
/run/beamOn 5
|
||||
|
||||
# Bird-eye view of events with the
|
||||
# hidden-surface drawing style
|
||||
/vis/viewer/set/style surface
|
||||
/run/beamOn 50
|
||||
/vis/viewer/set/style surface
|
||||
/run/beamOn 50
|
||||
|
||||
# Cull detector geometry and show only trajectories.
|
||||
/vis/camera/reset
|
||||
/vis/set/culling on
|
||||
/vis/set/cull_by_density on 999
|
||||
/vis/viewer/set/style wireframe
|
||||
/run/beamOn 10
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/set/culling global true
|
||||
/vis/viewer/set/culling density true 999
|
||||
/vis/viewer/set/style wireframe
|
||||
/run/beamOn 10
|
||||
|
||||
# Reset the culling policy for next visualization
|
||||
# The default culling policy is:
|
||||
@@ -141,5 +140,4 @@
|
||||
# invisible : on
|
||||
# low density : off
|
||||
# covered daughter: off
|
||||
/vis/set/cull_by_density off
|
||||
|
||||
/vis/viewer/set/culling density false
|
||||
|
||||
@@ -3,9 +3,11 @@
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: June 06, 2000 #
|
||||
# October 17, 2000 #
|
||||
# DATE: #
|
||||
# June 20, 2001 #
|
||||
# November 26, 2000 #
|
||||
# October 17, 2000 #
|
||||
# June 06, 2000 #
|
||||
# #
|
||||
# CONTENTS: An example for the compound command, #
|
||||
# "/vis/specify <logical_volume_name>" #
|
||||
@@ -29,7 +31,7 @@
|
||||
# % setenv G4VIS_USE_DAWNFILE 1 #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The compound command "/vis/open <graphics-system-name>" #
|
||||
# The compound command "/vis/open <vis-driver-name>" #
|
||||
# is equivalent to the following set of commands: #
|
||||
# #
|
||||
# /vis/sceneHandler/create $1 #
|
||||
@@ -44,16 +46,31 @@
|
||||
# /vis/viewer/refresh #
|
||||
# /geometry/print $1 #
|
||||
# #
|
||||
# WARNING: You need one more command "/vis/viewer/update" for #
|
||||
# flushing in using post-processin visualization drivers #
|
||||
# WARNING: You should execute "/vis/viewer/update" after #
|
||||
# "/vis/specify" in order to complete visualization #
|
||||
# when you use post-processin visualization drivers #
|
||||
# such as the DAWNFILE, VRMLFILE, OpenGL Motif drivers. #
|
||||
# You can execute, e.g. "/vis/draw/axes" before executing #
|
||||
# "/vis/viewer/update" to visualize coordinate axes. #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
##########################################################
|
||||
# Visualization with DAWNFILE driver
|
||||
# Visualization with the OGLIX driver
|
||||
##########################################################
|
||||
|
||||
# Invoke the OGLIX driver
|
||||
/vis/open OGLIX
|
||||
|
||||
# Set camera
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 0.9
|
||||
/vis/viewer/viewpointThetaPhi 35 35
|
||||
|
||||
# Visualize a selected logical volume
|
||||
/vis/specify Absorber
|
||||
/vis/viewer/update
|
||||
|
||||
##########################################################
|
||||
# Visualization with the DAWNFILE driver
|
||||
#
|
||||
# * Each visualized view is saved to a file "g4_XX.eps"
|
||||
# with the "vectorized" PostScript format.
|
||||
@@ -61,32 +78,36 @@
|
||||
# * In order to make the file "g4_XX.eps" printable,
|
||||
# append the "showpage" PostScript command to the file.
|
||||
# You can do it with the 4th page of the DAWN GUI panel
|
||||
# or by editing the file by hand.
|
||||
# or by editing the EPS file by hand.
|
||||
#
|
||||
# * Set an environmental variable if you wish to
|
||||
# skip DAWN GUI:
|
||||
# % setenv G4DAWNFILE_VIEWER "dawn -d"
|
||||
##########################################################
|
||||
|
||||
|
||||
# Invoke the DAWNFILE driver
|
||||
/vis/open DAWNFILE
|
||||
|
||||
# Set camera
|
||||
# Note: Camera setting should be done
|
||||
# for each scene handler.
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 0.9
|
||||
/vis/viewer/viewpointThetaPhi 35 35
|
||||
|
||||
# Visualize a selected logical volume (1)
|
||||
/vis/specify Absorber
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 40 -100 -200 LogVol:Absorber
|
||||
/vis/scene/create
|
||||
/vis/scene/add/logicalVolume Absorber
|
||||
/vis/scene/add/axes 0 0 0 500
|
||||
/vis/scene/add/text 0 0 0 mm 40 -100 -200 LogVol:Absorber
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/refresh
|
||||
/geometry/print
|
||||
/vis/viewer/update
|
||||
|
||||
# Visualize a selected logical volume (2)
|
||||
/vis/specify Gap
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 40 -100 -200 LogVol:Gap
|
||||
/vis/scene/create
|
||||
/vis/scene/add/logicalVolume Gap
|
||||
/vis/scene/add/axes 0 0 0 500
|
||||
/vis/scene/add/text 0 0 0 mm 40 -100 -200 LogVol:Gap
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/refresh
|
||||
/geometry/print
|
||||
/vis/viewer/update
|
||||
|
||||
@@ -44,14 +44,14 @@
|
||||
/vis/sceneHandler/create Xo
|
||||
/vis/viewer/create
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
/tracking/storeTrajectory 1
|
||||
#/vis/scene/add/trajectories
|
||||
|
||||
# Bird-eye view of events
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 45 45
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/viewpointThetaPhi 45 45
|
||||
|
||||
/run/beamOn 1
|
||||
|
||||
|
||||
@@ -34,14 +34,14 @@
|
||||
/vis/sceneHandler/create OIX
|
||||
/vis/viewer/create
|
||||
|
||||
# Add detector geometry to the current scene
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
#/vis/scene/add/trajectories
|
||||
/tracking/storeTrajectory 1
|
||||
|
||||
# Bird-eye view of events
|
||||
/vis/camera/reset
|
||||
/vis/camera/viewpoint 45 45
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/viewpointThetaPhi 45 45
|
||||
|
||||
# Attach the just created Go scene graph to the viewer.
|
||||
/vis/viewer/update
|
||||
|
||||
@@ -3,8 +3,10 @@
|
||||
# #
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: October 17, 2000 #
|
||||
# DATE: #
|
||||
# June 20, 2001 #
|
||||
# November 26, 2000 #
|
||||
# October 17, 2000 #
|
||||
# #
|
||||
# CONTENTS: A macro to demonstrate the VRMLFILE driver #
|
||||
# #
|
||||
@@ -34,15 +36,18 @@
|
||||
# ( The default value is "1".) #
|
||||
# #
|
||||
# ADDITIONAL NOTES: #
|
||||
# The VRML-file viewer "vrmlview" is obtainable from the following #
|
||||
# Web site: #
|
||||
# http://www.sim.no/downloads.html #
|
||||
# #
|
||||
#######################################################################
|
||||
|
||||
###################################################
|
||||
# Visualization of detector geometry and events
|
||||
# Visualization of detector geometry and events
|
||||
# with the VRML2FILE driver.
|
||||
#
|
||||
# Note: "/vis/viewer/set/style wireframe" means
|
||||
# "half-transparent" in the VRML2FILE driver.
|
||||
# Note: "/vis/viewer/set/style wireframe" means
|
||||
# "half-transparent" in the VRML2FILE driver.
|
||||
# It is a convention of this driver.
|
||||
###################################################
|
||||
|
||||
@@ -52,12 +57,12 @@
|
||||
# Invoke the VRML2FILE driver
|
||||
/vis/open VRML2FILE
|
||||
|
||||
# Create a new scene
|
||||
# Create a new scene
|
||||
/vis/scene/create
|
||||
|
||||
# Attach the current scene handler
|
||||
# Attach the current scene handler
|
||||
# to the current scene
|
||||
/vis/sceneHandler/attach
|
||||
/vis/sceneHandler/attach
|
||||
|
||||
# Add the world volume to the current scene
|
||||
/vis/scene/add/volume
|
||||
@@ -65,7 +70,7 @@
|
||||
# Visualize one event added to the current scene
|
||||
# Note: The command /vis/scene/add/trajectories
|
||||
# is not necessary in exampleN03,
|
||||
# since the C++ method DrawTrajectory() is
|
||||
# since the C++ method DrawTrajectory() is
|
||||
# described in the event action.
|
||||
#/vis/scene/add/trajectories
|
||||
/vis/viewer/set/style wireframe
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
# AUTHOR(S): Satoshi Tanaka #
|
||||
# #
|
||||
# DATE: #
|
||||
# October 17, 2000 #
|
||||
# June 20, 2001 #
|
||||
# November 26, 2000 #
|
||||
# October 17, 2000 #
|
||||
# #
|
||||
# CONTENTS: A macro to demonstrate creation of a "multi-page" #
|
||||
# PostScript file #
|
||||
@@ -49,33 +50,38 @@
|
||||
# Invoke the DAWNFILE driver
|
||||
/vis/open DAWNFILE
|
||||
|
||||
# Generate page 1
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/drawVolume Absorber
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -150 -200 Page1/3:Absorber
|
||||
# Set viewing parameters
|
||||
/vis/viewer/reset
|
||||
/vis/viewer/zoom 0.9
|
||||
/vis/viewer/viewpointThetaPhi 35 35
|
||||
|
||||
# Generate page 1: Absorber
|
||||
/vis/scene/create
|
||||
/vis/scene/add/volume Absorber
|
||||
/vis/scene/add/axes 0 0 0 500
|
||||
/vis/scene/add/text 0 0 0 mm 30 -150 -200 Page1/3:Absorber
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/refresh
|
||||
/vis/viewer/update
|
||||
|
||||
# Generate page 2
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/drawVolume Gap
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Page2/3:Gap
|
||||
# Generate page 2: Gap
|
||||
/vis/scene/create
|
||||
/vis/scene/add/volume Gap
|
||||
/vis/scene/add/axes 0 0 0 500
|
||||
/vis/scene/add/text 0 0 0 mm 30 -100 -200 Page2/3:Gap
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/refresh
|
||||
/vis/viewer/update
|
||||
|
||||
# Generate page 3
|
||||
/vis/camera/reset
|
||||
/vis/camera/zoom 0.9
|
||||
/vis/camera/viewpoint 35 35
|
||||
/vis/set/culling off
|
||||
/vis/drawVolume
|
||||
/vis/draw/axes 0 0 0 500
|
||||
/vis/draw/text 0 0 0 mm 50 -100 -200 Page3/3:world
|
||||
# Generate page 3: World
|
||||
/vis/viewer/set/culling global false
|
||||
/vis/scene/create
|
||||
/vis/scene/add/volume
|
||||
/vis/scene/add/axes 0 0 0 500
|
||||
/vis/scene/add/text 0 0 0 mm 50 -100 -200 Page3/3:world
|
||||
/vis/sceneHandler/attach
|
||||
/vis/viewer/refresh
|
||||
/vis/viewer/update
|
||||
|
||||
# Make the culling on for next visualization
|
||||
/vis/set/culling on
|
||||
/vis/viewer/set/culling global true
|
||||
|
||||
Reference in New Issue
Block a user