Import Geant4 1.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:28:20 +02:00
parent aaa409b6ee
commit ca1c8cb059
2995 changed files with 106830 additions and 299600 deletions
+21 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.4 1999/05/31 14:48:07 maire Exp $
$Id: History,v 1.9 1999/11/09 21:40:43 stanaka Exp $
--------------------------------------------------
=========================================================
@@ -14,6 +14,26 @@ track of all tags.
----------------------------------------------------------
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
10th November 1999 Satoshi Tanaka (examples-V00-01-12)
- novice/N03 is updated
- Vis macros for N03 are updated for the latest updation of vis commands
(Introduction of /vis/viewer/update etc)
09-11-99 Satoshi Tanaka (examples-V00-01-11)
prerunN03.mac : /vis/viewer/update is appended
src/ExN03RunAction.cc: /vis/scene/notifyHandlers is in BeginOfRunAction()
/vis/viewer/update is in EndOfRunAction()
14-08-99 Satoshi Tanaka
TAG: examples-V00-01-02
Visualization tutorial macros are committed.
(exN03Vis0.mac,..., exN03Vis3.mac)
19-08-99 Michel Maire
- modify ExN03PhysicsList to keep the command setCut compatible
with cutForGamma ..etc ..
31-05-99 Guy Barrand, Michel Maire
- introduce a command interface based on Motif: G4UIXm
+14 -2
View File
@@ -1,4 +1,4 @@
$Id: README,v 1.2 1999/05/31 14:48:07 maire Exp $
$Id: README,v 1.4 1999/09/14 02:34:09 stanaka Exp $
-------------------------------------------------------------------
=========================================================
@@ -85,11 +85,23 @@ $Id: README,v 1.2 1999/05/31 14:48:07 maire Exp $
Optionaly one can choose to draw all particles, only the charged one,
or none. This command is defined in EventActionMessenger class.
NB: the visualization (with OpenGL) assumes two things:
NB 1: the visualization (with OpenGL driver) assumes two things:
1- the visualisation & interfaces categories have been compiled
with the environment variable G4VIS_BUILD_OPENGLX_DRIVER.
2- exampleN03.cc has been compiled with G4VIS_USE_OPENGLX.
NB 2: the visualization (with DAWNFILE driver) assumes two things:
1- the visualisation & interfaces categories have been compiled
with the environment variable G4VIS_BUILD_DAWNFILE_DRIVER.
2- exampleN03.cc has been compiled with G4VIS_USE_DAWNFILE.
NN 3: The macros "exN03VisX.mac" are tutorial macros for
visualization. They can be tried as:
% $G4BINDIR/exampleN03 exN03VisX.mac
For details, see comment lines described in the macro files.
These macros are designed to help your understanding the
User's Guide.
5- PHYSICS DEMO
The particle's type and the physic processes which will be available
+95
View File
@@ -0,0 +1,95 @@
#######################################################################
# MACRO FILE NAME: exN03Vis0.mac #
# #
# AUTHOR(S): Satoshi Tanaka #
# #
# DATE: November 10, 1999 #
# #
# CONTENTS: A simplest macro to demonstrate visualization of #
# detector geometry and events #
# #
# USAGE: % $G4BINDIR/exampleN03 exN03Vis0.mac #
# #
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
# DAWN (version 3.80 of after) #
# Ghostview, Tcl/Tk #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv OGLHOME ... (e.g. /usr/local) #
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv G4VIS_USE_OPENGLX 1 #
# % setenv G4VIS_USE_DAWNFILE 1 #
# #
# Addional Notes: #
# #
#######################################################################
#####################################
# Visualization of detector geometry
# with the OGLSX driver
#####################################
# Create "scene-0"
/vis/scene/create
# Invoke the OGLIX driver
/vis/sceneHandler/create OGLIX
/vis/viewer/create
# Add volume to scene-0
/vis/scene/add/volume
# Set camera parameters
/vis/camera/reset
/vis/camera/viewpoint 70 20
# Visualize detector geometry
# * Command /vis/viewer/update is omittable in the OpenGL drivers,
# but it is harmless to execute it.
/vis/scene/notifyHandlers
/vis/viewer/update
#########################################################
# Visualization of events with the DAWNFILE driver
#
# * The visualized view is saved to a file "g4.eps"
# with the "vectorized" PostScript format.
#
# * In order to make the file "g4.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.
#
# * Set as follows to skip DAWN GUI.
# % setenv G4DAWNFILE_VIEWER "dawn -d"
##########################################################
# Create "scene-1"
/vis/scene/create
# Invoke the DAWNFILE driver
/vis/sceneHandler/create DAWNFILE
/vis/viewer/create
# Add volume to scene-1
/vis/scene/add/volume
# Set camera parameters
/vis/camera/reset
/vis/camera/zoom 1.2
/vis/camera/viewpoint 20 70
# Visualize one event
# * Command "/vis/scene/notifyHandlers" is written in
# ExN03RunAction::BeginOfRunAction()
# * Command "/vis/viewer/update" is written in
# ExN03RunAction::EndOfRunAction()
/tracking/storeTrajectory 1
/run/beamOn 10
+175
View File
@@ -0,0 +1,175 @@
#######################################################################
# MACRO FILE NAME: exN03Vis1.mac #
# #
# AUTHOR(S): Satoshi Tanaka #
# #
# DATE: November 10, 1999 #
# #
# CONTENTS: A basic macro for visualization of detector geometry #
# #
# USAGE: % $G4BINDIR/exampleN03 exN03Vis1.mac #
# #
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
# DAWN (version 3.80 of after) #
# Ghostview, Tcl/Tk #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv OGLHOME ... (e.g. /usr/local) #
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv G4VIS_USE_OPENGLX 1 #
# % setenv G4VIS_USE_DAWNFILE 1 #
# #
# Addional Notes: #
# #
#######################################################################
#####################################
# Visualization of detector geometry
# with the OGLSX driver
#####################################
# Create "scene-0"
/vis/scene/create
# Invoke the OGLSX driver
/vis/sceneHandler/create OGLSX
/vis/viewer/create
# Add the detector geometry to the current scene
/vis/scene/add/volume
# Visualize the detector geometry
# with the defalut camera parameters
/vis/scene/notifyHandlers
/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
# Bird's-eye view of the detector geometry
#
# viewpoint : (theta,phi) = (20*deg, 70*deg),
# zoom factor: 0.8 of the full screen size
# coordinate axes:
# x-axis:red, y-axis:green, z-axis:blue
# origin: (0,0,0), length: 500
#
# Note: The visualization commands are under reconstruction.
# In future, the lines below should be rewritten,
# replacing /vis/draw/... with /vis/add/... .
# In using /vis/draw/..., use /vis/show/view
# instead of /vis/viewer/update
# in order to flush visualization.
#
/vis/camera/reset
/vis/camera/viewpoint 20 70
/vis/camera/zoom 0.8
/vis/draw/current
/vis/draw/axes 0 0 0 500
/vis/show/view
##########################################################
# Visualization with DAWNFILE driver
#
# * The visualized view is saved to a file "g4.eps"
# with the "vectorized" PostScript format.
#
# * In order to make the file "g4.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.
#
# * Set as follows to skip DAWN GUI.
# % setenv G4DAWNFILE_VIEWER "dawn -d"
##########################################################
#-----
# Create "scene-1" (Absorber.0)
/vis/scene/create
# Invoke the DAWNFILE driver
/vis/sceneHandler/create DAWNFILE
/vis/viewer/create
# Attach the current visualization driver to "scene-1".
# This line is omittable.
/vis/sceneHandler/attach scene-1
# Bird's-eye view of a detector component (Absorber.0)
# viewpoint : (theta,phi) = (35*deg, 35*deg),
# zoom factor: 0.9 of the full screen size
# coordinate axes:
# x-axis:red, y-axis:green, z-axis:blue
# origin: (0,0,0), length: 500
#
/vis/scene/add/volume Absorber 0
/vis/camera/reset
/vis/camera/zoom 0.9
/vis/camera/viewpoint 35 35
/vis/draw/current
/vis/draw/axes 0 0 0 500
/vis/draw/text 0 0 0 mm 50 -300 -200 Absorber.0
/vis/show/view
#-----
# Create "scene-2" (Gap.0)
/vis/scene/create
# Invoke the DAWNFILE driver
/vis/sceneHandler/create DAWNFILE
/vis/viewer/create
# Attach the current visualization driver to "scene-2".
# This line is omittable.
/vis/sceneHandler/attach scene-2
# Bird's-eye view of a detector component (Gap.0)
#
/vis/scene/add/volume Gap 0
/vis/camera/reset
/vis/camera/zoom 0.9
/vis/camera/viewpoint 35 35
/vis/draw/current
/vis/draw/axes 0 0 0 500
/vis/draw/text 0 0 0 mm 50 -200 -200 Gap.0
/vis/show/view
#-----
# Create "scene-3" (world)
/vis/scene/create
# Invoke the DAWNFILE driver
/vis/sceneHandler/create DAWNFILE
/vis/viewer/create
# Attach the current visualization driver to "scene-3".
# This line is omittable.
/vis/sceneHandler/attach scene-3
# Bird's-eye view of the whole detector components
# * The argument of /vis/scene/add/volume, "world",
# is omittable.
# * "/vis/set/culling off" makes invisible volume
# "world" visible.
#
/vis/scene/add/volume world
/vis/camera/reset
/vis/camera/zoom 0.9
/vis/camera/viewpoint 35 35
/vis/set/culling off
/vis/draw/current
/vis/draw/axes 0 0 0 500
/vis/draw/text 0 0 0 mm 50 -50 -200 world
/vis/show/view
+131
View File
@@ -0,0 +1,131 @@
#######################################################################
# MACRO FILE NAME: exN03Vis2.mac #
# #
# AUTHOR(S): Satoshi Tanaka #
# #
# DATE: November 10, 1999 #
# #
# CONTENTS: A basic macro for visualization of events #
# #
# USAGE: % $G4BINDIR/exampleN03 exN03Vis2.mac #
# #
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
# DAWN (version 3.80 of after) #
# Ghostview, Tcl/Tk #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv OGLHOME ... (e.g. /usr/local) #
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv G4VIS_USE_OPENGLX 1 #
# % setenv G4VIS_USE_DAWNFILE 1 #
# #
# Addional Notes: #
# #
#######################################################################
#########################################################
Setting to store particle trajactories for visualization
#########################################################
/tracking/storeTrajectory 1
#/vis/scene/include/trajectories
#####################################################
# Visualization with OGLSX (OpenGL Stored X) driver
#####################################################
# Create "scene-0"
/vis/scene/create
# Invoke the OGLSX driver
/vis/sceneHandler/create OGLSX
/vis/viewer/create
# Add detector geometry to the current scene
/vis/scene/add/volume
# Set drawing style.
# The drawing style is "hidden-surface removal",
# with which the low-density culling set above works.
# Commonly-used drawing styles are as follows:
# 0: wireframe
# 1: hidden-line removal
# 2: hidden-surface removal
/vis/set/drawing_style 2
# Set camera 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
# Generate one event and visualize it.
# * Command "/vis/scene/notifyHandlers" is written in
# ExN03RunAction::BeginOfRunAction()
# * Command "/vis/viewer/update" is written in
# ExN03RunAction::EndOfRunAction()
/run/beamOn 1
# Slide show (spinning).
# Draw 18 frames with steps of 10 degrees.
# The stored mode of the OpenGL driver keeps the
# previously visualized event in the display list.
# So the particle trajectories are also rotated
# together with the detector geometry.
#
/vis/camera/spin 18 20
##########################################################
# Visualization with DAWNFILE driver
#
# * The visualized view is saved to a file "g4.eps"
# with the "vectorized" PostScript format.
#
# * In order to make the file "g4.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 hand.
#
# * Set as follows to skip DAWN GUI.
# % setenv G4DAWNFILE_VIEWER "dawn -d"
##########################################################
# Create "scene-1"
/vis/scene/create
# Invoke the DAWNFILE driver
/vis/sceneHandler/create DAWNFILE
/vis/viewer/create
# Set the drawing style to "wireframe".
# 0: wireframe
# 1: hidden-line removal
# 2: hidden-surface removal
/vis/set/drawing_style 0
# 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
/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
/run/beamOn 50
+137
View File
@@ -0,0 +1,137 @@
#######################################################################
# MACRO FILE NAME: exN03Vis3.mac #
# #
# AUTHOR(S): Satoshi Tanaka #
# #
# DATE: November 10, 1999 #
# #
# CONTENTS: A basic macro for demonstrating various drawing styles #
# #
# USAGE: % $G4BINDIR/exampleN03 exN03Vis3.mac #
# #
# REQUIRED PLATFORMS & SOFTWARES: Unix, X-window, OpenGL, #
# DAWN (version 3.80 of after) #
# Ghostview, Tcl/Tk #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR INSTALLATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv OGLHOME ... (e.g. /usr/local) #
# % setenv G4VIS_BUILD_OPENGLX_DRIVER 1 #
# % setenv G4VIS_BUILD_DAWNFILE_DRIVER 1 #
# #
# ENVIRONMENTAL VARIABLES (C-MACROS) FOR COMPILATION: #
# (See geant4/source/visualization/README for details.) #
# #
# % setenv G4VIS_USE_OPENGLX 1 #
# % setenv G4VIS_USE_DAWNFILE 1 #
# #
# Addional Notes: #
# #
#######################################################################
#########################################################
Setting to store particle trajactories for visualization
#########################################################
/tracking/storeTrajectory 1
#/vis/scene/include/trajectories
######################################################
# Visualization with OGLIX (OpenGL Immediate X) driver
######################################################
# Create "scene-0"
/vis/scene/create
# Invoke the OGLSX driver
/vis/sceneHandler/create OGLIX
/vis/viewer/create
# Add detector geometry to the current scene
/vis/scene/add/volume
# Bird-eye view of events with the hidden-surface
# drawing style.
/vis/camera/reset
/vis/camera/viewpoint 45 45
/vis/set/drawing_style 2
/run/beamOn 10
##########################################################
# Visualization with DAWNFILE driver
#
# * The visualized view is saved to a file "g4.eps"
# with the "vectorized" PostScript format.
#
# * In order to make the file "g4.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 hand.
#
# * Set as follows to skip DAWN GUI.
# % setenv G4DAWNFILE_VIEWER "dawn -d"
#
# * In order to save all views with a "multi-page"
# EPS file "g4.eps", set the followings
# in the 4th page of the DAWN GUI panel at
# "every" visualization.
#
# Add showpage: Yes
# Append mode : Yes
#
# More automatically, you can also generate the
# multi-page EPS file "g4.eps", using the
# batch-append mode of DAWN:
#
# % setenv DAWN_BATCH a
# % rm -f g4.eps
# % $G4BINDIR/exampleN03 exN03Vis3.mac
# % ghostview g4.eps
# (See each page using the menu of ghostview.)
#
##########################################################
# Create "scene-1"
/vis/scene/create
# Invoke the DAWNFILE driver
/vis/sceneHandler/create DAWNFILE
/vis/viewer/create
# Add detector geometry to the current scene
/vis/scene/add/volume
# Set camera parameters
# Camera is zoomed up by 1.5 times of the standard setting
/vis/camera/reset
/vis/camera/zoom 1.5
# Bird-eye view of events with the wireframe drawing style
/vis/camera/viewpoint 45 45
/vis/set/drawing_style 0
/run/beamOn 5
# Bird-eye view of events with the hidden-surface
# drawing style.
/vis/camera/viewpoint 45 45
/vis/set/drawing_style 2
/run/beamOn 50
# Cull detector geometry and show only trajectories.
# * The command "/vis/camera/reset" resets the zoom
# factor to one. But it does not reset view point.
/vis/camera/reset
/vis/camera/viewpoint 0 0
/vis/set/culling on
/vis/set/cull_by_density on 999
/vis/set/drawing_style 0
/run/beamOn 10
+3 -3
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: exampleN03.cc,v 1.7 1999/06/04 12:50:35 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: exampleN03.cc,v 1.7.8.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// --------------------------------------------------------------
+55 -46
View File
@@ -1,61 +1,68 @@
**********************************************
Geant4 version $Name: geant4-01-00 $
(07-Dec-99)
Copyright : Geant4 Collaboration
**********************************************
***** Table : Nb of materials = 13 *****
Material: Aluminium density: 2.700 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 8.893 cm
Material: Aluminium density: 2.700 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 8.893 cm
---> Element: Aluminium Z = 13.0 N = 27.0 A = 26.98 g/mole fractionMass: 100.00 % Abundance 100.00 %
Material: liquidArgon density: 1.390 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 14.065 cm
Material: liquidArgon density: 1.390 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 14.065 cm
---> Element: liquidArgon Z = 18.0 N = 40.0 A = 39.95 g/mole fractionMass: 100.00 % Abundance 100.00 %
Material: Copper density: 8.960 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 1.436 cm
Material: Copper density: 8.960 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 1.436 cm
---> Element: Copper Z = 29.0 N = 63.5 A = 63.55 g/mole fractionMass: 100.00 % Abundance 100.00 %
Material: Lead density: 11.350 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 5.612 mm
Material: Lead density: 11.350 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 5.612 mm
---> Element: Lead Z = 82.0 N = 207.2 A = 207.19 g/mole fractionMass: 100.00 % Abundance 100.00 %
Material: Water density: 1.000 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 36.092 cm
Material: Water density: 1.000 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 36.092 cm
---> Element: Hydrogen H Z = 1.0 N = 1.0 A = 1.01 g/mole fractionMass: 11.21 % Abundance 66.67 %
---> Element: Oxygen O Z = 8.0 N = 16.0 A = 16.00 g/mole fractionMass: 88.79 % Abundance 33.33 %
Material: Scintillator density: 1.032 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 42.549 cm
Material: Scintillator density: 1.032 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 42.549 cm
---> Element: Carbon C Z = 6.0 N = 12.0 A = 12.01 g/mole fractionMass: 91.45 % Abundance 47.37 %
---> Element: Hydrogen H Z = 1.0 N = 1.0 A = 1.01 g/mole fractionMass: 8.55 % Abundance 52.63 %
Material: quartz density: 2.200 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 12.295 cm
Material: quartz density: 2.200 g/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 12.295 cm
---> Element: Silicon Si Z = 14.0 N = 28.1 A = 28.09 g/mole fractionMass: 46.75 % Abundance 33.33 %
---> Element: Oxygen O Z = 8.0 N = 16.0 A = 16.00 g/mole fractionMass: 53.25 % Abundance 66.67 %
Material: Air density: 1.290 mg/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 285.161 m
Material: Air density: 1.290 mg/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 285.161 m
---> Element: Nitrogen N Z = 7.0 N = 14.0 A = 14.01 g/mole fractionMass: 70.00 % Abundance 72.71 %
---> Element: Oxygen O Z = 8.0 N = 16.0 A = 16.00 g/mole fractionMass: 30.00 % Abundance 27.29 %
Material: Aerogel density: 200.000 mg/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 1.493 m
Material: Aerogel density: 200.000 mg/cm3 temperature: 273.15 K pressure: 1.00 atm RadLength: 1.493 m
---> Element: Silicon Si Z = 14.0 N = 28.1 A = 28.09 g/mole fractionMass: 29.22 % Abundance 11.12 %
---> Element: Oxygen O Z = 8.0 N = 16.0 A = 16.00 g/mole fractionMass: 66.49 % Abundance 44.42 %
---> Element: Hydrogen H Z = 1.0 N = 1.0 A = 1.01 g/mole fractionMass: 4.19 % Abundance 44.37 %
---> Element: Carbon C Z = 6.0 N = 12.0 A = 12.01 g/mole fractionMass: 0.10 % Abundance 0.09 %
Material: CarbonicGas density: 27.000 mg/cm3 temperature: 325.00 K pressure: 50.00 atm RadLength: 13.406 m
Material: CarbonicGas density: 27.000 mg/cm3 temperature: 325.00 K pressure: 50.00 atm RadLength: 13.406 m
---> Element: Carbon C Z = 6.0 N = 12.0 A = 12.01 g/mole fractionMass: 27.29 % Abundance 33.33 %
---> Element: Oxygen O Z = 8.0 N = 16.0 A = 16.00 g/mole fractionMass: 72.71 % Abundance 66.67 %
Material: WaterSteam density: 0.300 mg/cm3 temperature: 500.00 K pressure: 2.00 atm RadLength: 1.203 km
Material: WaterSteam density: 0.300 mg/cm3 temperature: 500.00 K pressure: 2.00 atm RadLength: 1.203 km
---> Element: Hydrogen H Z = 1.0 N = 1.0 A = 1.01 g/mole fractionMass: 11.21 % Abundance 66.67 %
---> Element: Oxygen O Z = 8.0 N = 16.0 A = 16.00 g/mole fractionMass: 88.79 % Abundance 33.33 %
Material: Galactic density: 0.000 mg/cm3 temperature: 2.73 K pressure: 0.00 atm RadLength: 6317232936888469291008.000 km
Material: Galactic density: 0.000 mg/cm3 temperature: 2.73 K pressure: 0.00 atm RadLength: 6317232936888469291008.000 km
---> Element: Galactic Z = 1.0 N = 1.0 A = 1.01 g/mole fractionMass: 100.00 % Abundance 100.00 %
Material: Beam density: 0.010 mg/cm3 temperature: 273.15 K pressure: 0.02 atm RadLength: 36.786 km
Material: Beam density: 0.010 mg/cm3 temperature: 273.15 K pressure: 0.02 atm RadLength: 36.786 km
---> Element: Nitrogen N Z = 7.0 N = 14.0 A = 14.01 g/mole fractionMass: 70.00 % Abundance 72.71 %
---> Element: Oxygen O Z = 8.0 N = 16.0 A = 16.00 g/mole fractionMass: 30.00 % Abundance 27.29 %
The calorimeter is made of 10 layers of: [ 10mm of Lead + 5mm of liquidArgon ]
ExN03PhysicsList::SetCuts:CutLength : 2 mm
phot: Total cross sections from a parametrisation. Good description from 10 KeV to 50 MeV for all ZSandia crossSection below 50 KeV
PhysicsTables from 50 keV to 50 MeV in 100 bins.
phot: Total cross sections from a parametrisation. Good description from 10 KeV to 50 MeV for all Z
Sandia crossSection below 50 KeV
PhysicsTables from 50 keV to 50 MeV in 100 bins.
compt: Total cross sections from a parametrisation. Good description from 10 KeV to (100/Z) GeV.
Scattered gamma energy according Klein-Nishina.
@@ -91,7 +98,7 @@ msc: Tables of transport mean free paths.
hIoni: Knock-on electron cross sections .
Good description above the mean excitation energy.
delta ray energy sampled from differential Xsection.
PhysicsTables from 1 keV to 1e+02 TeV in 100 bins.
PhysicsTables from 1 keV to 1e+02 TeV in 150 bins.
msc: Tables of transport mean free paths.
New model of MSC , computes the lateral
@@ -110,16 +117,6 @@ MuBrems: theoretical cross section
MuPairProd: theoretical cross sections
Good description up to 1000 TeV.
PhysicsTables from 1 GeV to 1e+03 PeV in 50 bins.
#
# Macro file for the initialization phase of "exampleN03.cc"
#
# Sets some default verbose
# and initializes the graphic.
#
/control/saveHistory
/run/verbose 2
#
/run/particle/dumpCutValues
============= The cut Energy ==============================
gamma e- mu- proton neutron
Cut in range 2 mm 2 mm 2 mm 2 mm 2 mm
@@ -139,6 +136,14 @@ Cut in energy
Beam 990 eV 990 eV 990 eV 990 eV 990 eV
===================================================
#
# Macro file for the initialization phase of "exampleN03.cc"
#
# Sets some default verbose
# and initializes the graphic.
#
/control/saveHistory
/run/verbose 2
#
# Create empty scene ("world" is default)
/vis/scene/create
#
@@ -161,6 +166,10 @@ Cut in energy
# if too many tracks cause core dump => storeTrajectory 0
/tracking/storeTrajectory 1
#/vis/scene/include/trajectories
#
# Flush visualization
/vis/viewer/update
Idle> /run/particle/dumpCutValues
============= The cut Energy ==============================
gamma e- mu- proton neutron
@@ -195,20 +204,20 @@ Start Run processing.
Current couple of seeds = 9876, 54321
----------------------------------------
>>> Event 0
10 hits are stored in ExN03CalorHitsCollection.
Absorber: total energy: 2.8e+02 MeV total track length: 14 cm
Gap: total energy: 12 MeV total track length: 5.9 cm
195 trajectories stored in this event.
9 hits are stored in ExN03CalorHitsCollection.
Absorber: total energy: 2.8e+02 MeV total track length: 17 cm
Gap: total energy: 13 MeV total track length: 7 cm
210 trajectories stored in this event.
Run terminated.
Run Summary
Number of events processed : 1
User=0.28s Real=0.33s Sys=0.03s
User=0.44s Real=0.57s Sys=0.05s
Idle> #
Idle> # list the existing physics processes
Idle> /process/list
Transportation, msc, hIoni, MuIoni
MuBrems, MuPairProd, eIoni, eBrem
annihil, phot, compt, conv
Transportation, msc, hIoni, eIoni
eBrem, annihil, phot, compt
conv, MuIoni, MuBrems, MuPairProd
Decay
Idle> #
Idle> # switch off MultipleScattering
@@ -221,17 +230,17 @@ Start Run processing.
--------- Ranecu engine status ---------
Initial seed (index) = 0
Current couple of seeds = 2089514513, 1200712414
Current couple of seeds = 1364523396, 538526746
----------------------------------------
>>> Event 0
9 hits are stored in ExN03CalorHitsCollection.
Absorber: total energy: 2.8e+02 MeV total track length: 15 cm
Gap: total energy: 17 MeV total track length: 7.6 cm
195 trajectories stored in this event.
10 hits are stored in ExN03CalorHitsCollection.
Absorber: total energy: 2.9e+02 MeV total track length: 15 cm
Gap: total energy: 14 MeV total track length: 6.3 cm
216 trajectories stored in this event.
Run terminated.
Run Summary
Number of events processed : 1
User=0.25s Real=0.28s Sys=0.02s
User=0.47s Real=0.47s Sys=0s
Idle> #
Idle> # switch on MultipleScattering
Idle> /process/activate msc
@@ -261,17 +270,17 @@ Start Run processing.
--------- Ranecu engine status ---------
Initial seed (index) = 0
Current couple of seeds = 900551276, 1952365952
Current couple of seeds = 1243028270, 582042789
----------------------------------------
>>> Event 0
21 hits are stored in ExN03CalorHitsCollection.
Absorber: total energy: 4.2e+02 MeV total track length: 98 cm
Gap: total energy: 68 MeV total track length: 1.9 m
176 trajectories stored in this event.
26 hits are stored in ExN03CalorHitsCollection.
Absorber: total energy: 3.7e+02 MeV total track length: 85 cm
Gap: total energy: 77 MeV total track length: 2.1 m
175 trajectories stored in this event.
Run terminated.
Run Summary
Number of events processed : 1
User=0.62s Real=0.71s Sys=0.09s
User=1.1s Real=1.2s Sys=0.08s
Idle> G4 kernel has come to Quit state.
Deletion of G4 kernel class start.
UserDetectorConstruction deleted.
+3 -3
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03CalorHit.hh,v 1.1 1999/01/07 16:05:53 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03CalorHit.hh,v 1.1.10.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03CalorimeterSD.hh,v 1.1 1999/01/07 16:05:54 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03CalorimeterSD.hh,v 1.1.10.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03DetectorConstruction.hh,v 1.1 1999/01/07 16:05:54 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03DetectorConstruction.hh,v 1.1.10.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03DetectorMessenger.hh,v 1.1 1999/01/07 16:05:54 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03DetectorMessenger.hh,v 1.1.10.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03EventAction.hh,v 1.3 1999/04/16 11:55:03 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03EventAction.hh,v 1.3.8.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03EventActionMessenger.hh,v 1.2 1999/03/10 16:15:37 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03EventActionMessenger.hh,v 1.2.8.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PhysicsList.hh,v 1.2 1999/04/16 11:55:04 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03PhysicsList.hh,v 1.4.6.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -48,7 +48,7 @@ class ExN03PhysicsList: public G4VUserPhysicsList
void ConstructBosons();
void ConstructLeptons();
void ConstructMesons();
void ConstructBarions();
void ConstructBaryons();
protected:
// these methods Construct physics processes and register them
@@ -59,7 +59,7 @@ class ExN03PhysicsList: public G4VUserPhysicsList
G4double cutForGamma;
G4double cutForElectron;
G4double cutForProton;
G4double currentDefaultCut;
};
#endif
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PrimaryGeneratorAction.hh,v 1.1 1999/01/07 16:05:55 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03PrimaryGeneratorAction.hh,v 1.1.10.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PrimaryGeneratorMessenger.hh,v 1.1 1999/01/07 16:05:55 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03PrimaryGeneratorMessenger.hh,v 1.1.10.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03RunAction.hh,v 1.3 1999/04/22 21:45:15 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03RunAction.hh,v 1.3.8.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03SteppingAction.hh,v 1.2 1999/04/16 11:55:06 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03SteppingAction.hh,v 1.2.8.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03VisManager.hh,v 1.2 1999/06/24 07:48:48 stesting Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03VisManager.hh,v 1.2.8.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
+3 -3
View File
@@ -22,7 +22,7 @@
#
/calor/setField 5 tesla
#
/vis~/clear/scene
/vis~/clear/view
/vis~/draw/current
/vis/clear/scene
/vis/clear/view
/vis/draw/current
+5 -3
View File
@@ -8,8 +8,6 @@
/control/saveHistory
/run/verbose 2
#
/run/particle/dumpCutValues
#
# Create empty scene ("world" is default)
/vis/scene/create
#
@@ -20,7 +18,7 @@
# Edit the next line(s) to choose another graphic system
#
#/vis/sceneHandler/create DAWNFILE
/vis/sceneHandler/create OGLIXm
/vis/sceneHandler/create OGLIX
#
# Create a viewer
/vis/viewer/create
@@ -32,3 +30,7 @@
# if too many tracks cause core dump => storeTrajectory 0
/tracking/storeTrajectory 1
#/vis/scene/include/trajectories
#
# Flush visualization
/vis/viewer/update
+3 -3
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03CalorHit.cc,v 1.1 1999/01/07 16:05:56 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03CalorHit.cc,v 1.1.10.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03CalorimeterSD.cc,v 1.2 1999/01/28 17:11:24 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03CalorimeterSD.cc,v 1.2.8.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03DetectorConstruction.cc,v 1.2 1999/02/03 16:07:23 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03DetectorConstruction.cc,v 1.2.8.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03DetectorMessenger.cc,v 1.1 1999/01/07 16:05:56 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03DetectorMessenger.cc,v 1.2.8.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -32,37 +32,33 @@ ExN03DetectorMessenger::ExN03DetectorMessenger(ExN03DetectorConstruction * ExN03
AbsMaterCmd = new G4UIcmdWithAString("/calor/setAbsMat",this);
AbsMaterCmd->SetGuidance("Select Material of the Absorber.");
AbsMaterCmd->SetParameterName("choice",true);
AbsMaterCmd->SetCandidates("Water Aluminium Copper Lead ");
AbsMaterCmd->SetDefaultValue("Lead");
AbsMaterCmd->SetParameterName("choice",false);
AbsMaterCmd->AvailableForStates(Idle);
GapMaterCmd = new G4UIcmdWithAString("/calor/setGapMat",this);
GapMaterCmd->SetGuidance("Select Material of the Gap.");
GapMaterCmd->SetParameterName("choice",true);
GapMaterCmd->SetCandidates("Galactic Air CarbonicGas Aerogel Scintillator liquidArgon");
GapMaterCmd->SetDefaultValue("liquidArgon");
GapMaterCmd->SetParameterName("choice",false);
GapMaterCmd->AvailableForStates(Idle);
AbsThickCmd = new G4UIcmdWithADoubleAndUnit("/calor/setAbsThick",this);
AbsThickCmd->SetGuidance("Set Thickness of the Absorber");
AbsThickCmd->SetParameterName("Size",false,false);
AbsThickCmd->SetDefaultUnit("mm");
AbsThickCmd->SetParameterName("Size",false);
AbsThickCmd->SetRange("Size>=0.");
AbsThickCmd->SetUnitCategory("Length");
AbsThickCmd->AvailableForStates(Idle);
GapThickCmd = new G4UIcmdWithADoubleAndUnit("/calor/setGapThick",this);
GapThickCmd->SetGuidance("Set Thickness of the Gap");
GapThickCmd->SetParameterName("Size",false,false);
GapThickCmd->SetDefaultUnit("mm");
GapThickCmd->SetParameterName("Size",false);
GapThickCmd->SetRange("Size>=0.");
GapThickCmd->SetUnitCategory("Length");
GapThickCmd->AvailableForStates(Idle);
SizeYZCmd = new G4UIcmdWithADoubleAndUnit("/calor/setSizeYZ",this);
SizeYZCmd->SetGuidance("Set tranverse size of the calorimeter");
SizeYZCmd->SetParameterName("Size",false,false);
SizeYZCmd->SetDefaultUnit("mm");
SizeYZCmd->SetParameterName("Size",false);
SizeYZCmd->SetRange("Size>0.");
SizeYZCmd->SetUnitCategory("Length");
SizeYZCmd->AvailableForStates(Idle);
NbLayersCmd = new G4UIcmdWithAnInteger("/calor/setNbOfLayers",this);
@@ -80,8 +76,8 @@ ExN03DetectorMessenger::ExN03DetectorMessenger(ExN03DetectorConstruction * ExN03
MagFieldCmd = new G4UIcmdWithADoubleAndUnit("/calor/setField",this);
MagFieldCmd->SetGuidance("Define magnetic field.");
MagFieldCmd->SetGuidance("Magnetic field will be in Z direction.");
MagFieldCmd->SetParameterName("Bz",false,false);
MagFieldCmd->SetDefaultUnit("tesla");
MagFieldCmd->SetParameterName("Bz",false);
MagFieldCmd->SetUnitCategory("Magnetic flux density");
MagFieldCmd->AvailableForStates(Idle);
}
+4 -4
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03EventAction.cc,v 1.3 1999/04/16 11:55:08 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03EventAction.cc,v 1.4.6.1.2.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -18,7 +18,7 @@
#include "ExN03CalorHit.hh"
#include "ExN03EventActionMessenger.hh"
#include <rw/tvordvec.h>
#include "g4rw/tvordvec.h"
#include "G4Event.hh"
#include "G4EventManager.hh"
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03EventActionMessenger.cc,v 1.2 1999/03/10 16:15:38 maire Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03EventActionMessenger.cc,v 1.2.8.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
+21 -13
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PhysicsList.cc,v 1.2 1999/04/16 11:55:09 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03PhysicsList.cc,v 1.4.6.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -28,10 +28,10 @@
ExN03PhysicsList::ExN03PhysicsList(): G4VUserPhysicsList()
{
defaultCutValue = 2.0*mm;
cutForGamma = defaultCutValue;
cutForElectron = defaultCutValue;
cutForProton = defaultCutValue;
currentDefaultCut = defaultCutValue = 2.0*mm;
cutForGamma = defaultCutValue;
cutForElectron = defaultCutValue;
cutForProton = defaultCutValue;
SetVerboseLevel(1);
}
@@ -53,7 +53,7 @@ void ExN03PhysicsList::ConstructParticle()
ConstructBosons();
ConstructLeptons();
ConstructMesons();
ConstructBarions();
ConstructBaryons();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -107,7 +107,7 @@ void ExN03PhysicsList::ConstructMesons()
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
void ExN03PhysicsList::ConstructBarions()
void ExN03PhysicsList::ConstructBaryons()
{
// barions
G4Proton::ProtonDefinition();
@@ -215,8 +215,18 @@ void ExN03PhysicsList::ConstructGeneral()
void ExN03PhysicsList::SetCuts()
{
if (verboseLevel >1){
// reactualise cutValues
if (currentDefaultCut != defaultCutValue)
{
if(cutForGamma == currentDefaultCut) cutForGamma = defaultCutValue;
if(cutForElectron == currentDefaultCut) cutForElectron = defaultCutValue;
if(cutForProton == currentDefaultCut) cutForProton = defaultCutValue;
currentDefaultCut = defaultCutValue;
}
if (verboseLevel >0){
G4cout << "ExN03PhysicsList::SetCuts:";
G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << endl;
}
// set cut values for gamma at first and for e- second and next for e+,
@@ -232,9 +242,7 @@ void ExN03PhysicsList::SetCuts()
SetCutValueForOthers(defaultCutValue);
if (verboseLevel>1) {
DumpCutValuesTable();
}
if (verboseLevel>0) DumpCutValuesTable();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PrimaryGeneratorAction.cc,v 1.1 1999/01/07 16:05:57 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03PrimaryGeneratorAction.cc,v 1.1.10.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PrimaryGeneratorMessenger.cc,v 1.1 1999/01/07 16:05:57 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03PrimaryGeneratorMessenger.cc,v 1.2.8.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -25,9 +25,9 @@ ExN03PrimaryGeneratorMessenger::ExN03PrimaryGeneratorMessenger(ExN03PrimaryGener
{
RndmCmd = new G4UIcmdWithAString("/gun/random",this);
RndmCmd->SetGuidance("Shoot randomly the incident particle.");
RndmCmd->SetGuidance(" Choice : on, off(default)");
RndmCmd->SetGuidance(" Choice : on(default), off");
RndmCmd->SetParameterName("choice",true);
RndmCmd->SetDefaultValue("off");
RndmCmd->SetDefaultValue("on");
RndmCmd->SetCandidates("on off");
RndmCmd->AvailableForStates(PreInit,Idle);
}
+7 -8
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03RunAction.cc,v 1.5 1999/04/22 21:45:24 asaim Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03RunAction.cc,v 1.6.4.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
@@ -41,8 +41,7 @@ void ExN03RunAction::BeginOfRunAction(const G4Run* aRun)
if (G4VVisManager::GetConcreteInstance())
{
G4UImanager* UI = G4UImanager::GetUIpointer();
UI->ApplyCommand("/vis/clear/view");
UI->ApplyCommand("/vis/draw/current");
UI->ApplyCommand("/vis/scene/notifyHandlers");
}
}
@@ -50,9 +49,9 @@ void ExN03RunAction::BeginOfRunAction(const G4Run* aRun)
void ExN03RunAction::EndOfRunAction(const G4Run* )
{
if (G4VVisManager::GetConcreteInstance())
G4UImanager::GetUIpointer()->ApplyCommand("/vis/show/view");
if (G4VVisManager::GetConcreteInstance()) {
G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03SteppingAction.cc,v 1.2 1999/04/16 11:55:11 kurasige Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03SteppingAction.cc,v 1.2.8.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
+3 -11
View File
@@ -1,12 +1,12 @@
// This code implementation is the intellectual property of
// the RD44 GEANT4 collaboration.
// the GEANT4 collaboration.
//
// By copying, distributing or modifying the Program (or any work
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03VisManager.cc,v 1.1 1999/01/07 16:05:58 gunter Exp $
// GEANT4 tag $Name: geant4-00-01 $
// $Id: ExN03VisManager.cc,v 1.2.8.1 1999/12/07 20:47:32 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
//
//
// John Allison 24th January 1998.
@@ -56,10 +56,6 @@
#include "G4OpenInventorWin32.hh"
#endif
#ifdef G4VIS_USE_RAYX
#include "G4RayX.hh"
#endif
#ifdef G4VIS_USE_VRML
#include "G4VRML1.hh"
#include "G4VRML2.hh"
@@ -114,10 +110,6 @@ void ExN03VisManager::RegisterGraphicsSystems () {
RegisterGraphicsSystem (new G4OpenInventorWin32);
#endif
#ifdef G4VIS_USE_RAYX
RegisterGraphicsSystem (new G4RayX);
#endif
#ifdef G4VIS_USE_VRML
RegisterGraphicsSystem (new G4VRML1);
RegisterGraphicsSystem (new G4VRML2);