Import Geant4 6.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 10:56:29 +02:00
parent 1d812b78b1
commit e083ffb441
1415 changed files with 111223 additions and 21207 deletions
@@ -0,0 +1,66 @@
#######################################################################
# MACRO FILE NAME: exN03Vis10.mac #
# #
# AUTHOR(S): Guy Barrand #
# #
# DATE: June 09, 2000 #
# #
# CONTENTS: A basic macro for demonstrating Inventor driver #
# #
# USAGE: % $G4BINDIR/exampleN03 visTutor/exN03Vis6.mac #
# #
# REQUIRED PLATFORMS & SOFTWARES: Windows, #
# some Inventor (TGS, SGI, Coin) #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
# (See geant4/source/visualization/README for details.) #
# #
# G4VIS_BUILD_OIWIN32_DRIVER #
# G4UI_BUILD_WIN32_SESSION #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
# (See geant4/source/visualization/README for details.) #
# #
# G4VIS_USE_OIWIN32 #
# G4UI_USE_WIN32 #
# #
# ADDITIONAL NOTES: #
# #
#######################################################################
# Create "scene-0"
/vis/scene/create
# Invoke the OpenInventor driver
/vis/sceneHandler/create OIWin32
/vis/viewer/create
# 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/viewer/reset
/vis/viewer/set/viewpointThetaPhi 45 45
# Attach the just created Go scene graph to the viewer.
/vis/viewer/update
# Attach the just created Go scene graph to the viewer.
/vis/viewer/update
/vis/scene/notifyHandlers
/run/beamOn 1
#######################################################################
# Controls on an Inventor examiner viewer are : #
# - in picking mode (cursor is the upper left arrow) #
# Ctrl + pick an volume : see daughters. #
# Shift + pick an volume : see mother. #
# - in viewing mode (cursor is the hand) #
# Left-button + pointer move : rotate. #
# Ctrl+Left-button + pointer move : pane. #
# Ctrl+Shift+Left-button + pointer move : scale. #
# Middle-button + pointer move : pane. #
# #
#######################################################################
+157
View File
@@ -0,0 +1,157 @@
#######################################################################
# MACRO FILE NAME: exN03Vis1.mac #
# #
# AUTHOR(S): Guy Barrand dd #
# #
# DATE: #
# April 08, 2004 #
# #
# CONTENTS: A basic macro for visualization of detector geometry #
# #
# USAGE: % gmake visclean #
# % $G4BINDIR/exampleN03 #
# Idle> /control/execute visTutor/exN03Vis11.mac #
# #
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
# DAWN (version 3.85 or after) #
# gv (Ghostview), Tcl/Tk #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv OGLHOME ... (e.g. /usr/X11R6) #
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv G4VIS_USE_OPENGLX 1 #
# #
# ADDITIONAL NOTES: #
# The compound command "/vis/open <vis-driver-name>" #
# is equivalent to the following set of commands: #
# #
# /vis/sceneHandler/create $1 #
# /vis/viewer/create #
# #
# The compound command "/vis/drawVolume <physical-volume-name>" #
# is equivalent to the following set of commands: #
# #
# /vis/scene/create #
# /vis/scene/add/volume $1 #
# /vis/sceneHandler/attach #
# #
#######################################################################
###########################################
# Visualization of detector geometry
# with the OGLSXm (OpenGL Stored Motif) driver
###########################################
# Invoke the OGLSXm driver
/vis/open OGLSXm
# Bird's-eye view of the detector geometry
#
# viewpoint : (theta,phi) = (20*deg, 70*deg),
# zoom factor: 0.8 of the full screen size
#
/vis/viewer/reset
/vis/viewer/set/viewpointThetaPhi 20 70
/vis/viewer/zoom 0.8
/vis/drawVolume
# The following two commands "flush"
# the action of the current viewer.
# They are required for the post-processing drivers
# such as DAWNFILE, VRMLFILE, HepRep drivers, etc.
# For OpenGL drivers, these commands are not required
# but harmless even if they are described.
/vis/viewer/flush
##########################################################
# Visualization with the DAWNFILE driver
#
# * Each visualized view is saved to a file "g4_XX.eps"
# with the "vectorized" PostScript format.
#
# * Set an environmental variable if you wish to
# skip DAWN GUI:
# % setenv G4DAWNFILE_VIEWER "dawn -d"
##########################################################
# Invoke the DAWNFILE driver
/vis/open DAWNFILE
# Bird's-eye view of a detector component (Absorber)
# viewpoint : (theta,phi) = (35*deg, 35*deg),
# 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
# Scale: length = 10 cm, Orientation = z, color = red,
# placing_algorithm = manual,
# center = (-2.5 cm , -5 cm, 0 cm)
#
/vis/viewer/reset
/vis/viewer/zoom 1.1
/vis/viewer/set/viewpointThetaPhi 35 35
/vis/drawVolume Absorber
/vis/scene/add/axes 0 0 0 500 mm
/vis/scene/add/text 0 0 0 mm 40 -100 -140 Absorber
/vis/scene/add/scale 10 cm z 1 0 0 manual -2.5 -5 0 cm
# "Flush the action of all the existing viewers.
# Note: You should execute these commands, e.g.,
# when the current scene is modified.
/vis/scene/notifyHandlers
/vis/viewer/update
# FOR FUTURE UPDATION
#/vis/viewer/flushAll
# Bird's-eye view of a detector component (Gap)
/vis/viewer/reset
/vis/viewer/zoom 1.1
/vis/viewer/set/viewpointThetaPhi 35 35
/vis/drawVolume Gap
/vis/scene/add/axes 0 0 0 500 mm
/vis/scene/add/text 0 0 0 mm 50 -100 -140 Gap
/vis/scene/add/scale 10 cm z 1 0 0 manual -2.5 -5 0 cm
# "Flush the action of all the existing viewers.
/vis/scene/notifyHandlers
/vis/viewer/update
# FOR FUTURE UPDATION
#/vis/viewer/flushAll
# Bird's-eye view of the whole detector components (world)
# * The argument "world" of the command
# "/vis/scene/add/volume" is omittable.
# * "/vis/viewer/set/culling false" makes the invisible
# world volume visible.
# (The invisibility of the world volume is set
# in ExN03DetectorConstruction.cc.)
/vis/viewer/reset
/vis/viewer/zoom 1.1
/vis/viewer/set/viewpointThetaPhi 35 35
/vis/viewer/set/culling global false
/vis/drawVolume
/vis/scene/add/axes 0 0 0 500 mm
/vis/scene/add/text 0 0 0 mm 50 -100 -240 World
/vis/scene/add/scale 10 cm x 1 0 0
# "Flush the action of all the existing viewers.
/vis/scene/notifyHandlers
/vis/viewer/update
# FOR FUTURE UPDATION
#/vis/viewer/flushAll
# Make the culling on for next visualization
# Note: You may also use "/vis/viewer/reset"
# for this initialization.
/vis/viewer/set/culling global true
+101
View File
@@ -0,0 +1,101 @@
#######################################################################
# MACRO FILE NAME: exN03Vis9.mac #
# #
# AUTHOR(S): Guy Barrand
# #
# DATE: #
# Appril 08, 2004 #
# #
# CONTENTS: A simplest macro to demonstrate visualization of #
# detector geometry and events #
# #
# USAGE: % gmake visclean #
# % $G4BINDIR/exampleN03 #
# Idle> /control/execute visTutor/exN03Vis9.mac #
# #
# REQUIRED PLATFORMS & SOFTWARES: Windows, OpenGL #
# OPTIONAL : DAWN (version 3.85 or after) #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
# (See geant4/source/visualization/README for details.) #
# #
# G4VIS_BUILD_OPENGLWIN32_DRIVER #
# (G4UI_BUILD_WIN32_SESSION) #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
# (See geant4/source/visualization/README for details.) #
# #
# G4VIS_USE_OPENGLWIN32 #
# (G4UI_USE_WIN32) #
# #
# ADDITIONAL NOTES: #
# The compound command "/vis/open <vis-driver-name>" #
# is equivalent to the following set of commands: #
# #
# /vis/sceneHandler/create $1 #
# /vis/viewer/create #
# #
# The compound command "/vis/drawVolume <physical-volume-name>" #
# is equivalent to the following set of commands: #
# #
# /vis/scene/create #
# /vis/scene/add/volume $1 #
# /vis/sceneHandler/attach #
# #
#######################################################################
##############################################
# Visualization of detector geometry
# with the OGLIWin32 (OpenGL Immediate Windows) driver
##############################################
# Invoke the OGLIWin32 driver
/vis/open OGLIWin32
#/vis/open DAWNFILE
# Set camera
/vis/viewer/reset
/vis/viewer/set/viewpointThetaPhi 70 20
# Create an empty scene and add the detector geometry to it
/vis/drawVolume
# The following command "flush"
# the action of the current viewer.
# They are required for the post-processing drivers
# such as DAWNFILE, VRMLFILE, HepRep drivers, etc.
# For OpenGL drivers, these commands are not required
# but harmless even if they are described.
/vis/viewer/flush
#########################################################
# Visualization of events with the DAWNFILE driver
#
# * Each visualized view is saved to a file "g4_XX.eps"
# with the "vectorized" PostScript format.
#
# * Set an environmental variable if you wish to
# skip DAWN GUI:
# % setenv G4DAWNFILE_VIEWER "dawn -d"
##########################################################
# Invoke the DAWNFILE driver
/vis/open DAWNFILE
# Add the world volume to the current scene
/vis/drawVolume
# Add trajectories to the current scene
# Note: This command is not necessary in exampleN03,
# since the C++ method DrawTrajectory() is
# described in the event action.
#/vis/scene/add/trajectories
# Set camera
/vis/viewer/reset
/vis/viewer/zoom 1.5
/vis/viewer/set/viewpointThetaPhi 70 20
# Visualize events added to the current scene
/tracking/storeTrajectory 1
/run/beamOn 3
+12 -9
View File
@@ -15,15 +15,18 @@
#
# Vis menu :
/gui/addMenu vis Vis
/gui/addButton vis Vis0 "/control/execute visTutor/exN03Vis0.mac"
/gui/addButton vis Vis1 "/control/execute visTutor/exN03Vis1.mac"
/gui/addButton vis Vis2 "/control/execute visTutor/exN03Vis2.mac"
/gui/addButton vis Vis3 "/control/execute visTutor/exN03Vis3.mac"
/gui/addButton vis Vis4 "/control/execute visTutor/exN03Vis4.mac"
/gui/addButton vis Vis5 "/control/execute visTutor/exN03Vis5.mac"
/gui/addButton vis Vis6 "/control/execute visTutor/exN03Vis6.mac"
/gui/addButton vis Vis7 "/control/execute visTutor/exN03Vis7.mac"
/gui/addButton vis Vis8 "/control/execute visTutor/exN03Vis8.mac"
/gui/addButton vis Vis0(OGLIX) "/control/execute visTutor/exN03Vis0.mac"
/gui/addButton vis Vis1(OGLSX) "/control/execute visTutor/exN03Vis1.mac"
/gui/addButton vis Vis2(OGLSX) "/control/execute visTutor/exN03Vis2.mac"
/gui/addButton vis Vis3(OGLSX) "/control/execute visTutor/exN03Vis3.mac"
/gui/addButton vis Vis4(OGLIX) "/control/execute visTutor/exN03Vis4.mac"
/gui/addButton vis Vis5(OIX) "/control/execute visTutor/exN03Vis5.mac"
/gui/addButton vis Vis6(VRML2FILE) "/control/execute visTutor/exN03Vis6.mac"
/gui/addButton vis Vis7(DAWNFILE) "/control/execute visTutor/exN03Vis7.mac"
/gui/addButton vis Vis8(DAWNFILE) "/control/execute visTutor/exN03Vis8.mac"
/gui/addButton vis Vis9(OGLIWIN) "/control/execute visTutor/exN03Vis9.mac"
/gui/addButton vis Vis10(OIWin32) "/control/execute visTutor/exN03Vis10.mac"
/gui/addButton vis Vis11(OGLSXm) "/control/execute visTutor/exN03Vis11.mac"
#
# To limit the output flow in the "dump" widget :
/event/printModulo 100