Import Geant4 1.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:34:16 +02:00
parent ca1c8cb059
commit 103bda00c8
2654 changed files with 29719 additions and 20203 deletions
+10 -6
View File
@@ -5,19 +5,20 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: exampleN03.cc,v 1.7.8.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: exampleN03.cc,v 1.10 1999/12/15 14:49:22 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// --------------------------------------------------------------
// GEANT 4 - exampleN02
// GEANT 4 - exampleN03
//
// For information related to this code contact:
// CERN, IT Division, ASD Group
// --------------------------------------------------------------
// Comments
//
//
//#define G4UI_USE_XM
//
// --------------------------------------------------------------
#include "G4RunManager.hh"
@@ -36,13 +37,16 @@
#include "ExN03RunAction.hh"
#include "ExN03EventAction.hh"
#include "ExN03SteppingAction.hh"
#include "Randomize.hh"
#include "ExN03SteppingVerbose.hh"
int main(int argc,char** argv) {
// choose the Random engine
HepRandom::setTheEngine(new RanecuEngine);
//my Verbose output class
G4VSteppingVerbose::SetInstance(new ExN03SteppingVerbose);
// Construct the default run manager
G4RunManager * runManager = new G4RunManager;
+1 -1
View File
@@ -1,4 +1,4 @@
/run/particle/dumpCutValues
# e+ 300MeV
/gun/particle e+
/gun/energy 300 MeV
+28
View File
@@ -0,0 +1,28 @@
# e+ 300MeV
/gun/particle e+
/gun/energy 300 MeV
/run/beamOn 1
#
# list the existing physics processes
/process/list
#
# switch off MultipleScattering
/process/inactivate msc
/run/beamOn 1
#
# switch on MultipleScattering
/process/activate msc
#
# change detector parameter
/calor/setAbsMat Aluminium
/calor/setGapMat Aerogel
/calor/setAbsThick 2. cm
/calor/setGapThick 5. cm
/calor/setNbOfLayers 30
/calor/setSizeYZ 1.5 m
/calor/update
/gun/particle gamma
/gun/energy 500 MeV
/run/beamOn 5000
exit
+49 -140
View File
@@ -1,5 +1,5 @@
**********************************************
Geant4 version $Name: geant4-01-00 $
Geant4 version $Name: geant4-01-01 $
(07-Dec-99)
Copyright : Geant4 Collaboration
**********************************************
@@ -57,8 +57,10 @@
The calorimeter is made of 10 layers of: [ 10mm of Lead + 5mm of liquidArgon ]
ExN03PhysicsList::SetCuts:CutLength : 2 mm
------------------------------------------------------------
---> The calorimeter is 10 layers of: [ 10mm of Lead + 5mm of liquidArgon ]
------------------------------------------------------------
ExN03PhysicsList::SetCuts:CutLength : 1 mm
phot: Total cross sections from a parametrisation. Good description from 10 KeV to 50 MeV for all Z
Sandia crossSection below 50 KeV
@@ -119,83 +121,24 @@ MuPairProd: theoretical cross sections
PhysicsTables from 1 GeV to 1e+03 PeV in 50 bins.
============= The cut Energy ==============================
gamma e- mu- proton neutron
Cut in range 2 mm 2 mm 2 mm 2 mm 2 mm
Cut in range 1 mm 1 mm 1 mm 1 mm 1 mm
Cut in energy
Aluminium 9.56 keV 1.03 MeV 7.44 MeV 19.4 MeV 990 eV
liquidArgon 8.59 keV 561 keV 4.78 MeV 12.3 MeV 990 eV
Copper 35.7 keV 2.68 MeV 13.3 MeV 34.3 MeV 990 eV
Lead 121 keV 2.61 MeV 12.6 MeV 31.8 MeV 990 eV
Water 3.89 keV 568 keV 4.96 MeV 13.1 MeV 990 eV
Scintillator 3.07 keV 575 keV 5.02 MeV 13.4 MeV 990 eV
quartz 7.59 keV 907 keV 6.91 MeV 18.1 MeV 990 eV
Air 990 eV 990 eV 82.2 keV 174 keV 990 eV
Aerogel 2.32 keV 181 keV 1.9 MeV 4.84 MeV 990 eV
CarbonicGas 990 eV 54.1 keV 597 keV 1.34 MeV 990 eV
WaterSteam 990 eV 990 eV 29.6 keV 45 keV 990 eV
Aluminium 6.89 keV 597 keV 5.02 MeV 13.1 MeV 990 eV
liquidArgon 6.18 keV 343 keV 3.24 MeV 8.32 MeV 990 eV
Copper 24.6 keV 1.4 MeV 8.95 MeV 23 MeV 990 eV
Lead 101 keV 1.38 MeV 8.52 MeV 20.9 MeV 990 eV
Water 2.9 keV 347 keV 3.39 MeV 8.95 MeV 990 eV
Scintillator 2.37 keV 356 keV 3.43 MeV 9.06 MeV 990 eV
quartz 5.52 keV 534 keV 4.66 MeV 12.2 MeV 990 eV
Air 990 eV 990 eV 48.4 keV 83.2 keV 990 eV
Aerogel 1.71 keV 119 keV 1.28 MeV 3.18 MeV 990 eV
CarbonicGas 990 eV 36.5 keV 393 keV 853 keV 990 eV
WaterSteam 990 eV 990 eV 11.9 keV 14.9 keV 990 eV
Galactic 990 eV 990 eV 990 eV 990 eV 990 eV
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
#
# Add volume to scene
/vis/scene/add/volume
#
# Create a scene handler for a specific graphics system
# Edit the next line(s) to choose another graphic system
#
#/vis/sceneHandler/create DAWNFILE
/vis/sceneHandler/create OGLIX
#
# Create a viewer
/vis/viewer/create
#
# Draw scene
/vis/scene/notifyHandlers
#
# for drawing the tracks
# 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
Cut in range 2 mm 2 mm 2 mm 2 mm 2 mm
Cut in energy
Aluminium 9.56 keV 1.03 MeV 7.44 MeV 19.4 MeV 990 eV
liquidArgon 8.59 keV 561 keV 4.78 MeV 12.3 MeV 990 eV
Copper 35.7 keV 2.68 MeV 13.3 MeV 34.3 MeV 990 eV
Lead 121 keV 2.61 MeV 12.6 MeV 31.8 MeV 990 eV
Water 3.89 keV 568 keV 4.96 MeV 13.1 MeV 990 eV
Scintillator 3.07 keV 575 keV 5.02 MeV 13.4 MeV 990 eV
quartz 7.59 keV 907 keV 6.91 MeV 18.1 MeV 990 eV
Air 990 eV 990 eV 82.2 keV 174 keV 990 eV
Aerogel 2.32 keV 181 keV 1.9 MeV 4.84 MeV 990 eV
CarbonicGas 990 eV 54.1 keV 597 keV 1.34 MeV 990 eV
WaterSteam 990 eV 990 eV 29.6 keV 45 keV 990 eV
Galactic 990 eV 990 eV 990 eV 990 eV 990 eV
Beam 990 eV 990 eV 990 eV 990 eV 990 eV
===================================================
Idle> # e+ 300MeV
Idle> /gun/particle e+
Idle> /gun/energy 300 MeV
Idle> /run/beamOn 1
# e+ 300MeV
### Run 0 start.
Start closing geometry.
Start Run processing.
---> Event: 0
@@ -204,91 +147,57 @@ Start Run processing.
Current couple of seeds = 9876, 54321
----------------------------------------
>>> Event 0
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.44s Real=0.57s Sys=0.05s
Idle> #
Idle> # list the existing physics processes
Idle> /process/list
0 trajectories stored in this event.
10 hits are stored in ExN03CalorHitsCollection.
Absorber: total energy: 2.8e+02 MeV total track length: 16 cm
Gap: total energy: 3.7 MeV total track length: 1.5 cm
#
# list the existing physics processes
Transportation, msc, hIoni, eIoni
eBrem, annihil, phot, compt
conv, MuIoni, MuBrems, MuPairProd
Decay
Idle> #
Idle> # switch off MultipleScattering
Idle> /process/inactivate msc
Idle> /run/beamOn 1
#
# switch off MultipleScattering
### Run 1 start.
Start Run processing.
---> Event: 0
--------- Ranecu engine status ---------
Initial seed (index) = 0
Current couple of seeds = 1364523396, 538526746
Current couple of seeds = 1081085135, 235076861
----------------------------------------
>>> Event 0
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.47s Real=0.47s Sys=0s
Idle> #
Idle> # switch on MultipleScattering
Idle> /process/activate msc
Idle> #
Idle> # change detector parameter
Idle> /calor/setAbsMat Aluminium
0 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: 20 MeV total track length: 9.8 cm
#
# switch on MultipleScattering
#
# change detector parameter
The calorimeter is made of 10 layers of: [ 10mm of Aluminium + 5mm of liquidArgon ]
Idle> /calor/setGapMat Aerogel
------------------------------------------------------------
---> The calorimeter is 10 layers of: [ 10mm of Aluminium + 5mm of liquidArgon ]
------------------------------------------------------------
The calorimeter is made of 10 layers of: [ 10mm of Aluminium + 5mm of Aerogel ]
Idle> /calor/setAbsThick 2. cm
Idle> /calor/setGapThick 5. cm
Idle> /calor/setNbOfLayers 30
Idle> /calor/setSizeYZ 1.5 m
Idle> /calor/update
------------------------------------------------------------
---> The calorimeter is 10 layers of: [ 10mm of Aluminium + 5mm of Aerogel ]
------------------------------------------------------------
The calorimeter is made of 30 layers of: [ 20mm of Aluminium + 50mm of Aerogel ]
Idle> /gun/particle gamma
Idle> /gun/energy 500 MeV
Idle> /run/beamOn 1
------------------------------------------------------------
---> The calorimeter is 30 layers of: [ 20mm of Aluminium + 50mm of Aerogel ]
------------------------------------------------------------
### Run 2 start.
Start closing geometry.
Start Run processing.
---> Event: 0
--------- Ranecu engine status ---------
Initial seed (index) = 0
Current couple of seeds = 1243028270, 582042789
Current couple of seeds = 1062777741, 543200454
----------------------------------------
>>> Event 0
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=1.1s Real=1.2s Sys=0.08s
Idle> G4 kernel has come to Quit state.
Deletion of G4 kernel class start.
UserDetectorConstruction deleted.
UserPhysicsList deleted.
UserRunAction deleted.
UserPrimaryGenerator deleted.
G4SDManager deleted.
EventManager deleted.
UImanager deleted.
StateManager deleted.
RunManager is deleting.
0 trajectories stored in this event.
30 hits are stored in ExN03CalorHitsCollection.
Absorber: total energy: 3.9e+02 MeV total track length: 91 cm
Gap: total energy: 81 MeV total track length: 2.2 m
+363
View File
@@ -0,0 +1,363 @@
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!
!!!! A X11 resource file to customize G4UI sessions and
!!!! visualization viewers based over Xt. You use it by
!!!! setting the XENVIRONMENT environment variable to point
!!!! to this file, for example :
!!!! csh> setenv XENVIRONMENT g4.xrm
!!!! sh> XENVIRONMENT=g4.xrm;export XENVIRONMENT
!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*topShadowColor :white
*bottomShadowColor :black
*foreground :black
*background :lightgrey
*borderColor :lightgrey
*fontList :-*-helvetica-bold-r-*-*-*-120-*-*-*-*-iso8859-1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! G4UIXm
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*text.background :white
*text.fontList :*courier*-r-*--14-*
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! OPACS/Xo/XoCamera widget
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
*XoCamera.width:400
*XoCamera.height:400
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
! OpenInventor resources, copied from file :
! OpenInventor2.4.1/app-defaults/Inventor
!
!#################################################
! RESSOURCE FILE FOR OPEN INVENTOR !
!#################################################
!
! You must put this file in
! /usr/lib/X11/app-defaults
! or set up XAPPLRESDIR (see X window documentation)
!
!#################################################
!!################################################
!! POPUP MENU
!!------------------------------------------------
!! FUNCTIONS MENU
!!------------------------------------------------
*IvMenu.IvFunctions1.labelString: Functions
*IvFunctions2.IvHelp.labelString: Help
*IvFunctions2.IvHome.labelString: Home
*IvFunctions2.IvSetHome.labelString: Set Home
*IvFunctions2.IvViewAll.labelString: View All
*IvFunctions2.IvSeek.labelString: Seek
*IvFunctions2.IvCopyView.labelString: Copy View
*IvFunctions2.IvPasteView.labelString: Paste View
!!------------------------------------------------
!! DRAW STYLE MENU
!!------------------------------------------------
*IvMenu.IvDrawStyle1.labelString: Draw Style
*IvDrawStyle2.IvAsIs.labelString: as is
*IvDrawStyle2.IvHiddenLine.labelString: hidden line
*IvDrawStyle2.IvNoTexture.labelString: no texture
*IvDrawStyle2.IvLowResolution.labelString: low resolution
*IvDrawStyle2.IvWireFrame.labelString: wireframe
*IvDrawStyle2.IvPoints.labelString: points
*IvDrawStyle2.IvBoundingBoxNoDepth.labelString: bounding box ( no depth )
*IvDrawStyle2.IvMoveSameAsStill.labelString: move same as still
*IvDrawStyle2.IvMoveNoTexture.labelString: move no texture.
*IvDrawStyle2.IvMoveLowRes.labelString: move low res
*IvDrawStyle2.IvMoveWireFrame.labelString: move wireframe
*IvDrawStyle2.IvMoveLowResWireFrameNoDepth.labelString: move low res wire frame ( no depth )
*IvDrawStyle2.IvMovePoints.labelString: move points
*IvDrawStyle2.IvMoveLowResPointsNoDepth.labelString: move low res points ( no depth )
*IvDrawStyle2.IvMoveBoundingBoxNoDepth.labelString: move bounding box ( no depth )
*IvDrawStyle2.IvSingleBuffer.labelString: single buffer
*IvDrawStyle2.IvDoubleBuffer.labelString: Double buffer
*IvDrawStyle2.IvInteractiveBuffer.labelString: interactive buffer
!!------------------------------------------------
*IvMenu.IvViewing.labelString: Viewing
!!------------------------------------------------
*IvMenu.IvDecoration.labelString: Decoration
!!------------------------------------------------
*IvMenu.IvHeadlight.labelString: Headlight
!!------------------------------------------------
*IvMenu.IvPreferences.labelString: Preferences ...
!!------------------------------------------------
!! PREFERENCES
!!------------------------------------------------
*IvFormPreference1.IvSeekAnimationTime.labelString: Seek animation time
*IvFormPreference1.IvSeconds.labelString: seconds
*IvFormPreference1.IvSeekTo.labelString: Seek to:
*IvFormPreference1.IvPoint.labelString: point
*IvFormPreference1.IvObject.labelString: object
*IvFormPreference2.IvSeekDistance.labelString: Seek distance:
*IvFormPreference2.IvPercentage.labelString: percentage
*IvFormPreference2.IvAbsolute.labelString: absolute
*IvZoomForm.IvCameraZoom.labelString: Camera zoom
*IvZoomForm.IvZoomSliderRangesFrom.labelString: Zoom slider ranges from:
*IvZoomForm.IvTo.labelString: to:
*IvZoomForm.IvZoomSlider.labelString: Zoom slider
*IvZoomForm.IvZoomField.labelString: Zoom field
*IvZoomForm.IvZoomFrom.labelString: Zoom from
*IvZoomForm.IvZoomTo.labelString: Zoom to
*IvFormPreference3.IvAutoClippingPlanes.labelString: Auto clipping planes
*IvFormPreference4.IvStereoViewing.labelString: Stereo Viewing
*IvFormPreference6.IvNearPlane.labelString: near plane
*IvFormPreference6.IvFarPlane.labelString: far plane
*IvStereoThumbForm.IvCameraRotation.labelString: Camera rotation
!!------------------------------------------------
!! Preferences for Examiner Viewer
!!------------------------------------------------
*IvFormExaminer1.IvEnableSpinAnimation.labelString: Enable spin animation
*IvFormExaminer1.IvShowPointOfRotationAxes.labelString: Show point of rotation axes
*IvFormExaminer1.IvAxesSize.labelString: axes size
*IvFormExaminer1.IvPixels.labelString: pixels
!!------------------------------------------------
!! Decorations for Examiner Viewer !!
!!------------------------------------------------
*IvExamTitle.labelString: Examiner Viewer
*IvExamPrefTitle.labelString: Examiner Viewer Preference Sheet
*IvExamPopupTitle.labelString: Examiner Viewer
*IvExamIconTitle.labelString: Examiner Viewer
*IvExamRotx.labelString: Rotx
*IvExamRoty.labelString: Roty
*IvExamZoom.labelString: Zoom
*IvExamDolly.labelString: Dolly
!!------------------------------------------------
!! Decorations for Plane Viewer !!
!!------------------------------------------------
*IvPlaneTitle.labelString: Plane Viewer
*IvPlanePrefTitle.labelString: Plane Viewer Preference Sheet
*IvPlanePopupTitle.labelString: Plane Viewer
*IvPlaneIconTitle.labelString: Plane Viewer
*IvPlaneTransx.labelString: transX
*IvPlaneTransy.labelString: transY
*IvPlaneZoom.labelString: Zoom
*IvPlaneDolly.labelString: Dolly
!!------------------------------------------------
!! Decorations for Fly Viewer !!
!!------------------------------------------------
*IvFlyTitle.labelString: Fly Viewer
*IvFlyPrefTitle.labelString: Fly Viewer Preference Sheet
*IvFlyPopupTitle.labelString: Fly Viewer
*IvFlyIconTitle.labelString: Fly Viewer
!! Same for Walk Viewer !!
*IvFlyWalkRotate.labelString: Rotate
!! Same for Walk Viewer !!
*IvFlyWalkTilt.labelString: Tilt
!! Same for Walk Viewer !!
*IvFlyWalkDolly.labelString: Dolly
!!------------------------------------------------
!! Preferences for Fly Viewer !!
!!------------------------------------------------
*FlyPreference.FlyingSpeed.labelString: Flying speed:
*FlyPreference.Increase.labelString: increase
*FlyPreference.Decrease.labelString: decrease
!!------------------------------------------------
!! Decorations for Walk Viewer !!
!!------------------------------------------------
*IvWalkTitle.labelString: Walk Viewer
*IvWalkPrefTitle.labelString: Walk Viewer Preference Sheet
*IvWalkPopupTitle.labelString: Walk Viewer
*IvWalkIconTitle.labelString: Walk Viewer
*IvLeftTrimForm.IvH.labelString: H
!!------------------------------------------------
!! Preferences for Walk Viewer !!
!!------------------------------------------------
*IvFormPreference5.IvViewerSpeed.labelString: Viewer speed
*IvFormPreference5.IvIncrease.labelString: increase
*IvFormPreference5.IvDecrease.labelString: decrease
!!------------------------------------------------
!! EDITORS
!!------------------------------------------------
!! Drectional Light Editor !!
!!------------------------------------------------
*IvDirectLightTitle.labelString: Dir Light Editor
*IvDirectLightIconTitle.labelString: Dir Light Ed
*IvDirectLightInten.labelString: Inten
*IvDirectLightColorEditor.labelString: Directional Light Color
*IvDLMenuBar.IvEdit.labelString: Edit
*IvDLMenuBar*IvControlPullDown*IvColorEditor.labelString: Color Editor
*IvDLMenuBar*IvControlPullDown*IvCopy.labelString: Copy
*IvDLMenuBar*IvControlPullDown*IvPaste.labelString: Paste
*IvDLMenuBar*IvControlPullDown*IvHelp.labelString: Help
!!------------------------------------------------
!! Color Editor !!
!!------------------------------------------------
*IvColorEditorTitle.labelString: Color Editor
*IvColorEditorIconTitle.labelString: Color Editor
*IvColorEditorR.labelString: R
*IvColorEditorG.labelString: G
*IvColorEditorB.labelString: B
*IvColorEditorH.labelString: H
*IvColorEditorS.labelString: S
*IvColorEditorV.labelString: V
*IvColorEditorRight.labelString: Right
*IvColorEditorSwitch.labelString: Switch
*IvColorEditorCont.labelString: Continuous
*IvColorEditorManu.labelString: Manual
*IvColorEditorWysi.labelString: WYSIWYG
*IvColorEditorCopy.labelString: Copy
*IvColorEditorPaste.labelString: Paste
*IvColorEditorHelp.labelString: Help
*IvColorEditorNone.labelString: None
*IvColorEditorValue.labelString: Value
*IvColorEditorRGB.labelString: RGB
*IvColorEditorHSV.labelString: HSV
*IvColorEditorRGBV.labelString: RGB V
*IvColorEditorRGBHSV.labelString: RGB HSV
*IvCEMenuBar.IvEdit.labelString: Edit
*IvCEMenuBar.IvSliders.labelString: Sliders
*IvButtonsForm.IvAccept.labelString: Accept
!!------------------------------------------------
!! Material Editor !!
!!------------------------------------------------
*IvMaterialEditorTitle.labelString: Material Editor
*IvMaterialEditorIconTitle.labelString: Mat Editor
*IvMaterialAmbientTitle.labelString: Material Ambient Color
*IvMaterialDiffuseTitle.labelString: Material Diffuse Color
*IvMaterialSpecularTitle.labelString: Material Specular Color
*IvMaterialEmissiveTitle.labelString: -Material Emissive Color
*IvMaterialEditorMaterial.labelString: Material /
*IvMaterialEditorAmb.labelString: Amb /
*IvMaterialEditorDiff.labelString: Diff /
*IvMaterialEditorSpec.labelString: Spec /
*IvMaterialEditorEmis.labelString: Emis /
*IvMaterialEditorColor.labelString: Color
*IvMEMenuBar.IvEdit.labelString: Edit
*IvMEMenuBar*IvEditPullDown.IvMaterialList.labelString: Material List
*IvMEMenuBar*IvEditPullDown.IvContinuous.labelString: Continuous
*IvMEMenuBar*IvEditPullDown.IvManual.labelString: Manual
*IvMEMenuBar*IvEditPullDown.IvCopy.labelString: Copy
*IvMEMenuBar*IvEditPullDown.IvPaste.labelString: Paste
*IvMEMenuBar*IvEditPullDown.IvHelp.labelString: Help
*IvControls.IvEditColor.labelString: Edit Color
*IvsliderForm.IvtextForm.IvAmb.labelString: Amb:
*IvsliderForm.IvtextForm.IvDiff.labelString: Diff
*IvsliderForm.IvtextForm.IvSpec.labelString: Spec
*IvsliderForm.IvtextForm.IvEmis.labelString: Emis
*IvsliderForm.IvtextForm.IvShininess.labelString: Shininess
*IvsliderForm.IvtextForm.IvTransp.labelString: Transp:
*IvMETop.IvAccept.labelString: Accept
!!------------------------------------------------
!! Material List !!
!!------------------------------------------------
*IvMaterialListTitle.labelString: Material List
*IvMaterialListeIconTitle.labelString: Mat List
*IvMLMenuBar*IvPalettes.labelString: Palettes
!!------------------------------------------------
!! Print Dialog
!!------------------------------------------------
*IvPrintDialTitle.labelString: Print Dialog
*IvPrintDialIconTitle.labelString: -rint Dialog
*IvPrintDialPrinter.labelString: Printer:
*IvPrintDialPageOut.labelString: Page Output:
*IvPrintDialToPrinter.labelString: To Printer
*IvPrintDialToFile.labelString: To File
*IvPrintDialQuit.labelString: Quit
*IvPrintDialPrint.labelString: Print
*IvPrintDialMessage.labelString: Message:
*IvPrintDialFileFormat.labelString: File Format:
*IvPrintDialPostScript.labelString: PostScript
*IvPrintDialRGB.labelString: RGB
*IvPrintDialPrintQuality.labelString: Print Quality:
*IvPrintDialHigh.labelString: High
*IvPrintDialDraft.labelString: Draft
*IvPrintDialPageFormat.labelString: Page Format
*IvPrintDialPortrait.labelString: Portrait
*IvPrintDialLandscape.labelString: Landscape
*IvPrintDialPrintSize.labelString: Print Size (inches):
*IvPrintDialFileName.labelString: File Name:
*IvPrintDialResolution.labelString: Resolution
*IvPrintDialBy.labelString: by
*IvPrintDialDpi.labelString: DPI:
*IvPrintDialMess1.labelString: Printing in progress...
*IvPrintDialMess2.labelString: ERROR: Empty database.
*IvPrintDialMess3.labelString: ERROR: Exceeds
*IvPrintDialMess4.labelString: ERROR: Could not execute print.
*IvPrintDialMess5.labelString: ERROR: Could not execute print.
*IvPrintDialMess6.labelString: ERROR: No printer.
*IvPrintDialMess7.labelString: ERROR: Couldn't open
*IvPrintDialMess8.labelString: ERROR: No file name.
*IvPrintDialMess9.labelString: ERROR: Could not open file.
*IvPrintDialMess10.labelString: ERROR: Could not get data.
*IvPrintDialMess11.labelString: ERROR: Could not get data.
*IvPrintDialMess12.labelString: Printing completed.
!!------------------------------------------------
!! Xt Component ( For Light and Material Sliders Set )
!!------------------------------------------------
*IvXtComponentTitle.labelString: Xt Component
*IvTGSXtComponentTitle.labelString: TGS: Xt Component
!!------------------------------------------------
!! For All Sliders
!!------------------------------------------------
*IvSlidersMin.labelString: min
*IvSlidersMax.labelString: max
*IvSlidersStyle.labelString: style
!!------------------------------------------------
!! Light Slider Set
!!------------------------------------------------
*IvLightSliderColor.labelString: COLOR
*IvLightSliderRed.labelString: Red
*IvLightSliderGreen.labelString: Green
*IvLightSliderBlue.labelString: Blue
*IvLightSliderIntensity1.labelString: INTENSITY
*IvLightSliderIntensity2.labelString: Intensity
!!------------------------------------------------
!! Material Slider Set
!!------------------------------------------------
*IvMaterialSliderAmbient.labelString: AMBIENT
*IvMaterialSliderAmbientRed.labelString: Ambient Red
*IvMaterialSliderAmbientGreen.labelString: Ambient Green
*IvMaterialSliderAmbientBleu.labelString: Ambient Blue
*IvMaterialSliderDiffuse.labelString: DIFFUSE
*IvMaterialSliderDiffuseRed.labelString: Diffuse Red
*IvMaterialSliderDiffuseGreen.labelString: Diffuse Green
*IvMaterialSliderDiffuseBleu.labelString: Diffuse Blue
*IvMaterialSliderSpecular.labelString: SPECULAR
*IvMaterialSliderSpecularRed.labelString: Specular Red
*IvMaterialSliderSpecularGreen.labelString: Specular Green
*IvMaterialSliderSpecularBleu.labelString: Specular Blue
*IvMaterialSliderEmissive.labelString: EMISSIVE
*IvMaterialSliderEmissiveRed.labelString: Emissive Red
*IvMaterialSliderEmissiveGreen.labelString: Emissive Green
*IvMaterialSliderEmissiveBlue.labelString: Emissive Blue
*IvMaterialSliderShininess.labelString: SHININESS
*IvMaterialSliderShininessShininess.labelString: shininess
*IvMaterialSliderTransparency.labelString: TRANSPARENCY
*IvMaterialSliderTransparencyTransparency.labelString: transparency
!!------------------------------------------------
!! Transform Slider Set
!!------------------------------------------------
*IvTransformSliderTrans.labelString: TRANSLATIONS
*IvTransformSliderTransX.labelString: X Translation
*IvTransformSliderTransY.labelString: Y Translation
*IvTransformSliderTransZ.labelString: Z Translation
*IvTransformSliderScale.labelString: SCALES
*IvTransformSliderScaleX.labelString: X Scale
*IvTransformSliderScaleY.labelString: Y Scale
*IvTransformSliderScaleZ.labelString: Z Scale
*IvTransformSliderRotate.labelString: ROTATIONS
*IvTransformSliderRotateX.labelString: X Rotate
*IvTransformSliderRotateY.labelString: Y Rotate
*IvTransformSliderRotateZ.labelString: Z Rotate
*IvTransformSliderScaleOrient.labelString: SCALE ORIENTATION
*IvTransformSliderScaleOrientX.labelString: X Rotate
*IvTransformSliderScaleOrientY.labelString: Y Rotate
*IvTransformSliderScaleOrientZ.labelString: Z Rotate
*IvTransformSliderCenter.labelString: CENTER
*IvTransformSliderCenterX.labelString: X Center
*IvTransformSliderCenterY.labelString: Y Center
*IvTransformSliderCenterZ.labelString: Z Center
*IvTransformSliderTitle.labelString: Transform Editor
*IvTransformSliderIconTitle.labelString: Xf Editor
!!------------------- THE END --------------------
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03CalorHit.hh,v 1.1.10.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03CalorHit.hh,v 1.2 1999/12/15 14:49:22 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03CalorimeterSD.hh,v 1.1.10.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03CalorimeterSD.hh,v 1.2 1999/12/15 14:49:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03DetectorConstruction.hh,v 1.1.10.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03DetectorConstruction.hh,v 1.2 1999/12/15 14:49:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03DetectorMessenger.hh,v 1.1.10.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03DetectorMessenger.hh,v 1.2 1999/12/15 14:49:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03EventAction.hh,v 1.3.8.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03EventAction.hh,v 1.4 1999/12/15 14:49:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03EventActionMessenger.hh,v 1.2.8.1 1999/12/07 20:47:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03EventActionMessenger.hh,v 1.3 1999/12/15 14:49:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PhysicsList.hh,v 1.4.6.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03PhysicsList.hh,v 1.5 1999/12/15 14:49:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PrimaryGeneratorAction.hh,v 1.1.10.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03PrimaryGeneratorAction.hh,v 1.2 1999/12/15 14:49:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PrimaryGeneratorMessenger.hh,v 1.1.10.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03PrimaryGeneratorMessenger.hh,v 1.2 1999/12/15 14:49:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03RunAction.hh,v 1.3.8.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03RunAction.hh,v 1.4 1999/12/15 14:49:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03SteppingAction.hh,v 1.2.8.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03SteppingAction.hh,v 1.3 1999/12/15 14:49:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -0,0 +1,47 @@
// This code implementation is the intellectual property of
// 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: ExN03SteppingVerbose.hh,v 1.2 1999/12/15 14:49:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//---------------------------------------------------------------
//
// ExN03SteppingVerbose.hh
//
// Description:
// This class manages the vervose outputs in G4SteppingManager.
//
//
// Contact:
// Questions and comments to this code should be sent to
// Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
// Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
//
//---------------------------------------------------------------
class ExN03SteppingVerbose;
#ifndef ExN03SteppingVerbose_h
#define ExN03SteppingVerbose_h 1
#include "G4SteppingVerbose.hh"
class ExN03SteppingVerbose : public G4SteppingVerbose {
public:
// Constructor/Destructor
ExN03SteppingVerbose();
~ExN03SteppingVerbose();
//
void StepInfo();
void TrackingStarted();
//
};
#endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03VisManager.hh,v 1.2.8.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03VisManager.hh,v 1.3 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
+2 -3
View File
@@ -22,7 +22,6 @@
#
/calor/setField 5 tesla
#
/vis/clear/scene
/vis/clear/view
/vis/draw/current
/vis/scene/notifyHandlers
/vis/viewer/update
+2 -2
View File
@@ -1,9 +1,9 @@
# $Id: run2.mac,v 1.2 1999/03/10 16:15:36 maire Exp $
# $Id: run2.mac,v 1.3 1999/11/15 11:10:26 maire Exp $
#
# Macro file of "exampleN03.cc"
#
# (in iteractive it must be executed after initialization)
# (otherwise type: /control/execute ../prerunN03.mac)
# (otherwise type: /control/execute prerunN03.mac)
# (graphic needed: OpenGL or Mesa)
#
#
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03CalorHit.cc,v 1.1.10.1 1999/12/07 20:47:29 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03CalorHit.cc,v 1.2 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03CalorimeterSD.cc,v 1.2.8.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03CalorimeterSD.cc,v 1.3 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -79,7 +79,7 @@ G4bool ExN03CalorimeterSD::ProcessHits(G4Step* aStep,G4TouchableHistory* ROhist)
if (physVol == Detector->GetGap ()) calHit->AddGap(edep,stepl);
HitID[LayerNumber] = CalCollection->insert(calHit) - 1;
if (verboseLevel>0)
G4cout << " New Calorimeter Hit on layer: " << LayerNumber << endl;
G4cout << " New Calorimeter Hit on layer: " << LayerNumber << G4endl;
}
else
{
@@ -88,7 +88,7 @@ G4bool ExN03CalorimeterSD::ProcessHits(G4Step* aStep,G4TouchableHistory* ROhist)
if (physVol == Detector->GetGap())
(*CalCollection)[HitID[LayerNumber]]->AddGap(edep,stepl);
if (verboseLevel>0)
G4cout << " Energy added to Layer: " << LayerNumber << endl;
G4cout << " Energy added to Layer: " << LayerNumber << G4endl;
}
return true;
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03DetectorConstruction.cc,v 1.2.8.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03DetectorConstruction.cc,v 1.4 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -211,7 +211,7 @@ G4Material* beam = new G4Material(name="Beam", density, ncomponents=1,
kStateGas,temperature,pressure);
beam->AddMaterial(Air, fractionmass=1.);
G4cout << *(G4Material::GetMaterialTable()) << endl;
G4cout << *(G4Material::GetMaterialTable()) << G4endl;
//default materials of the calorimeter
AbsorberMaterial = Pb;
@@ -371,11 +371,12 @@ G4VPhysicalVolume* ExN03DetectorConstruction::ConstructCalorimeter()
void ExN03DetectorConstruction::PrintCalorParameters()
{
G4cout << "\n The calorimeter is made of " << NbOfLayers << " layers of: [ "
<< AbsorberThickness/mm << "mm of " << AbsorberMaterial->GetName()
<< " + "
<< GapThickness/mm << "mm of " << GapMaterial->GetName() << " ] "
<< endl;
G4cout << "\n------------------------------------------------------------"
<< "\n---> The calorimeter is " << NbOfLayers << " layers of: [ "
<< AbsorberThickness/mm << "mm of " << AbsorberMaterial->GetName()
<< " + "
<< GapThickness/mm << "mm of " << GapMaterial->GetName() << " ] "
<< "\n------------------------------------------------------------\n";
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03DetectorMessenger.cc,v 1.2.8.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03DetectorMessenger.cc,v 1.3 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
+40 -37
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03EventAction.cc,v 1.4.6.1.2.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03EventAction.cc,v 1.8 2000/01/24 14:46:01 stesting Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -57,7 +57,7 @@ void ExN03EventAction::BeginOfEventAction(const G4Event* evt)
G4int evtNb = evt->GetEventID();
if (evtNb%printModulo == 0)
{
G4cout << "\n---> Event: " << evtNb << endl;
G4cout << "\n---> Event: " << evtNb << G4endl;
HepRandom::showEngineStatus();
}
@@ -72,41 +72,46 @@ void ExN03EventAction::BeginOfEventAction(const G4Event* evt)
void ExN03EventAction::EndOfEventAction(const G4Event* evt)
{
G4cout << ">>> Event " << evt->GetEventID() << endl;
G4HCofThisEvent* HCE = evt->GetHCofThisEvent();
ExN03CalorHitsCollection* CHC = NULL;
if (HCE)
CHC = (ExN03CalorHitsCollection*)(HCE->GetHC(calorimeterCollID));
if (CHC)
{
int n_hit = CHC->entries();
G4cout << " " << n_hit
<< " hits are stored in ExN03CalorHitsCollection." << endl;
G4double totEAbs=0, totLAbs=0, totEGap=0, totLGap=0;
for (int i=0;i<n_hit;i++)
{ totEAbs += (*CHC)[i]->GetEdepAbs();
totLAbs += (*CHC)[i]->GetTrakAbs();
totEGap += (*CHC)[i]->GetEdepGap();
totLGap += (*CHC)[i]->GetTrakGap();
}
G4cout
<< " Absorber: total energy: " << setw(7) << G4BestUnit(totEAbs,"Energy")
<< " total track length: " << setw(7) << G4BestUnit(totLAbs,"Length")
<< endl
<< " Gap: total energy: " << setw(7) << G4BestUnit(totEGap,"Energy")
<< " total track length: " << setw(7) << G4BestUnit(totLGap,"Length")
<< endl;
}
G4int event_id = evt->GetEventID();
G4TrajectoryContainer * trajectoryContainer = evt->GetTrajectoryContainer();
G4int n_trajectories = 0;
if(trajectoryContainer)
{ n_trajectories = trajectoryContainer->entries(); }
G4cout << " " << n_trajectories
<< " trajectories stored in this event." << endl;
if (trajectoryContainer) n_trajectories = trajectoryContainer->entries();
if (event_id < 100 || event_id%100 == 0) {
G4cout << ">>> Event " << evt->GetEventID() << G4endl;
G4cout << " " << n_trajectories
<< " trajectories stored in this event." << G4endl;
G4HCofThisEvent* HCE = evt->GetHCofThisEvent();
ExN03CalorHitsCollection* CHC = NULL;
if (HCE)
CHC = (ExN03CalorHitsCollection*)(HCE->GetHC(calorimeterCollID));
if (CHC)
{
int n_hit = CHC->entries();
G4cout << " " << n_hit
<< " hits are stored in ExN03CalorHitsCollection." << G4endl;
G4double totEAbs=0, totLAbs=0, totEGap=0, totLGap=0;
for (int i=0;i<n_hit;i++)
{
totEAbs += (*CHC)[i]->GetEdepAbs();
totLAbs += (*CHC)[i]->GetTrakAbs();
totEGap += (*CHC)[i]->GetEdepGap();
totLGap += (*CHC)[i]->GetTrakGap();
}
G4cout
<< " Absorber: total energy: " << G4std::setw(7) << G4BestUnit(totEAbs,"Energy")
<< " total track length: " << G4std::setw(7) << G4BestUnit(totLAbs,"Length")
<< G4endl
<< " Gap: total energy: " << G4std::setw(7) << G4BestUnit(totEGap,"Energy")
<< " total track length: " << G4std::setw(7) << G4BestUnit(totLGap,"Length")
<< G4endl;
}
}
if(G4VVisManager::GetConcreteInstance())
{
@@ -120,5 +125,3 @@ void ExN03EventAction::EndOfEventAction(const G4Event* evt)
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03EventActionMessenger.cc,v 1.2.8.1 1999/12/07 20:47:30 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03EventActionMessenger.cc,v 1.3 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
+4 -4
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PhysicsList.cc,v 1.4.6.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03PhysicsList.cc,v 1.6 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -28,7 +28,7 @@
ExN03PhysicsList::ExN03PhysicsList(): G4VUserPhysicsList()
{
currentDefaultCut = defaultCutValue = 2.0*mm;
currentDefaultCut = defaultCutValue = 1.0*mm;
cutForGamma = defaultCutValue;
cutForElectron = defaultCutValue;
cutForProton = defaultCutValue;
@@ -226,7 +226,7 @@ void ExN03PhysicsList::SetCuts()
if (verboseLevel >0){
G4cout << "ExN03PhysicsList::SetCuts:";
G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << endl;
G4cout << "CutLength : " << G4BestUnit(defaultCutValue,"Length") << G4endl;
}
// set cut values for gamma at first and for e- second and next for e+,
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PrimaryGeneratorAction.cc,v 1.1.10.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03PrimaryGeneratorAction.cc,v 1.2 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03PrimaryGeneratorMessenger.cc,v 1.2.8.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03PrimaryGeneratorMessenger.cc,v 1.3 1999/12/15 14:49:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
+3 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03RunAction.cc,v 1.6.4.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03RunAction.cc,v 1.7 1999/12/15 14:49:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -36,7 +36,7 @@ ExN03RunAction::~ExN03RunAction()
void ExN03RunAction::BeginOfRunAction(const G4Run* aRun)
{
G4cout << "### Run " << aRun->GetRunID() << " start." << endl;
G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
if (G4VVisManager::GetConcreteInstance())
{
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03SteppingAction.cc,v 1.2.8.1 1999/12/07 20:47:31 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03SteppingAction.cc,v 1.3 1999/12/15 14:49:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -0,0 +1,170 @@
// This code implementation is the intellectual property of
// 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: ExN03SteppingVerbose.cc,v 1.2 1999/12/15 14:49:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//---------------------------------------------------------------
//
// ExN03SteppingVerbose.cc
//
// Description:
// Implementation of the ExN03SteppingVerbose class
// Contact:
// Questions and comments to this code should be sent to
// Katsuya Amako (e-mail: Katsuya.Amako@kek.jp)
// Takashi Sasaki (e-mail: Takashi.Sasaki@kek.jp)
//
//---------------------------------------------------------------
#include "ExN03SteppingVerbose.hh"
#include "G4SteppingManager.hh"
#include "G4UnitsTable.hh"
////////////////////////////////////////////////
ExN03SteppingVerbose::ExN03SteppingVerbose()
////////////////////////////////////////////////
{
}
//////////////////////////////////////////////////
ExN03SteppingVerbose::~ExN03SteppingVerbose()
//////////////////////////////////////////////////
{
}
/////////////////////////////////////////
void ExN03SteppingVerbose::StepInfo()
/////////////////////////////////////////
{
CopyState();
G4int prec = G4cout.precision(3);
if( verboseLevel >= 1 ){
if( verboseLevel >= 4 ) VerboseTrack();
if( verboseLevel >= 3 ){
G4cout << G4endl;
G4cout << G4std::setw( 5) << "#Step#" << " "
<< G4std::setw( 6) << "X" << " "
<< G4std::setw( 6) << "Y" << " "
<< G4std::setw( 6) << "Z" << " "
<< G4std::setw( 9) << "KineE" << " "
<< G4std::setw( 9) << "dEStep" << " "
<< G4std::setw(10) << "StepLeng"
<< G4std::setw(10) << "TrakLeng"
<< G4std::setw(10) << "NextVolu"
<< G4std::setw(10) << "Process" << G4endl;
}
G4cout << G4std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
<< G4std::setw( 6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
<< G4std::setw( 6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
<< G4std::setw( 6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
<< G4std::setw( 6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
<< G4std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
<< G4std::setw( 6) << G4BestUnit(fStep->GetStepLength(),"Length")
<< G4std::setw( 6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
// if( fStepStatus != fWorldBoundary){
if( fTrack->GetNextVolume() != 0 ) {
G4cout << G4std::setw(10) << fTrack->GetNextVolume()->GetName();
} else {
G4cout << G4std::setw(10) << "OutOfWorld";
}
if(fStep->GetPostStepPoint()->GetProcessDefinedStep() != NULL){
G4cout << G4std::setw(10) << fStep->GetPostStepPoint()->GetProcessDefinedStep()
->GetProcessName();
} else {
G4cout << "User Limit";
}
G4cout << G4endl;
if( verboseLevel == 2 ){
G4int tN2ndariesTot = fN2ndariesAtRestDoIt +
fN2ndariesAlongStepDoIt +
fN2ndariesPostStepDoIt;
if(tN2ndariesTot>0){
G4cout << " :----- List of 2ndaries - "
<< "#SpawnInStep=" << G4std::setw(3) << tN2ndariesTot
<< "(Rest=" << G4std::setw(2) << fN2ndariesAtRestDoIt
<< ",Along=" << G4std::setw(2) << fN2ndariesAlongStepDoIt
<< ",Post=" << G4std::setw(2) << fN2ndariesPostStepDoIt
<< "), "
<< "#SpawnTotal=" << G4std::setw(3) << (*fSecondary).entries()
<< " ---------------"
<< G4endl;
for(G4int lp1=(*fSecondary).entries()-tN2ndariesTot;
lp1<(*fSecondary).entries(); lp1++){
G4cout << " : "
<< G4std::setw(6)
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().x(),"Length")
<< G4std::setw(6)
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().y(),"Length")
<< G4std::setw(6)
<< G4BestUnit((*fSecondary)[lp1]->GetPosition().z(),"Length")
<< G4std::setw(6)
<< G4BestUnit((*fSecondary)[lp1]->GetKineticEnergy(),"Energy")
<< G4std::setw(10)
<< (*fSecondary)[lp1]->GetDefinition()->GetParticleName();
G4cout << G4endl;
}
G4cout << " :-----------------------------"
<< "----------------------------------"
<< "-- EndOf2ndaries Info ---------------"
<< G4endl;
}
}
}
G4cout.precision(prec);
}
////////////////////////////////////////////////
void ExN03SteppingVerbose::TrackingStarted()
////////////////////////////////////////////////
{
CopyState();
G4int prec = G4cout.precision(3);
if( verboseLevel > 0 ){
G4cout << G4std::setw( 5) << "Step#" << " "
<< G4std::setw( 6) << "X" << " "
<< G4std::setw( 6) << "Y" << " "
<< G4std::setw( 6) << "Z" << " "
<< G4std::setw( 9) << "KineE" << " "
<< G4std::setw( 9) << "dEStep" << " "
<< G4std::setw(10) << "StepLeng"
<< G4std::setw(10) << "TrakLeng"
<< G4std::setw(10) << "NextVolu"
<< G4std::setw(10) << "Process" << G4endl;
G4cout << G4std::setw( 5) << fTrack->GetCurrentStepNumber() << " "
<< G4std::setw( 6) << G4BestUnit(fTrack->GetPosition().x(),"Length")
<< G4std::setw( 6) << G4BestUnit(fTrack->GetPosition().y(),"Length")
<< G4std::setw( 6) << G4BestUnit(fTrack->GetPosition().z(),"Length")
<< G4std::setw( 6) << G4BestUnit(fTrack->GetKineticEnergy(),"Energy")
<< G4std::setw( 6) << G4BestUnit(fStep->GetTotalEnergyDeposit(),"Energy")
<< G4std::setw( 6) << G4BestUnit(fStep->GetStepLength(),"Length")
<< G4std::setw( 6) << G4BestUnit(fTrack->GetTrackLength(),"Length");
if(fTrack->GetNextVolume()){
G4cout << G4std::setw(10) << fTrack->GetNextVolume()->GetName() << " ";
} else {
G4cout << G4std::setw(10) << "OutOfWorld" << " ";
}
G4cout << G4std::setw(10) << "initStep" << G4endl;
}
G4cout.precision(prec);
}
+3 -3
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: ExN03VisManager.cc,v 1.2.8.1 1999/12/07 20:47:32 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: ExN03VisManager.cc,v 1.3 1999/12/15 14:49:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// John Allison 24th January 1998.
@@ -123,7 +123,7 @@ void ExN03VisManager::RegisterGraphicsSystems () {
if (fVerbose > 0) {
G4cout <<
"\nYou have successfully chosen to use the following graphics systems."
<< endl;
<< G4endl;
PrintAvailableGraphicsSystems ();
}
}