Import Geant4 11.4.0 source tree

This commit is contained in:
Gabriele Cosmo
2025-12-05 08:54:02 +01:00
parent a499fb82e9
commit b4a16de652
6484 changed files with 232674 additions and 221097 deletions
-29
View File
@@ -1,29 +0,0 @@
///\file "analysis/.README.txt"
///\brief Examples analysis README page
/*! \page Examples_analysis Category "analysis"
Examples in this directory demonstrate how to make histograms and ntuples
\link ExampleAnaEx01 AnaEx01 \endlink
Simple example showing use of g4tools.
\link ExampleAnaEx02 AnaEx02 \endlink
As AnaEx01, but direct interface to ROOT.
\link ExampleAnaEx03 AnaEx03 \endlink
Demonstrates usage of analysis commands for file management
(new since Geant4 11.1), in particular writing histograms and ntuples in a file
multiple times.
\link ExampleB1Con B1Con \endlink
B1Con shows how to use the statistical tool G4ConvergenceTester.
It does not make histograms.
It has the same geometry as B1.
*/
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -71,7 +71,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -84,13 +83,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -203,7 +201,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -340,7 +338,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -398,7 +396,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -430,7 +428,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -462,7 +460,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -494,7 +492,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -526,7 +524,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -558,7 +556,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -590,7 +588,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -845,8 +843,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -860,9 +858,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -884,20 +881,20 @@ Max 2J for sampling of angular correlations 10
--------------------End of Run------------------------------
mean Energy in Absorber : 245.231 MeV +- 0 eV
mean Energy in Gap : 64.6941 MeV +- 0 eV
mean Energy in Absorber : 224.093 MeV +- 0 eV
mean Energy in Gap : 50.0395 MeV +- 0 eV
mean trackLength in Absorber : 60.8807 cm +- 0 fm
mean trackLength in Gap : 32.6255 cm +- 0 fm
mean trackLength in Absorber : 55.2231 cm +- 0 fm
mean trackLength in Gap : 25.4593 cm +- 0 fm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 245.231 MeV rms = 0 eV
EGap: mean = 64.6941 MeV rms = 0 eV
LAbs: mean = 60.8807 cm rms = 0 fm
LGap: mean = 32.6255 cm rms = 0 fm
EAbs: mean = 224.093 MeV rms = 0 eV
EGap: mean = 50.0395 MeV rms = 0 eV
LAbs: mean = 55.2231 cm rms = 0 fm
LGap: mean = 25.4593 cm rms = 0 fm
... create file : ./histo/AnaEx01_h1_EAbs.csv - done
... create file : ./histo/AnaEx01_h1_EGap.csv - done
... create file : ./histo/AnaEx01_h1_LAbs.csv - done
@@ -950,20 +947,20 @@ LGap: mean = 32.6255 cm rms = 0 fm
--------------------End of Run------------------------------
mean Energy in Absorber : 188.669 MeV +- 48.7853 MeV
mean Energy in Gap : 46.259 MeV +- 13.3455 MeV
mean Energy in Absorber : 187.729 MeV +- 50.1943 MeV
mean Energy in Gap : 46.0401 MeV +- 13.1672 MeV
mean trackLength in Absorber : 46.5752 cm +- 12.122 cm
mean trackLength in Gap : 23.4524 cm +- 6.81929 cm
mean trackLength in Absorber : 46.3759 cm +- 12.4411 cm
mean trackLength in Gap : 23.3634 cm +- 6.72305 cm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 188.669 MeV rms = 48.7853 MeV
EGap: mean = 46.259 MeV rms = 13.3455 MeV
LAbs: mean = 46.5752 cm rms = 12.122 cm
LGap: mean = 23.4524 cm rms = 6.81929 cm
EAbs: mean = 187.729 MeV rms = 50.1943 MeV
EGap: mean = 46.0401 MeV rms = 13.1672 MeV
LAbs: mean = 46.3759 cm rms = 12.4411 cm
LGap: mean = 23.3634 cm rms = 6.72305 cm
... create file : ./histo/AnaEx01_h1_EAbs.csv - done
... create file : ./histo/AnaEx01_h1_EGap.csv - done
... create file : ./histo/AnaEx01_h1_LAbs.csv - done
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -71,7 +71,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -84,13 +83,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -203,7 +201,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -340,7 +338,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -398,7 +396,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -430,7 +428,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -462,7 +460,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -494,7 +492,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -526,7 +524,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -558,7 +556,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -590,7 +588,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -845,8 +843,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -860,9 +858,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -883,20 +880,20 @@ Max 2J for sampling of angular correlations 10
--------------------End of Run------------------------------
mean Energy in Absorber : 245.231 MeV +- 0 eV
mean Energy in Gap : 64.6941 MeV +- 0 eV
mean Energy in Absorber : 224.093 MeV +- 0 eV
mean Energy in Gap : 50.0395 MeV +- 0 eV
mean trackLength in Absorber : 60.8807 cm +- 0 fm
mean trackLength in Gap : 32.6255 cm +- 0 fm
mean trackLength in Absorber : 55.2231 cm +- 0 fm
mean trackLength in Gap : 25.4593 cm +- 0 fm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 245.231 MeV rms = 0 eV
EGap: mean = 64.6941 MeV rms = 0 eV
LAbs: mean = 60.8807 cm rms = 0 fm
LGap: mean = 32.6255 cm rms = 0 fm
EAbs: mean = 224.093 MeV rms = 0 eV
EGap: mean = 50.0395 MeV rms = 0 eV
LAbs: mean = 55.2231 cm rms = 0 fm
LGap: mean = 25.4593 cm rms = 0 fm
... write file : AnaEx01.hdf5 - done
... close file : AnaEx01.hdf5 - done
@@ -934,20 +931,20 @@ LGap: mean = 32.6255 cm rms = 0 fm
--------------------End of Run------------------------------
mean Energy in Absorber : 188.669 MeV +- 48.7853 MeV
mean Energy in Gap : 46.259 MeV +- 13.3455 MeV
mean Energy in Absorber : 187.729 MeV +- 50.1943 MeV
mean Energy in Gap : 46.0401 MeV +- 13.1672 MeV
mean trackLength in Absorber : 46.5752 cm +- 12.122 cm
mean trackLength in Gap : 23.4524 cm +- 6.81929 cm
mean trackLength in Absorber : 46.3759 cm +- 12.4411 cm
mean trackLength in Gap : 23.3634 cm +- 6.72305 cm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 188.669 MeV rms = 48.7853 MeV
EGap: mean = 46.259 MeV rms = 13.3455 MeV
LAbs: mean = 46.5752 cm rms = 12.122 cm
LGap: mean = 23.4524 cm rms = 6.81929 cm
EAbs: mean = 187.729 MeV rms = 50.1943 MeV
EGap: mean = 46.0401 MeV rms = 13.1672 MeV
LAbs: mean = 46.3759 cm rms = 12.4411 cm
LGap: mean = 23.3634 cm rms = 6.72305 cm
... write file : AnaEx01.hdf5 - done
... close file : AnaEx01.hdf5 - done
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -71,7 +71,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -84,13 +83,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -203,7 +201,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -340,7 +338,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -398,7 +396,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -430,7 +428,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -462,7 +460,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -494,7 +492,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -526,7 +524,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -558,7 +556,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -590,7 +588,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -845,8 +843,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -860,9 +858,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -885,20 +882,20 @@ Max 2J for sampling of angular correlations 10
--------------------End of Run------------------------------
mean Energy in Absorber : 245.231 MeV +- 0 eV
mean Energy in Gap : 64.6941 MeV +- 0 eV
mean Energy in Absorber : 224.093 MeV +- 0 eV
mean Energy in Gap : 50.0395 MeV +- 0 eV
mean trackLength in Absorber : 60.8807 cm +- 0 fm
mean trackLength in Gap : 32.6255 cm +- 0 fm
mean trackLength in Absorber : 55.2231 cm +- 0 fm
mean trackLength in Gap : 25.4593 cm +- 0 fm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 245.231 MeV rms = 0 eV
EGap: mean = 64.6941 MeV rms = 0 eV
LAbs: mean = 60.8807 cm rms = 0 fm
LGap: mean = 32.6255 cm rms = 0 fm
EAbs: mean = 224.093 MeV rms = 0 eV
EGap: mean = 50.0395 MeV rms = 0 eV
LAbs: mean = 55.2231 cm rms = 0 fm
LGap: mean = 25.4593 cm rms = 0 fm
... write file : AnaEx01.root - done
... close file : AnaEx01.root - done
@@ -937,20 +934,20 @@ LGap: mean = 32.6255 cm rms = 0 fm
--------------------End of Run------------------------------
mean Energy in Absorber : 188.669 MeV +- 48.7853 MeV
mean Energy in Gap : 46.259 MeV +- 13.3455 MeV
mean Energy in Absorber : 187.729 MeV +- 50.1943 MeV
mean Energy in Gap : 46.0401 MeV +- 13.1672 MeV
mean trackLength in Absorber : 46.5752 cm +- 12.122 cm
mean trackLength in Gap : 23.4524 cm +- 6.81929 cm
mean trackLength in Absorber : 46.3759 cm +- 12.4411 cm
mean trackLength in Gap : 23.3634 cm +- 6.72305 cm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 188.669 MeV rms = 48.7853 MeV
EGap: mean = 46.259 MeV rms = 13.3455 MeV
LAbs: mean = 46.5752 cm rms = 12.122 cm
LGap: mean = 23.4524 cm rms = 6.81929 cm
EAbs: mean = 187.729 MeV rms = 50.1943 MeV
EGap: mean = 46.0401 MeV rms = 13.1672 MeV
LAbs: mean = 46.3759 cm rms = 12.4411 cm
LGap: mean = 23.3634 cm rms = 6.72305 cm
... write file : AnaEx01.root - done
... close file : AnaEx01.root - done
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -71,7 +71,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -84,13 +83,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -203,7 +201,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -340,7 +338,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -398,7 +396,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -430,7 +428,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -462,7 +460,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -494,7 +492,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -526,7 +524,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -558,7 +556,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -590,7 +588,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -845,8 +843,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -860,9 +858,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -885,20 +882,20 @@ Max 2J for sampling of angular correlations 10
--------------------End of Run------------------------------
mean Energy in Absorber : 245.231 MeV +- 0 eV
mean Energy in Gap : 64.6941 MeV +- 0 eV
mean Energy in Absorber : 224.093 MeV +- 0 eV
mean Energy in Gap : 50.0395 MeV +- 0 eV
mean trackLength in Absorber : 60.8807 cm +- 0 fm
mean trackLength in Gap : 32.6255 cm +- 0 fm
mean trackLength in Absorber : 55.2231 cm +- 0 fm
mean trackLength in Gap : 25.4593 cm +- 0 fm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 245.231 MeV rms = 0 eV
EGap: mean = 64.6941 MeV rms = 0 eV
LAbs: mean = 60.8807 cm rms = 0 fm
LGap: mean = 32.6255 cm rms = 0 fm
EAbs: mean = 224.093 MeV rms = 0 eV
EGap: mean = 50.0395 MeV rms = 0 eV
LAbs: mean = 55.2231 cm rms = 0 fm
LGap: mean = 25.4593 cm rms = 0 fm
... write file : AnaEx01.xml - done
... write file : AnaEx01_nt_Ntuple1.xml - done
... write file : AnaEx01_nt_Ntuple2.xml - done
@@ -942,20 +939,20 @@ LGap: mean = 32.6255 cm rms = 0 fm
--------------------End of Run------------------------------
mean Energy in Absorber : 188.669 MeV +- 48.7853 MeV
mean Energy in Gap : 46.259 MeV +- 13.3455 MeV
mean Energy in Absorber : 187.729 MeV +- 50.1943 MeV
mean Energy in Gap : 46.0401 MeV +- 13.1672 MeV
mean trackLength in Absorber : 46.5752 cm +- 12.122 cm
mean trackLength in Gap : 23.4524 cm +- 6.81929 cm
mean trackLength in Absorber : 46.3759 cm +- 12.4411 cm
mean trackLength in Gap : 23.3634 cm +- 6.72305 cm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 188.669 MeV rms = 48.7853 MeV
EGap: mean = 46.259 MeV rms = 13.3455 MeV
LAbs: mean = 46.5752 cm rms = 12.122 cm
LGap: mean = 23.4524 cm rms = 6.81929 cm
EAbs: mean = 187.729 MeV rms = 50.1943 MeV
EGap: mean = 46.0401 MeV rms = 13.1672 MeV
LAbs: mean = 46.3759 cm rms = 12.4411 cm
LGap: mean = 23.3634 cm rms = 6.72305 cm
... write file : AnaEx01.xml - done
... write file : AnaEx01_nt_Ntuple1.xml - done
... write file : AnaEx01_nt_Ntuple2.xml - done
@@ -23,14 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file analysis/AnaEx01/AnaEx01.cc
/// \file AnaEx01.cc
/// \brief Main program of the analysis/AnaEx01 example
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
-161
View File
@@ -1,161 +0,0 @@
--------------------------------------------------
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
=========================================================
AnaEx01
-------
Examples AnaEx01 and AnaEx02 show the usage of histogram and tuple
manipulations using G4Analysis and ROOT compliant systems on the same
scenario. All analysis manipulations (histo booking, filling, saving histos
in a file, etc...) are located in one class : HistoManager, implementation of
which is different in each example. All the other classes are same in all
three examples.
This example shows the usage of histogram and tuple manipulations using
G4Analysis system.
The example is an adaptation of examples/novice/N03. It describes a simple
sampling calorimeter setup.
1- Detector description
-----------------------
The calorimeter is a box made of a given number of layers. A layer
consists of an absorber plate and of a detection gap. The layer is
replicated.
Six parameters define the calorimeter :
- the material of the absorber,
- the thickness of an absorber plate,
- the material of the detection gap,
- the thickness of a gap,
- the number of layers,
- the transverse size of the calorimeter (the input face is a square).
The default geometry is constructed in DetectorConstruction class,
but all of the above parameters can be modified interactively via
the commands defined in the DetectorMessenger class.
|<----layer 0---------->|<----layer 1---------->|<----layer 2---------->|
| | | |
==========================================================================
|| | || | || | ||
|| | || | || | ||
beam || absorber | gap || absorber | gap || absorber | gap ||
======> || | || | || | ||
|| | || | || | ||
==========================================================================
2- Physics list
---------------
The particle's type and the physic processes which will be available
in this example are set in the FTFP_BERT physics list.
3- Action Initialization
------------------------
A newly introduced class, ActionInitialization,
instantiates and registers to Geant4 kernel all user action classes
which are defined thread-local and a run action class
which is defined both thread-local and global.
The thread-local action classes are defined in
ActionInitialization::Build()
and the global run action class is defined in
ActionInitialization::BuildForMaster().
Note that ActionInitialization::Build() is also used to
instatiate user action clasess in sequential mode.
4- An event : PrimaryGeneratorAction
------------------------------------
The primary kinematic consists of a single particle which hits the
calorimeter perpendicular to the input face. The type of the particle
and its energy are set in the PrimaryGeneratorAction class, and can
be changed via the G4 build-in commands of ParticleGun class.
5- Histograms
-------------
AnaEx01 can produce 4 histograms :
EAbs : total energy deposit in absorber per event
EGap : total energy deposit in gap per event
LAbs : total track length of charged particles in absorber per event
LGap : total track length of charged particles in gap per event
And 2 Ntuples :
- Ntuple1:
- one row per event : EnergyAbs EnergyGap
- Ntuple2:
- one row per event : TrackLAbs TrackLGap
These histos and ntuples are booked in HistoManager and filled from
EventAction.
One can control the name of the histograms file and its format:
default name : AnaEx01
The format of the histogram file can be : root (default),
xml, csv.
We can define the default file type and set it to the analysis manager via
/analysis/setDefaultFileType root # or csv hdf5 xml
The file names then need not to be provided with the file extension and the same macro
can be used with different output types.
6- Macros:
----------
The AnaEx01.in macro uses the defaultFileType parameter (alias), which default value,
"root" is defined in main.
AnaEx01-csv.in, AnaEx01-hdf5.in, AnaEx01-root.in, AnaEx01-xml.in:
In these macros, the default value of the defaultFileType is overritten with
/control/alias defaultFileType cvs # or hdf5 root xml
and then the AnaEx01.in macro is called.
7- How to build
---------------
An additional step is needed when building the example with GNUmake
due to using the extra shared directory:
% cd path_to_AnaEx01/AnaEx01
% gmake setup
% gmake
This will copy the files from shared in the example include and src;
to remove these files:
% gmake clean_setup
8- How to run
--------------
- Execute AnaEx01 in the 'interactive mode' with visualization
% ./AnaEx01
and type in the commands from run.mac line by line:
Idle> /control/verbose 2
Idle> /tracking/verbose 1
Idle> /run/beamOn 10
Idle> ...
Idle> exit
or
Idle> /control/execute run.mac
....
Idle> exit
- Execute AnaEx01 in the 'batch' mode from macro files
(without visualization)
% ./AnaEx01 run.mac
% ./AnaEx01 run.mac > run.out
The AnaEx01.in macro is used in Geant4 testing.
@@ -1,8 +1,4 @@
///\file "analysis/AnaEx01/.README.txt"
///\brief Example AnaEx01 README page
/*! \page ExampleAnaEx01 Example AnaEx01
\page ExampleAnaEx01 Example AnaEx01
Examples AnaEx01 and AnaEx02 show the usage of histogram and tuple
manipulations using G4Analysis and ROOT compliant systems on the same
@@ -17,7 +13,7 @@
The example is an adaptation of examples/novice/N03. It describes a simple
sampling calorimeter setup.
\section AnaEx01_s1 Detector description
## Detector description
The calorimeter is a box made of a given number of layers. A layer
consists of an absorber plate and of a detection gap. The layer is
@@ -48,12 +44,12 @@
</pre>
\section AnaEx01_s2 Physics list
## Physics list
The particle's type and the physic processes which will be available
in this example are set in the FTFP_BERT physics list.
\section AnaEx01_s3 Action Initialization
## Action Initialization
A newly introduced class, ActionInitialization,
instantiates and registers to Geant4 kernel all user action classes
@@ -67,7 +63,7 @@
Note that ActionInitialization::Build() is also used to
instatiate user action clasess in sequential mode.
\section AnaEx01_s4 An event : PrimaryGeneratorAction
## An event : PrimaryGeneratorAction
The primary kinematic consists of a single particle which hits the
calorimeter perpendicular to the input face. The type of the particle
@@ -75,7 +71,7 @@
be changed via the G4 build-in commands of ParticleGun class.
\section AnaEx01_s5 Histograms
## Histograms
AnaEx01 can produce 4 histograms :
@@ -99,45 +95,45 @@
xml, csv.
We can define the default file type and set it to the analysis manager via
\verbatim
```
/analysis/setDefaultFileType root # or csv hdf5 xml
\endverbatim
```
The file names then need not to be provided with the file extension and the same macro
can be used with different output types.
\section AnaEx03_s7 Macros
## Macros
- The AnaEx01.in macro uses the defaultFileType parameter (alias), which default value,
"root" is defined in main.
- The AnaEx01.in macro uses the `defaultFileType` parameter (alias), which default value,
"root" is defined in main().
- AnaEx01-csv.in, AnaEx01-hdf5.in, AnaEx01-root.in, AnaEx01-xml.in:
In these macros, the default value of the defaultFileType is overritten with
\verbatim
- AnaEx01-csv.in, AnaEx01-hdf5.in, AnaEx01-root.in, AnaEx01-xml.in: \n
In these macros, the default value of the `defaultFileType` is overritten with
```
/control/alias defaultFileType cvs # or hdf5 root xml
\endverbatim
```
and then the AnaEx01.in macro is called.
\section AnaEx01_s8 How to build
## How to build
An additional step is needed when building the example with GNUmake
due to using the extra shared directory:
\verbatim
```
% cd path_to_AnaEx01/AnaEx01
% gmake setup
% gmake
\endverbatim
```
This will copy the files from shared in the example include and src;
to remove these files:
\verbatim
```
% gmake clean_setup
\endverbatim
```
\section AnaEx01_s9 HOW TO RUN
## HOW TO RUN
- Execute AnaEx01 in the 'interactive mode' with visualization
\verbatim
```
% ./AnaEx01
and type in the commands from run.mac line by line:
Idle> /control/verbose 2
@@ -145,21 +141,19 @@ Idle> /tracking/verbose 1
Idle> /run/beamOn 10
Idle> ...
Idle> exit
\endverbatim
```
or
\verbatim
```
Idle> /control/execute run.mac
....
Idle> exit
\endverbatim
```
- Execute AnaEx01 in the 'batch' mode from macro files
(without visualization)
\verbatim
```
% ./AnaEx01 run.mac
% ./AnaEx01 run.mac > run.out
\endverbatim
```
The AnaEx01.in macro is used in Geant4 testing.
*/
@@ -23,13 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file analysis/AnaEx01/include/HistoManager.hh
/// \file HistoManager.hh
/// \brief Definition of the HistoManager class
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef HistoManager_h
#define HistoManager_h 1
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ActionInitialization.hh
/// \brief Definition of the ActionInitialization class
@@ -26,9 +26,6 @@
/// \file DetectorConstruction.hh
/// \brief Definition of the DetectorConstruction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef DetectorConstruction_h
#define DetectorConstruction_h 1
@@ -26,9 +26,6 @@
/// \file DetectorMessenger.hh
/// \brief Definition of the DetectorMessenger class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef DetectorMessenger_h
#define DetectorMessenger_h 1
@@ -25,13 +25,6 @@
//
/// \file EventAction.hh
/// \brief Definition of the EventAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef EventAction_h
#define EventAction_h 1
@@ -26,9 +26,6 @@
/// \file PrimaryGeneratorAction.hh
/// \brief Definition of the PrimaryGeneratorAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef PrimaryGeneratorAction_h
#define PrimaryGeneratorAction_h 1
@@ -25,13 +25,6 @@
//
/// \file RunAction.hh
/// \brief Definition of the RunAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef RunAction_h
#define RunAction_h 1
@@ -26,9 +26,6 @@
/// \file SteppingAction.hh
/// \brief Definition of the SteppingAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef SteppingAction_h
#define SteppingAction_h 1
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ActionInitialization.cc
/// \brief Implementation of the ActionInitialization class
@@ -26,9 +26,6 @@
/// \file DetectorConstruction.cc
/// \brief Implementation of the DetectorConstruction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "DetectorConstruction.hh"
#include "DetectorMessenger.hh"
@@ -26,9 +26,6 @@
/// \file DetectorMessenger.cc
/// \brief Implementation of the DetectorMessenger class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "DetectorMessenger.hh"
#include "DetectorConstruction.hh"
@@ -25,13 +25,6 @@
//
/// \file EventAction.cc
/// \brief Implementation of the EventAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "EventAction.hh"
@@ -26,9 +26,6 @@
/// \file PrimaryGeneratorAction.cc
/// \brief Implementation of the PrimaryGeneratorAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PrimaryGeneratorAction.hh"
#include "DetectorConstruction.hh"
@@ -25,11 +25,6 @@
//
/// \file RunAction.cc
/// \brief Implementation of the RunAction class
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "RunAction.hh"
@@ -26,9 +26,6 @@
/// \file SteppingAction.cc
/// \brief Implementation of the SteppingAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "SteppingAction.hh"
#include "DetectorConstruction.hh"
@@ -23,13 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file analysis/AnaEx01/src/HistoManager.cc
/// \file HistoManager.cc
/// \brief Implementation of the HistoManager class
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "HistoManager.hh"
@@ -23,14 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file analysis/AnaEx02/AnaEx02.cc
/// \file AnaEx02.cc
/// \brief Main program of the analysis/AnaEx02 example
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
+31 -34
View File
@@ -10,7 +10,7 @@
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -70,7 +70,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -83,13 +82,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -202,7 +200,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -339,7 +337,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -397,7 +395,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -429,7 +427,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -461,7 +459,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -493,7 +491,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -525,7 +523,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -557,7 +555,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -589,7 +587,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -844,8 +842,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -859,9 +857,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -880,20 +877,20 @@ Max 2J for sampling of angular correlations 10
--------------------End of Run------------------------------
mean Energy in Absorber : 245.231 MeV +- 0 eV
mean Energy in Gap : 64.6941 MeV +- 0 eV
mean Energy in Absorber : 224.093 MeV +- 0 eV
mean Energy in Gap : 50.0395 MeV +- 0 eV
mean trackLength in Absorber : 60.8807 cm +- 0 fm
mean trackLength in Gap : 32.6255 cm +- 0 fm
mean trackLength in Absorber : 55.2231 cm +- 0 fm
mean trackLength in Gap : 25.4593 cm +- 0 fm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 245.231 MeV rms = 0 eV
EGap: mean = 64.6941 MeV rms = 0 eV
LAbs: mean = 60.8807 cm rms = 0 fm
LGap: mean = 32.6255 cm rms = 0 fm
EAbs: mean = 224.093 MeV rms = 0 eV
EGap: mean = 50.0395 MeV rms = 0 eV
LAbs: mean = 55.2231 cm rms = 0 fm
LGap: mean = 25.4593 cm rms = 0 fm
----> Histograms and ntuples are saved
@@ -927,20 +924,20 @@ LGap: mean = 32.6255 cm rms = 0 fm
--------------------End of Run------------------------------
mean Energy in Absorber : 188.669 MeV +- 48.7853 MeV
mean Energy in Gap : 46.259 MeV +- 13.3455 MeV
mean Energy in Absorber : 187.729 MeV +- 50.1943 MeV
mean Energy in Gap : 46.0401 MeV +- 13.1672 MeV
mean trackLength in Absorber : 46.5752 cm +- 12.122 cm
mean trackLength in Gap : 23.4524 cm +- 6.81929 cm
mean trackLength in Absorber : 46.3759 cm +- 12.4411 cm
mean trackLength in Gap : 23.3634 cm +- 6.72305 cm
------------------------------------------------------------
----> print histograms statistic
EAbs: mean = 188.669 MeV rms = 48.7853 MeV
EGap: mean = 46.259 MeV rms = 13.3455 MeV
LAbs: mean = 46.5752 cm rms = 12.122 cm
LGap: mean = 23.4524 cm rms = 6.81929 cm
EAbs: mean = 187.729 MeV rms = 50.1943 MeV
EGap: mean = 46.0401 MeV rms = 13.1672 MeV
LAbs: mean = 46.3759 cm rms = 12.4411 cm
LGap: mean = 23.3634 cm rms = 6.72305 cm
----> Histograms and ntuples are saved
-145
View File
@@ -1,145 +0,0 @@
--------------------------------------------------
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
=========================================================
AnaEx02
-------
Examples AnaEx01 and AnaEx02 show the usage of histogram and tuple
manipulations using G4Analysis and ROOT compliant systems on the same
scenario. All analysis manipulations (histo booking, filling, saving histos
in a file, etc...) are located in one class : HistoManager, implementation of
which is different in each example. All the other classes are same in all
three examples.
This example shows the usage of histogram and tuple manipulations using
ROOT system. Please install ROOT before building this example:
http://root.cern
The example is an adaptation of examples/novice/N03. It describes a simple
sampling calorimeter setup.
1- Detector description
-----------------------
The calorimeter is a box made of a given number of layers. A layer
consists of an absorber plate and of a detection gap. The layer is
replicated.
Six parameters define the calorimeter :
- the material of the absorber,
- the thickness of an absorber plate,
- the material of the detection gap,
- the thickness of a gap,
- the number of layers,
- the transverse size of the calorimeter (the input face is a square).
The default geometry is constructed in DetectorConstruction class,
but all of the above parameters can be modified interactively via
the commands defined in the DetectorMessenger class.
|<----layer 0---------->|<----layer 1---------->|<----layer 2---------->|
| | | |
==========================================================================
|| | || | || | ||
|| | || | || | ||
beam || absorber | gap || absorber | gap || absorber | gap ||
======> || | || | || | ||
|| | || | || | ||
==========================================================================
2- Physics list
---------------
The particle's type and the physic processes which will be available
in this example are set in the FTFP_BERT physics list.
3- Action Initialization
------------------------
A newly introduced class, ActionInitialization,
instantiates and registers to Geant4 kernel all user action classes
which are defined thread-local and a run action class
which is defined both thread-local and global.
The thread-local action classes are defined in
ActionInitialization::Build()
and the global run action class is defined in
ActionInitialization::BuildForMaster().
Note that ActionInitialization::Build() is also used to
instatiate user action clasess in sequential mode.
4- An event : PrimaryGeneratorAction
------------------------------------
The primary kinematic consists of a single particle which hits the
calorimeter perpendicular to the input face. The type of the particle
and its energy are set in the PrimaryGeneratorAction class, and can
be changed via the G4 build-in commands of ParticleGun class.
5- Histograms
-------------
To produce histograms, ROOT system must be installed
AnaEx02 can produce 4 histograms :
EAbs : total energy deposit in absorber per event
EGap : total energy deposit in gap per event
LAbs : total track length of charged particles in absorber per event
LGap : total track length of charged particles in gap per event
And 2 Ntuples :
- Ntuple1:
- one row per event : EnergyAbs EnergyGap
- Ntuple2:
- one row per event : TrackLAbs TrackLGap
These histos and ntuples are booked in HistoManager and filled from
EventAction.
One can control the name of the histograms file :
default name : AnaEx02
format : root
See HistoManager constructor
6- How to build
---------------
An additional step is needed when building the example with GNUmake
due to using the extra shared directory:
% cd path_to_AnaEx02/AnaEx02
% gmake setup
% gmake
This will copy the files from shared in the example include and src;
to remove these files:
% gmake clean_setup
7- How to run
--------------
- Execute AnaEx02 in the 'interactive mode' with visualization:
% ./AnaEx02
and type in the commands from run.mac line by line:
Idle> /control/verbose 2
Idle> /tracking/verbose 1
Idle> /run/beamOn 10
Idle> ...
Idle> exit
or
Idle> /control/execute run.mac
....
Idle> exit
- Execute AnaEx02 in the 'batch' mode from macro files
(without visualization)
% ./AnaEx02 run.mac
% ./AnaEx02 run.mac > run.out
The AnaEx02.in macro is used in Geant4 testing.
@@ -1,8 +1,4 @@
///\file "analysis/AnaEx02/.README.txt"
///\brief Example AnaEx02 README page
/*! \page ExampleAnaEx02 Example AnaEx02
\page ExampleAnaEx02 Example AnaEx02
Examples AnaEx01 and AnaEx02 show the usage of histogram and tuple
manipulations using G4Analysis and ROOT compliant systems on the same
@@ -18,7 +14,7 @@
The example is an adaptation of examples/novice/N03. It describes a simple
sampling calorimeter setup.
\section AnaEx02_s1 Detector description
## Detector description
The calorimeter is a box made of a given number of layers. A layer
consists of an absorber plate and of a detection gap. The layer is
@@ -49,12 +45,12 @@
</pre>
\section AnaEx02_s2 Physics list
## Physics list
The particle's type and the physic processes which will be available
in this example are set in the FTFP_BERT physics list.
\section AnaEx02_s3 Action Initialization
## Action Initialization
A newly introduced class, ActionInitialization,
instantiates and registers to Geant4 kernel all user action classes
@@ -68,7 +64,7 @@
Note that ActionInitialization::Build() is also used to
instatiate user action clasess in sequential mode.
\section AnaEx02_s4 An event : PrimaryGeneratorAction
## An event : PrimaryGeneratorAction
The primary kinematic consists of a single particle which hits the
calorimeter perpendicular to the input face. The type of the particle
@@ -76,7 +72,7 @@
be changed via the G4 build-in commands of ParticleGun class.
\section AnaEx02_s5 Histograms
## Histograms
To produce histograms, ROOT system must be installed
@@ -102,26 +98,26 @@
See HistoManager constructor
\section AnaEx02_s6 How to build
## How to build
An additional step is needed when building the example with GNUmake
due to using the extra shared directory:
\verbatim
```
% cd path_to_AnaEx02/AnaEx02
% gmake setup
% gmake
\endverbatim
```
This will copy the files from shared in the example include and src;
to remove these files:
\verbatim
```
% gmake clean_setup
\endverbatim
```
\section AnaEx02_s8 HOW TO RUN
## HOW TO RUN
- Execute AnaEx02 in the 'interactive mode' with visualization
\verbatim
```
% ./AnaEx02
and type in the commands from run.mac line by line:
Idle> /control/verbose 2
@@ -129,21 +125,19 @@ Idle> /tracking/verbose 1
Idle> /run/beamOn 10
Idle> ...
Idle> exit
\endverbatim
```
or
\verbatim
```
Idle> /control/execute run.mac
....
Idle> exit
\endverbatim
```
- Execute AnaEx02 in the 'batch' mode from macro files
(without visualization)
\verbatim
```
% ./AnaEx02 run.mac
% ./AnaEx02 run.mac > run.out
\endverbatim
```
The AnaEx02.in macro is used in Geant4 testing.
*/
@@ -23,12 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file analysis/AnaEx02/include/HistoManager.hh
/// \file HistoManager.hh
/// \brief Definition of the HistoManager class
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef HistoManager_h
#define HistoManager_h 1
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ActionInitialization.hh
/// \brief Definition of the ActionInitialization class
@@ -26,9 +26,6 @@
/// \file DetectorConstruction.hh
/// \brief Definition of the DetectorConstruction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef DetectorConstruction_h
#define DetectorConstruction_h 1
@@ -26,9 +26,6 @@
/// \file DetectorMessenger.hh
/// \brief Definition of the DetectorMessenger class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef DetectorMessenger_h
#define DetectorMessenger_h 1
@@ -25,13 +25,6 @@
//
/// \file EventAction.hh
/// \brief Definition of the EventAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef EventAction_h
#define EventAction_h 1
@@ -26,9 +26,6 @@
/// \file PrimaryGeneratorAction.hh
/// \brief Definition of the PrimaryGeneratorAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef PrimaryGeneratorAction_h
#define PrimaryGeneratorAction_h 1
@@ -25,13 +25,6 @@
//
/// \file RunAction.hh
/// \brief Definition of the RunAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef RunAction_h
#define RunAction_h 1
@@ -26,9 +26,6 @@
/// \file SteppingAction.hh
/// \brief Definition of the SteppingAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef SteppingAction_h
#define SteppingAction_h 1
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ActionInitialization.cc
/// \brief Implementation of the ActionInitialization class
@@ -26,9 +26,6 @@
/// \file DetectorConstruction.cc
/// \brief Implementation of the DetectorConstruction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "DetectorConstruction.hh"
#include "DetectorMessenger.hh"
@@ -26,9 +26,6 @@
/// \file DetectorMessenger.cc
/// \brief Implementation of the DetectorMessenger class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "DetectorMessenger.hh"
#include "DetectorConstruction.hh"
@@ -25,13 +25,6 @@
//
/// \file EventAction.cc
/// \brief Implementation of the EventAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "EventAction.hh"
@@ -26,9 +26,6 @@
/// \file PrimaryGeneratorAction.cc
/// \brief Implementation of the PrimaryGeneratorAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PrimaryGeneratorAction.hh"
#include "DetectorConstruction.hh"
@@ -25,11 +25,6 @@
//
/// \file RunAction.cc
/// \brief Implementation of the RunAction class
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "RunAction.hh"
@@ -26,9 +26,6 @@
/// \file SteppingAction.cc
/// \brief Implementation of the SteppingAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "SteppingAction.hh"
#include "DetectorConstruction.hh"
@@ -23,12 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file analysis/AnaEx02/src/HistoManager.cc
/// \file HistoManager.cc
/// \brief Implementation of the HistoManager class
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "HistoManager.hh"
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -63,7 +63,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -76,13 +75,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -181,7 +179,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -318,7 +316,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -376,7 +374,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -408,7 +406,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -440,7 +438,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -472,7 +470,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -504,7 +502,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -536,7 +534,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -568,7 +566,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -823,8 +821,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -838,9 +836,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -867,10 +864,10 @@ Max 2J for sampling of angular correlations 10
----> print histograms statistic
EAbs: mean = 92.3063 MeV rms = 4.14219 MeV
EGap: mean = 4.85878 MeV rms = 2.0183 MeV
LAbs: mean = 6.63777 cm rms = 2.92186 mm
LGap: mean = 2.3872 cm rms = 9.61394 mm
EAbs: mean = 90.5268 MeV rms = 2.80713 MeV
EGap: mean = 5.84279 MeV rms = 2.55704 MeV
LAbs: mean = 6.55732 cm rms = 2.82109 mm
LGap: mean = 3.05107 cm rms = 1.2957 cm
### Run 1 start.
---> Begin of event: 0
@@ -891,8 +888,8 @@ LGap: mean = 2.3872 cm rms = 9.61394 mm
----> print histograms statistic
EAbs: mean = 183.461 MeV rms = 6.36249 MeV
LAbs: mean = 13.2058 cm rms = 4.88221 mm
EAbs: mean = 180.943 MeV rms = 7.82547 MeV
LAbs: mean = 13.078 cm rms = 6.32409 mm
### Run 2 start.
---> Begin of event: 0
@@ -921,10 +918,10 @@ LAbs: mean = 13.2058 cm rms = 4.88221 mm
----> print histograms statistic
EAbs: mean = 273.332 MeV rms = 8.75548 MeV
EGap2: mean = 14.9832 MeV rms = 4.18697 MeV
LAbs: mean = 19.5974 cm rms = 6.76993 mm
LGap2: mean = 7.4865 cm rms = 2.18857 cm
EAbs: mean = 275.418 MeV rms = 5.85294 MeV
EGap2: mean = 15.1446 MeV rms = 4.51267 MeV
LAbs: mean = 19.8971 cm rms = 4.52994 mm
LGap2: mean = 7.50542 cm rms = 2.32984 cm
... close file : ./histo/e-_h1_EAbs.csv - done
... close file : ./histo/e-_h1_EAbs_v1.csv - done
... close file : ./histo/e-_h1_EAbs_v2.csv - done
@@ -960,10 +957,10 @@ LGap2: mean = 7.4865 cm rms = 2.18857 cm
----> print histograms statistic
EAbs: mean = 205.168 MeV rms = 42.1014 MeV
EGap2: mean = 18.2936 MeV rms = 7.11512 MeV
LAbs: mean = 8.71723 cm rms = 2.20834 cm
LGap2: mean = 4.43677 cm rms = 1.44086 cm
EAbs: mean = 209.518 MeV rms = 62.193 MeV
EGap2: mean = 18.3511 MeV rms = 9.92355 MeV
LAbs: mean = 8.45838 cm rms = 2.51776 cm
LGap2: mean = 4.27443 cm rms = 1.5064 cm
### Run 4 start.
---> Begin of event: 0
@@ -988,10 +985,10 @@ LGap2: mean = 4.43677 cm rms = 1.44086 cm
----> print histograms statistic
EAbs: mean = 194.62 MeV rms = 44.3204 MeV
EGap2: mean = 15.8381 MeV rms = 5.63046 MeV
LAbs: mean = 9.57909 cm rms = 1.85301 cm
LGap2: mean = 4.86042 cm rms = 1.29463 cm
EAbs: mean = 198.333 MeV rms = 65.971 MeV
EGap2: mean = 17.0305 MeV rms = 10.8734 MeV
LAbs: mean = 9.05692 cm rms = 2.2465 cm
LGap2: mean = 4.57616 cm rms = 1.55634 cm
... close file : ./histo/proton_h1_EAbs.csv - done
... close file : ./histo/proton_h1_EAbs_v1.csv - done
... close file : ./histo/proton_h1_EGap2.csv - done
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -63,7 +63,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -76,13 +75,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -180,7 +178,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -317,7 +315,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -375,7 +373,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -407,7 +405,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -439,7 +437,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -471,7 +469,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -503,7 +501,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -535,7 +533,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -567,7 +565,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -822,8 +820,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -837,9 +835,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -857,10 +854,10 @@ Max 2J for sampling of angular correlations 10
----> print histograms statistic
EAbs: mean = 92.3063 MeV rms = 4.14219 MeV
EGap: mean = 4.85878 MeV rms = 2.0183 MeV
LAbs: mean = 6.63777 cm rms = 2.92186 mm
LGap: mean = 2.3872 cm rms = 9.61394 mm
EAbs: mean = 90.5268 MeV rms = 2.80713 MeV
EGap: mean = 5.84279 MeV rms = 2.55704 MeV
LAbs: mean = 6.55732 cm rms = 2.82109 mm
LGap: mean = 3.05107 cm rms = 1.2957 cm
### Run 1 start.
---> Begin of event: 0
@@ -868,8 +865,8 @@ LGap: mean = 2.3872 cm rms = 9.61394 mm
----> print histograms statistic
EAbs: mean = 183.461 MeV rms = 6.36249 MeV
LAbs: mean = 13.2058 cm rms = 4.88221 mm
EAbs: mean = 180.943 MeV rms = 7.82547 MeV
LAbs: mean = 13.078 cm rms = 6.32409 mm
### Run 2 start.
---> Begin of event: 0
@@ -877,10 +874,10 @@ LAbs: mean = 13.2058 cm rms = 4.88221 mm
----> print histograms statistic
EAbs: mean = 273.332 MeV rms = 8.75548 MeV
EGap2: mean = 14.9832 MeV rms = 4.18697 MeV
LAbs: mean = 19.5974 cm rms = 6.76993 mm
LGap2: mean = 7.4865 cm rms = 2.18857 cm
EAbs: mean = 275.418 MeV rms = 5.85294 MeV
EGap2: mean = 15.1446 MeV rms = 4.51267 MeV
LAbs: mean = 19.8971 cm rms = 4.52994 mm
LGap2: mean = 7.50542 cm rms = 2.32984 cm
... close file : e-.hdf5 - done
... create file : proton.hdf5 - done
... open analysis file : proton.hdf5 - done
@@ -891,10 +888,10 @@ LGap2: mean = 7.4865 cm rms = 2.18857 cm
----> print histograms statistic
EAbs: mean = 205.168 MeV rms = 42.1014 MeV
EGap2: mean = 18.2936 MeV rms = 7.11512 MeV
LAbs: mean = 8.71723 cm rms = 2.20834 cm
LGap2: mean = 4.43677 cm rms = 1.44086 cm
EAbs: mean = 209.518 MeV rms = 62.193 MeV
EGap2: mean = 18.3511 MeV rms = 9.92355 MeV
LAbs: mean = 8.45838 cm rms = 2.51776 cm
LGap2: mean = 4.27443 cm rms = 1.5064 cm
### Run 4 start.
---> Begin of event: 0
@@ -902,10 +899,10 @@ LGap2: mean = 4.43677 cm rms = 1.44086 cm
----> print histograms statistic
EAbs: mean = 194.62 MeV rms = 44.3204 MeV
EGap2: mean = 15.8381 MeV rms = 5.63046 MeV
LAbs: mean = 9.57909 cm rms = 1.85301 cm
LGap2: mean = 4.86042 cm rms = 1.29463 cm
EAbs: mean = 198.333 MeV rms = 65.971 MeV
EGap2: mean = 17.0305 MeV rms = 10.8734 MeV
LAbs: mean = 9.05692 cm rms = 2.2465 cm
LGap2: mean = 4.57616 cm rms = 1.55634 cm
... close file : proton.hdf5 - done
Graphics systems deleted.
Visualization Manager deleting...
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -63,7 +63,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -76,13 +75,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -182,7 +180,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -319,7 +317,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -377,7 +375,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -409,7 +407,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -441,7 +439,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -473,7 +471,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -505,7 +503,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -537,7 +535,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -569,7 +567,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -824,8 +822,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -839,9 +837,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -859,10 +856,10 @@ Max 2J for sampling of angular correlations 10
----> print histograms statistic
EAbs: mean = 92.3063 MeV rms = 4.14219 MeV
EGap: mean = 4.85878 MeV rms = 2.0183 MeV
LAbs: mean = 6.63777 cm rms = 2.92186 mm
LGap: mean = 2.3872 cm rms = 9.61394 mm
EAbs: mean = 90.5268 MeV rms = 2.80713 MeV
EGap: mean = 5.84279 MeV rms = 2.55704 MeV
LAbs: mean = 6.55732 cm rms = 2.82109 mm
LGap: mean = 3.05107 cm rms = 1.2957 cm
### Run 1 start.
---> Begin of event: 0
@@ -870,8 +867,8 @@ LGap: mean = 2.3872 cm rms = 9.61394 mm
----> print histograms statistic
EAbs: mean = 183.461 MeV rms = 6.36249 MeV
LAbs: mean = 13.2058 cm rms = 4.88221 mm
EAbs: mean = 180.943 MeV rms = 7.82547 MeV
LAbs: mean = 13.078 cm rms = 6.32409 mm
### Run 2 start.
---> Begin of event: 0
@@ -879,10 +876,10 @@ LAbs: mean = 13.2058 cm rms = 4.88221 mm
----> print histograms statistic
EAbs: mean = 273.332 MeV rms = 8.75548 MeV
EGap2: mean = 14.9832 MeV rms = 4.18697 MeV
LAbs: mean = 19.5974 cm rms = 6.76993 mm
LGap2: mean = 7.4865 cm rms = 2.18857 cm
EAbs: mean = 275.418 MeV rms = 5.85294 MeV
EGap2: mean = 15.1446 MeV rms = 4.51267 MeV
LAbs: mean = 19.8971 cm rms = 4.52994 mm
LGap2: mean = 7.50542 cm rms = 2.32984 cm
... close file : e-.root - done
... create file : proton.root - done
... open analysis file : proton.root - done
@@ -894,10 +891,10 @@ LGap2: mean = 7.4865 cm rms = 2.18857 cm
----> print histograms statistic
EAbs: mean = 205.168 MeV rms = 42.1014 MeV
EGap2: mean = 18.2936 MeV rms = 7.11512 MeV
LAbs: mean = 8.71723 cm rms = 2.20834 cm
LGap2: mean = 4.43677 cm rms = 1.44086 cm
EAbs: mean = 209.518 MeV rms = 62.193 MeV
EGap2: mean = 18.3511 MeV rms = 9.92355 MeV
LAbs: mean = 8.45838 cm rms = 2.51776 cm
LGap2: mean = 4.27443 cm rms = 1.5064 cm
### Run 4 start.
---> Begin of event: 0
@@ -905,10 +902,10 @@ LGap2: mean = 4.43677 cm rms = 1.44086 cm
----> print histograms statistic
EAbs: mean = 194.62 MeV rms = 44.3204 MeV
EGap2: mean = 15.8381 MeV rms = 5.63046 MeV
LAbs: mean = 9.57909 cm rms = 1.85301 cm
LGap2: mean = 4.86042 cm rms = 1.29463 cm
EAbs: mean = 198.333 MeV rms = 65.971 MeV
EGap2: mean = 17.0305 MeV rms = 10.8734 MeV
LAbs: mean = 9.05692 cm rms = 2.2465 cm
LGap2: mean = 4.57616 cm rms = 1.55634 cm
... close file : proton.root - done
Graphics systems deleted.
Visualization Manager deleting...
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -63,7 +63,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -76,13 +75,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -182,7 +180,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -319,7 +317,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -377,7 +375,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -409,7 +407,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -441,7 +439,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -473,7 +471,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -505,7 +503,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -537,7 +535,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -569,7 +567,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -824,8 +822,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -839,9 +837,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -861,10 +858,10 @@ Max 2J for sampling of angular correlations 10
----> print histograms statistic
EAbs: mean = 92.3063 MeV rms = 4.14219 MeV
EGap: mean = 4.85878 MeV rms = 2.0183 MeV
LAbs: mean = 6.63777 cm rms = 2.92186 mm
LGap: mean = 2.3872 cm rms = 9.61394 mm
EAbs: mean = 90.5268 MeV rms = 2.80713 MeV
EGap: mean = 5.84279 MeV rms = 2.55704 MeV
LAbs: mean = 6.55732 cm rms = 2.82109 mm
LGap: mean = 3.05107 cm rms = 1.2957 cm
### Run 1 start.
---> Begin of event: 0
@@ -874,8 +871,8 @@ LGap: mean = 2.3872 cm rms = 9.61394 mm
----> print histograms statistic
EAbs: mean = 183.461 MeV rms = 6.36249 MeV
LAbs: mean = 13.2058 cm rms = 4.88221 mm
EAbs: mean = 180.943 MeV rms = 7.82547 MeV
LAbs: mean = 13.078 cm rms = 6.32409 mm
### Run 2 start.
---> Begin of event: 0
@@ -885,10 +882,10 @@ LAbs: mean = 13.2058 cm rms = 4.88221 mm
----> print histograms statistic
EAbs: mean = 273.332 MeV rms = 8.75548 MeV
EGap2: mean = 14.9832 MeV rms = 4.18697 MeV
LAbs: mean = 19.5974 cm rms = 6.76993 mm
LGap2: mean = 7.4865 cm rms = 2.18857 cm
EAbs: mean = 275.418 MeV rms = 5.85294 MeV
EGap2: mean = 15.1446 MeV rms = 4.51267 MeV
LAbs: mean = 19.8971 cm rms = 4.52994 mm
LGap2: mean = 7.50542 cm rms = 2.32984 cm
... close file : e-.xml - done
... close file : e-_nt_Ntuple1.xml - done
... close file : e-_nt_Ntuple2.xml - done
@@ -905,10 +902,10 @@ LGap2: mean = 7.4865 cm rms = 2.18857 cm
----> print histograms statistic
EAbs: mean = 205.168 MeV rms = 42.1014 MeV
EGap2: mean = 18.2936 MeV rms = 7.11512 MeV
LAbs: mean = 8.71723 cm rms = 2.20834 cm
LGap2: mean = 4.43677 cm rms = 1.44086 cm
EAbs: mean = 209.518 MeV rms = 62.193 MeV
EGap2: mean = 18.3511 MeV rms = 9.92355 MeV
LAbs: mean = 8.45838 cm rms = 2.51776 cm
LGap2: mean = 4.27443 cm rms = 1.5064 cm
### Run 4 start.
---> Begin of event: 0
@@ -918,10 +915,10 @@ LGap2: mean = 4.43677 cm rms = 1.44086 cm
----> print histograms statistic
EAbs: mean = 194.62 MeV rms = 44.3204 MeV
EGap2: mean = 15.8381 MeV rms = 5.63046 MeV
LAbs: mean = 9.57909 cm rms = 1.85301 cm
LGap2: mean = 4.86042 cm rms = 1.29463 cm
EAbs: mean = 198.333 MeV rms = 65.971 MeV
EGap2: mean = 17.0305 MeV rms = 10.8734 MeV
LAbs: mean = 9.05692 cm rms = 2.2465 cm
LGap2: mean = 4.57616 cm rms = 1.55634 cm
... close file : proton.xml - done
... close file : proton_nt_Ntuple1.xml - done
... close file : proton_nt_Ntuple2.xml - done
@@ -23,14 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
/// \file analysis/AnaEx03/AnaEx03.cc
/// \file AnaEx03.cc
/// \brief Main program of the analysis/AnaEx03 example
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
-99
View File
@@ -1,99 +0,0 @@
--------------------------------------------------
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
=========================================================
AnaEx03
-------
Example AnaEx03 demonstrates usage of analysis commands for file management
(new since Geant4 11.1), in particular writing histograms and ntuples in a file
multiple times, and commands for histogram deleting (new since Geant4 11.2).
It uses the same scenario (detector description, primary generator
and physics) as AnaEx02 and AnaEx02. In difference from these examples
the analysis manipulations (histograms and ntuples booking and filling)
are performed directly with G4AnalysisManager. The classes that are same
in all three examples are located in shared directory.
For detector description, primary generator, physics and the example output
see README in AnaEx01 example.
Histograms, Ntuple:
--------------------
The example produces the same 4 histograms and 2 ntuples as in AnaEx01.
These histos and ntuples are booked in the RunAction constructor and filled from
EventAction.
The file managent in this example, usually performed via calls to G4AnalysisManager
OpenFile(), Write() and CloseFile() in the code, is in this example performed
via UI commands in a macro:
/analysis/openFile
/analysis/write
/analysis/closeFile
Note that the file need not to be closed at each end of run, but the histograms and ntuples
can be saved in the same file multiple time. In that case we need to reset the histograms
and ntuples data before a new run:
/analysis/reset
We can define the default file type and set it to the analysis manager via
/analysis/setDefaultFileType root # or csv hdf5 xml
The file names then need not to be provided with the file extension and the same macro
can be used with different output types.
To demonstrate UI commands for deleting of selected histograms:
/analysis/h1/delete id [keepSetting]
two H1 histograms, id: 1 and 3, are deleted in AnaEx03.in macro before starting Run 2,
and new histograms are then created before starting Run3. New histograms are created at
id's liberated with previous deleting, 1 and 3.
It should be notes that using UI commands for writing histograms and ntuples in a file
multiple times is not necessary, the same can be achieved by calls to G4AnalysisManager
functions from the code using conditional statements.
Macros:
--------
The AnaEx03.in macro performs 5 runs and produces 2 files: e-.root, containg data from first
3 runs, and proton.root, containing data from the next 2 runs.
The macro uses the defaultFileType parameter (alias), which default value, "root" is
defined in main.
AnaEx03-csv.in, AnaEx03-hdf5.in, AnaEx03-root.in, AnaEx03-xml.in:
In these macros, the default value of the defaultFileType is overritten with
/control/alias defaultFileType cvs # or hdf5 root xml
and then the AnaEx03.in macro is called.
The plotter.mac macro can be used in the interactive mode to plot histograms. It should be executed after the first /run/beamOn call and before the first /analysis/reset call.
(See also a commented line with this macro call in AnaEx03.in.)
How to run
--------------
- It is preferable to execute the exampole in the 'batch' mode from macro files:
% ./AnaEx03 AnaEx03.in
% ./AnaEx03 AnaEx03.in >& output
- When executing AnaEx03 in the 'interactive mode' with visualization, be careful not
to forget to issue the /analysis/openFile command befor starting a run:
% ./AnaEx03
and type in the commands from AnaEx03[-xyz].mac line by line:
Idle> /analysis/openFile myFile
Idle> /tracking/verbose 1
Idle> /run/beamOn 10
Idle> ...
Idle> /analysis/write
Idle> /analysis/closeFile
....
Idle> exit
All AnaEx03-*.in macros are used in Geant4 testing.
@@ -1,24 +1,21 @@
///\file "analysis/AnaEx03/.README.txt"
///\brief Example AnaEx03 README page
/*! \page ExampleAnaEx03 Example AnaEx03
\page ExampleAnaEx03 Example AnaEx03
Example AnaEx03 demonstrates usage of analysis commands for file management
(new since Geant4 11.1), in particular writing histograms and ntuples in a file
multiple times, and commands for histogram deleting (new since Geant4 11.2).
It uses the same scenario (detector description, primary generator
and physics) as \link ExampleAnaEx01 AnaEx01 \endlink and \link ExampleAnaEx02 AnaEx02 \endlink.
and physics) as [AnaEx01](../../html_AnaEx01/html/ExampleAnaEx01.html) and
[AnaEx02](../../html_AnaEx02/html/ExampleAnaEx02.html).
In difference from these examples
the analysis manipulations (histograms and ntuples booking and filling)
are performed directly with G4AnalysisManager. The classes that are same
in all three examples are located in shared directory.
For detector description, primary generator, physics and the example output
see \link ExampleAnaEx01 README in AnaEx01 \endlink example.
see [AnaEx01](../../html_AnaEx01/html/ExampleAnaEx01.html) example.
\section AnaEx03_s1 Histograms, Ntuple:
## Histograms, Ntuple:
The example produces the same 4 histograms and 2 ntuples as in AnaEx01.
@@ -28,31 +25,31 @@
The file managent in this example, usually performed via calls to G4AnalysisManager
OpenFile(), Write() and CloseFile() in the code, is in this example performed
via UI commands in a macro:
\verbatim
```
/analysis/openFile
/analysis/write
/analysis/closeFile
\endverbatim
```
Note that the file does not need to be closed at each end of run and the histograms and ntuples
can be saved in the same file multiple time. In that case we need to reset the histograms
and ntuples data before a new run:
\verbatim
```
/analysis/reset
\endverbatim
```
We can define the default file type and set it to the analysis manager via
\verbatim
```
/analysis/setDefaultFileType root # or csv hdf5 xml
\endverbatim
```
The file names then need not to be provided with the file extension and the same macro
can be used with different output types.
To demonstrate UI commands for deleting of selected histograms:
\verbatim
```
/analysis/h1/delete id [keepSetting]
\endverbatim
```
two H1 histograms, id: 1 and 3, are deleted in AnaEx03.in macro before starting Run 2,
and new histograms are then created before starting Run3. New histograms are created at
id's liberated with previous deleting, 1 and 3.
@@ -61,34 +58,34 @@
multiple times is not necessary, the same can be achieved by calls to G4AnalysisManager
functions from the code using conditional statements.
\section AnaEx03_s2 Macros
## Macros
- The AnaEx03.in macro performs 5 runs and produces 2 files: e-.root, containg data from first
3 runs, and proton.root, containing data from the next 2 runs.
The macro uses the defaultFileType parameter (alias), which default value, "root" is
defined in main.
The macro uses the `defaultFileType` parameter (alias), which default value, "root" is
defined in main().
- AnaEx03-csv.in, AnaEx03-hdf5.in, AnaEx03-root.in, AnaEx03-xml.in:
In these macros, the default value of the defaultFileType is overritten with
\verbatim
- AnaEx03-csv.in, AnaEx03-hdf5.in, AnaEx03-root.in, AnaEx03-xml.in: \n
In these macros, the default value of the `defaultFileType` is overritten with
```
/control/alias defaultFileType cvs # or hdf5 root xml
\endverbatim
```
and then the AnaEx03.in macro is called.
- The plotter.mac macro can be used in the interactive mode to plot histograms. It should be executed after the first /run/beamOn call and before the first /analysis/reset call.
- The plotter.mac macro can be used in the interactive mode to plot histograms. It should be executed after the first `/run/beamOn` call and before the first `/analysis/reset` call.
(See also a commented line with this macro call in AnaEx03.in.)
\section AnaEx03_s3 How to run
## How to run
- It is preferable to execute the exampole in the 'batch' mode from macro files:
\verbatim
```
% ./AnaEx03 AnaEx03.in
% ./AnaEx03 AnaEx03.in >& output
\endverbatim
```
- When executing AnaEx03 in the 'interactive mode' with visualization, be careful not
to forget to issue the /analysis/openFile command befor starting a run:
\verbatim
```
% ./AnaEx03
and type in the commands from AnaEx03[-xyz].mac line by line:
Idle> /analysis/openFile myFile
@@ -99,8 +96,6 @@ and type in the commands from AnaEx03[-xyz].mac line by line:
Idle> /analysis/closeFile
....
Idle> exit
\endverbatim
```
All AnaEx03-*.in macros are used in Geant4 testing.
*/
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ActionInitialization.hh
/// \brief Definition of the ActionInitialization class
@@ -25,13 +25,6 @@
//
/// \file EventAction.hh
/// \brief Definition of the EventAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef EventAction_h
#define EventAction_h 1
@@ -25,13 +25,6 @@
//
/// \file RunAction.hh
/// \brief Definition of the RunAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef RunAction_h
#define RunAction_h 1
@@ -26,9 +26,6 @@
/// \file DetectorConstruction.hh
/// \brief Definition of the DetectorConstruction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef DetectorConstruction_h
#define DetectorConstruction_h 1
@@ -26,9 +26,6 @@
/// \file DetectorMessenger.hh
/// \brief Definition of the DetectorMessenger class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef DetectorMessenger_h
#define DetectorMessenger_h 1
@@ -26,9 +26,6 @@
/// \file PrimaryGeneratorAction.hh
/// \brief Definition of the PrimaryGeneratorAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef PrimaryGeneratorAction_h
#define PrimaryGeneratorAction_h 1
@@ -26,9 +26,6 @@
/// \file SteppingAction.hh
/// \brief Definition of the SteppingAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#ifndef SteppingAction_h
#define SteppingAction_h 1
@@ -26,9 +26,6 @@
/// \file DetectorConstruction.cc
/// \brief Implementation of the DetectorConstruction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "DetectorConstruction.hh"
#include "DetectorMessenger.hh"
@@ -26,9 +26,6 @@
/// \file DetectorMessenger.cc
/// \brief Implementation of the DetectorMessenger class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "DetectorMessenger.hh"
#include "DetectorConstruction.hh"
@@ -26,9 +26,6 @@
/// \file PrimaryGeneratorAction.cc
/// \brief Implementation of the PrimaryGeneratorAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "PrimaryGeneratorAction.hh"
#include "DetectorConstruction.hh"
@@ -26,9 +26,6 @@
/// \file SteppingAction.cc
/// \brief Implementation of the SteppingAction class
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "SteppingAction.hh"
#include "DetectorConstruction.hh"
@@ -23,7 +23,6 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ActionInitialization.cc
/// \brief Implementation of the ActionInitialization class
@@ -25,13 +25,6 @@
//
/// \file EventAction.cc
/// \brief Implementation of the EventAction class
//
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "EventAction.hh"
@@ -25,11 +25,6 @@
//
/// \file RunAction.cc
/// \brief Implementation of the RunAction class
//
//
//
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#include "RunAction.hh"
@@ -45,8 +40,6 @@
RunAction::RunAction()
{
// Create or get analysis manager
// The choice of analysis technology is done via selection of a namespace
// in HistoManager.hh
G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
analysisManager->SetDefaultFileType("root");
analysisManager->SetVerboseLevel(1);
-104
View File
@@ -1,104 +0,0 @@
Example of Convergence Tester
Koi, Tatsumi
SLAC National Accelerator Laboratory / PPA
tkoi@slac.stanford.eedu
This example shows how to use convergece tester in Geant4.
The aim of Convergence Tester
After a Monte Carlo simulation, we get an answer. However how to estimate quality of the answer.
The answer is usually given in a form of average value.
But sometimes the value is strongly affected by single or a few events in the full calculation.
In such case, we must concern about quality of the value.
What we must remember is
Large number of history does not valid result of simulation.
Small Relative Error does not valid result of simulation
Convergence tester provides statistical information
to assist establishing valid confidence intervals for Monte Carlo results for users.
Geometry and Physics are same to exampleB1. Please see README.B1
Also run1.mac and run2.mac are like in exampleB1, with the only diffrence slightly
increased number of events in run1.mac.
Note that in this example, the classes with the code added for
the purpose of demonstration of the Convergence Tester are defined in the namespace
B1Con instead of B1 and also the executable and the test macro names are changed
in exampleB1Con and exampleB1Con.in.
Known problem:
Computing time of T cannot be gotten properly in current MT migration of example of B1Con. Therefore
FOM (=1/(R^2T) where R is relative error and T is computing time) relates numbers are unusable.
***********************************************************************************************************************
Output example
// Part I.A
// Basic statistics values
G4ConvergenceTester Output Result of DOSE_TALLY
EFFICIENCY = 0.601
MEAN = 4.81721e-12
VAR = 2.15334e-23
SD = 4.64041e-12
R = 0.0304622
SHIFT = 2.22459e-13
VOV = 0.000166754
FOM = 1238.68
// Part I.B
// If the largeset scored events happen at next to the last event,
// then how much the event effects the statistics values of the calculation
THE LARGEST SCORE = 1.07301e-11 and it happend at 487th event
Affected Mean = 4.82311e-12 and its ratio to orignal is 1.00123
Affected VAR = 2.15468e-23 and its ratio to orignal is 1.00062
Affected R = 0.0304192 and its ratio to orignal is 0.998587
Affected SHIFT = 2.1804e-13 and its ratio to orignal is 0.980133
Affected FOM = 1238.68 and its ratio to orignal is 1
// Part I.C
// Convergence tests results
MEAN distribution is RANDOM
r follows 1/std::sqrt(N)
r is monotonically decrease
r is less than 0.1. r = 0.0304622
VOV follows 1/std::sqrt(N)
VOV is monotonically decrease
FOM distribution is not RANDOM
SLOPE is not large enough
This result passes 6 / 8 Convergence Test.
// Part II
// Profile of statistics values in the history
G4ConvergenceTester Output History of DOSE_TALLY
i/16 till_ith mean var sd r vov fom shift e r2eff r2int
1 62 4.94618e-12 2.04631e-23 4.52362e-12 0.115225 0.00313634 86.5745 -1.73435e-14 0.619048 0.00976801 0.00329797
2 124 4.69364e-12 2.10698e-23 4.59018e-12 0.0874712 0.001597 150.228 3.11143e-13 0.6 0.00533333 0.00225666
3 187 4.72161e-12 2.14009e-23 4.62612e-12 0.0714575 0.00101852 225.105 3.1009e-13 0.590426 0.00368986 0.00138916
4 249 4.95617e-12 2.13982e-23 4.62582e-12 0.0590299 0.000690138 329.865 9.71971e-14 0.62 0.00245161 0.00101898
5 312 4.8529e-12 2.13482e-23 4.62041e-12 0.0538155 0.000573301 396.887 1.95662e-13 0.607029 0.00206827 0.000818582
6 374 5.14255e-12 2.15736e-23 4.64474e-12 0.046641 0.000432121 528.379 -6.42963e-14 0.637333 0.00151743 0.000652145
7 437 5.03849e-12 2.13484e-23 4.62043e-12 0.0438173 0.000379317 598.673 2.54207e-14 0.636986 0.00130112 0.000614447
8 499 4.96962e-12 2.1429e-23 4.62914e-12 0.0416574 0.000329007 662.364 9.27708e-14 0.63 0.0011746 0.000557264
9 562 4.91513e-12 2.14709e-23 4.63367e-12 0.0397316 0.000285324 728.13 1.33544e-13 0.623446 0.0010728 0.000502991
10 624 4.82995e-12 2.13825e-23 4.62412e-12 0.0382954 0.000272664 783.766 2.19101e-13 0.616 0.000997403 0.000466792
11 687 4.79197e-12 2.13975e-23 4.62574e-12 0.0368022 0.000251788 848.661 2.48547e-13 0.606105 0.000944593 0.000407838
12 749 4.77183e-12 2.15116e-23 4.63807e-12 0.0354912 0.000227501 912.513 2.6728e-13 0.601333 0.000883962 0.000373986
13 812 4.76087e-12 2.14479e-23 4.63119e-12 0.0341162 0.000212259 987.548 2.70437e-13 0.597786 0.000827601 0.000334885
14 874 4.81359e-12 2.13296e-23 4.6184e-12 0.0324353 0.0001976 1092.56 2.14521e-13 0.603429 0.000751082 0.000299767
15 937 4.82018e-12 2.14558e-23 4.63204e-12 0.0313767 0.000181379 1167.52 2.18545e-13 0.601279 0.000706952 0.000276498
16 999 4.81721e-12 2.15334e-23 4.64041e-12 0.0304622 0.000166754 1238.68 2.22459e-13 0.601 0.000663894 0.000263125
**************************************************************************************************************************
Reference of this Convergence tests
MCNP(TM) -A General Monte Carlo N-Particle Transport Code
Version 4B
Judith F. Briesmeister, Editor
LA-12625-M, Issued: March 1997, UC 705 and UC 700
CHAPTER 2. GEOMETRY, DATA, PHYSICS, AND MATHEMATICS
VI. ESTIMATION OF THE MONTE CARLO PRECISION
-172
View File
@@ -1,172 +0,0 @@
-------------------------------------------------------------------
=========================================================
Geant4 - an Object-Oriented Toolkit for Simulation in HEP
=========================================================
Example B1
-----------
This example demonstrates a very simple application where an energy
deposit is accounted in user actions and their associated objects
and a dose in a selected volume is calculated.
1- GEOMETRY DEFINITION
The geometry is constructed in the B1::DetectorConstruction class.
The setup consists of a an envelope of box shape containing two
volumes: a spherical cone and a trapezoid.
In this example we use some common materials materials for medical
applications. The envelope is made of water and the two inner volumes
are made from tissue and bone materials.
The materials are created with the help of the G4NistManager class,
which allows to build a material from the NIST database using their
names. All available materials can be found in the Geant4 User's Guide
for Application Developers, Appendix 10: Geant4 Materials Database.
2- PHYSICS LIST
The particle's type and the physic processes which will be available
in this example are set in the QBBC physics list. This physics list
requires data files for electromagnetic and hadronic processes.
See more on installation of the datasets in Geant4 Installation Guide,
Chapter 3.3: Note On Geant4 Datasets:
http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides
/InstallationGuide/html/ch03s03.html
The following datasets: G4LEDATA, G4LEVELGAMMADATA, G4NEUTRONXSDATA,
G4SAIDXSDATA and G4ENSDFSTATEDATA are mandatory for this example.
In addition the build-in interactive command:
/process/(in)activate processName
allows to activate/inactivate the processes one by one.
3- ACTION INITALIZATION
A newly introduced class, B1::ActionInitialization, instantiates and registers
to Geant4 kernel all user action classes.
While in sequential mode the action classes are instatiated just once,
via invoking the method:
B1::ActionInitialization::Build()
in multi-threading mode the same method is invoked for each thread worker
and so all user action classes are defined thread-local.
A run action class is instantiated both thread-local
and global that's why its instance is created also in the method
B1::ActionInitialization::BuildForMaster()
which is invoked only in multi-threading mode.
4- PRIMARY GENERATOR
The primary generator is defined in the B1::PrimaryGeneratorAction class.
The default kinematics is a 6 MeV gamma, randomly distributed in front
of the envelope across 80% of the transverse (X,Y) envelope size.
This default setting can be changed via the Geant4 built-in commands
of the G4ParticleGun class.
5- DETECTOR RESPONSE
This example demonstrates a simple scoring implemented directly
in the user action classes. Alternative ways of scoring via Geant4 classes
can be found in the other examples.
The energy deposited is collected step by step for a selected volume
in B1::SteppingAction and accumulated event by event in B1::EventAction.
At end of event, the value acummulated in B1::EventAction is added in B1::RunAction
and summed over the whole run (see B1::EventAction::EndOfevent()).
Total dose deposited is computed at B1::RunAction::EndOfRunAction(),
and printed together with informations about the primary particle.
In multi-threading mode the energy accumulated in G4Accumulable objects per
workers is merged to the master in B1::RunAction::EndOfRunAction() and the final
result is printed on the screen.
G4Parameter<G4double> type instead of G4double type is used for the B1::RunAction
data members in order to facilitate merging of the values accumulated on workers
to the master. Currently the accumulables have to be registered to G4AccumulablesManager
and G4AccumulablesManager::Merge() has to be called from the users code. This is planned
to be further simplified with a closer integration of G4Accumulable classes in
the Geant4 kernel next year.
An example of creating and computing new units (e.g., dose) is also shown
in the class constructor.
The following paragraphs are common to all basic examples
A- VISUALISATION
The visualization manager is set via the G4VisExecutive class
in the main() function in exampleB1.cc.
The initialisation of the drawing is done via a set of /vis/ commands
in the macro vis.mac. This macro is automatically read from
the main function when the example is used in interactive running mode.
By default, vis.mac opens an OpenGL viewer (/vis/open OGL).
The user can change the initial viewer by commenting out this line
and instead uncommenting one of the other /vis/open statements, such as
HepRepFile or DAWNFILE (which produce files that can be viewed with the
HepRApp and DAWN viewers, respectively). Note that one can always
open new viewers at any time from the command line. For example, if
you already have a view in, say, an OpenGL window with a name
"viewer-0", then
/vis/open DAWNFILE
then to get the same view
/vis/viewer/copyView viewer-0
or to get the same view *plus* scene-modifications
/vis/viewer/set/all viewer-0
then to see the result
/vis/viewer/flush
The DAWNFILE, HepRepFile drivers are always available
(since they require no external libraries), but the OGL driver requires
that the Geant4 libraries have been built with the OpenGL option.
From Release 9.6 the vis.mac macro in example B1 has additional commands
that demonstrate additional functionality of the vis system, such as
displaying text, axes, scales, date, logo and shows how to change
viewpoint and style. Consider copying these to other examples or
your application. To see even more commands use help or
ls or browse the available UI commands in the Application
Developers Guide, Section 7.1.
For more information on visualization, including information on how to
install and run DAWN, OpenGL and HepRApp, see the visualization tutorials,
for example,
http://geant4.slac.stanford.edu/Presentations/vis/G4[VIS]Tutorial/G4[VIS]Tutorial.html
(where [VIS] can be replaced by DAWN, OpenGL and HepRApp)
The tracks are automatically drawn at the end of each event, accumulated
for all events and erased at the beginning of the next run.
B- USER INTERFACES
The user command interface is set via the G4UIExecutive class
in the main() function in exampleB1.cc
The selection of the user command interface is then done automatically
according to the Geant4 configuration or it can be done explicitly via
the third argument of the G4UIExecutive constructor (see exampleB4a.cc).
C- HOW TO RUN
- Execute exampleB1 in the 'interactive mode' with visualization:
% ./exampleB1
and type in the commands from run1.mac line by line:
Idle> /control/verbose 2
Idle> /tracking/verbose 1
Idle> /run/beamOn 10
Idle> ...
Idle> exit
or
Idle> /control/execute run1.mac
....
Idle> exit
- Execute exampleB1 in the 'batch' mode from macro files
(without visualization)
% ./exampleB1 run2.mac
% ./exampleB1 exampleB1.in > exampleB1.out
@@ -1,8 +1,4 @@
///\file "analysis/B1Con/.README.txt"
///\brief Example B1Con README page
/*! \page ExampleB1Con Example B1Con
\page ExampleB1Con Example B1Con
Example of Convergence Tester
@@ -24,7 +20,8 @@ What we must remember is
Convergence tester provides statistical information
to assist establishing valid confidence intervals for Monte Carlo results for users.
Geometry and Physics are same to exampleB1. Please see \ref ExampleB1.
Geometry and Physics are same to exampleB1. Please see
[Example B1](../../html_B1/html/ExampleB1.html).
Also run1.mac and run2.mac are like in exampleB1, with the only diffrence slightly
increased number of events in run1.mac.
Note that in this example, the classes with the code added for
@@ -37,7 +34,7 @@ Known problem:
Computing time of T cannot be gotten properly in current MT migration of example of B1Con. Therefore
FOM (=1/(R^2T) where R is relative error and T is computing time) relates numbers are unusable.
\verbatim
```
***********************************************************************************************************************
Output example
@@ -102,7 +99,7 @@ i/16 till_ith mean var sd r vov
**************************************************************************************************************************
\endverbatim
```
Reference of this Convergence tests: \n
MCNP(TM) -A General Monte Carlo N-Particle Transport Code \n
@@ -112,5 +109,3 @@ LA-12625-M, Issued: March 1997, UC 705 and UC 700 \n
CHAPTER 2. GEOMETRY, DATA, PHYSICS, AND MATHEMATICS \n
VI. ESTIMATION OF THE MONTE CARLO PRECISION \n
*/
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-03-ref-06 (30-June-2025)
Geant4 version Name: geant4-11-04-ref-00 (5-December-2025)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -31,7 +31,6 @@ You have successfully registered the following graphics systems.
Registered graphics systems are:
ASCIITree (ATree)
DAWNFILE (DAWNFILE)
G4HepRepFile (HepRepFile)
RayTracer (RT)
VRML2FILE (VRML2FILE)
gMocrenFile (gMocrenFile)
@@ -44,13 +43,12 @@ Registered graphics systems are:
OpenGLStoredX (OGLSX, OGLSQt_FALLBACK, OGLSXm_FALLBACK)
RayTracerX (RTX)
RayTracerQt (RTQt)
Qt3D (Qt3D)
TOOLSSG_X11_GLES (TSG_X11_GLES, TSGX11, TSG_XT_GLES_FALLBACK)
TOOLSSG_X11_ZB (TSG_X11_ZB, TSGX11ZB)
TOOLSSG_XT_GLES (TSG_XT_GLES, TSGXt, TSG_QT_GLES_FALLBACK)
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG, OGL)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB, TSGZB)
You may choose a graphics system (driver) with a parameter of
the command "/vis/open" or "/vis/sceneHandler/create",
or you may omit the driver parameter and choose at run time:
@@ -142,7 +140,7 @@ Lowest muon/hadron kinetic energy 1 keV
Use ICRU90 data 0
Fluctuations of dE/dx are enabled 1
Type of fluctuation model for leptons and hadrons Urban
Use built-in Birks satuaration 0
Use built-in Birks saturation 0
Build CSDA range enabled 0
Use cut as a final range enabled 0
Enable angular generator interface 0
@@ -279,7 +277,7 @@ hBrems: for proton XStype:1 SubType=3
hPairProd: for proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -337,7 +335,7 @@ hBrems: for anti_proton XStype:1 SubType=3
hPairProd: for anti_proton XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 17x1001 from 7.50618 GeV to 100 TeV
Sampling table 17x1001, from 7.50618 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -369,7 +367,7 @@ hBrems: for kaon+ XStype:1 SubType=3
hPairProd: for kaon+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -401,7 +399,7 @@ hBrems: for kaon- XStype:1 SubType=3
hPairProd: for kaon- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 18x1001 from 3.94942 GeV to 100 TeV
Sampling table 18x1001, from 3.94942 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -433,7 +431,7 @@ muBrems: for mu+ XStype:1 SubType=3
muPairProd: for mu+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -465,7 +463,7 @@ muBrems: for mu- XStype:1 SubType=3
muPairProd: for mu- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 21x1001 from 0.85 GeV to 100 TeV
Sampling table 21x1001, from 0.85 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
muPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -497,7 +495,7 @@ hBrems: for pi+ XStype:1 SubType=3
hPairProd: for pi+ XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -529,7 +527,7 @@ hBrems: for pi- XStype:1 SubType=3
hPairProd: for pi- XStype:1 SubType=4
dE/dx and range tables from 100 eV to 100 TeV in 84 bins
Lambda tables from threshold to 100 TeV, 7 bins/decade, spline: 1
Sampling table 20x1001 from 1.11656 GeV to 100 TeV
Sampling table 20x1001, from 1.11656 GeV to 100 TeV
===== EM models for the G4Region DefaultRegionForTheWorld ======
hPairProd : Emin= 0 eV Emax= 100 TeV ModifiedMephi
@@ -777,7 +775,7 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 1 GeV ---> 6 GeV
Model: Binary Cascade: 0 eV ---> 1.5 GeV
Cr_sctns: protonParticleXS: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
-----------------------------------------------------------------------
Hadronic Processes for sigma-
Process: hadElastic
@@ -803,8 +801,8 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
Type of pre-compound model 0
Type of pre-compound inverse x-section 1
Pre-compound model active 1
Pre-compound excitation low energy 100 keV
Pre-compound excitation high energy 30 MeV
Pre-compound excitation low energy 0.1 MeV
Pre-compound excitation high energy 15 MeV
Angular generator for pre-compound model 1
Use NeverGoBack option for pre-compound model 0
Use SoftCutOff option for pre-compound model 0
@@ -818,9 +816,8 @@ Type of de-excitation inverse x-section 3
Type of de-excitation factory Evaporation+GEM
Number of de-excitation channels 68
Type of Fermi BreakUp model ModelVI
Min excitation energy 10 eV
Min energy per nucleon for multifragmentation 200 GeV
Limit excitation energy for Fermi BreakUp 20 MeV
Min excitation energy 0.01 keV
Min energy per nucleon for multifragmentation 2e+05 MeV
Level density (1/MeV) 0.075
Use simple level density model 1
Use discrete excitation energy of the residual 0
@@ -833,75 +830,75 @@ Max 2J for sampling of angular correlations 10
=======================================================================
G4ConvergenceTester Output Result of DOSE_TALLY
EFFICIENCY = 0.198
MEAN = 4.55475e-14
VAR = 1.54263e-26
SD = 1.24203e-13
R = 0.0862315
SHIFT = 1.72861e-13
VOV = 0.00854466
FOM = 6724.16
THE LARGEST SCORE = 5.54337e-13 and it happened at 366th event
Affected Mean = 4.60558e-14 and its ratio to original is 1.01116
Affected VAR = 1.56695e-26 and its ratio to original is 1.01576
Affected R = 0.0859065 and its ratio to original is 0.99623
Affected SHIFT = 1.73445e-13 and its ratio to original is 1.00338
Affected FOM = 6724.16 and its ratio to original is 1
MEAN distribution is not RANDOM
EFFICIENCY = 0.196
MEAN = 5.02473e-14
VAR = 1.74589e-26
SD = 1.32132e-13
R = 0.0831563
SHIFT = 1.73761e-13
VOV = 0.00757386
FOM = 7230.7
THE LARGEST SCORE = 5.55155e-13 and it happened at 29th event
Affected Mean = 5.07517e-14 and its ratio to original is 1.01004
Affected VAR = 1.76961e-26 and its ratio to original is 1.01359
Affected R = 0.0828458 and its ratio to original is 0.996267
Affected SHIFT = 1.74138e-13 and its ratio to original is 1.00217
Affected FOM = 7230.7 and its ratio to original is 1
MEAN distribution is RANDOM
r follows 1/std::sqrt(N)
r is monotonically decrease
r is less than 0.1. r = 0.0862315
r is less than 0.1. r = 0.0831563
VOV follows 1/std::sqrt(N)
VOV is monotonically decrease
FOM distribution is not RANDOM
Number of non zero history too small to calculate SLOPE
This result passes 5 / 8 Convergence Test.
This result passes 6 / 8 Convergence Test.
G4ConvergenceTester Output History of DOSE_TALLY
i/16 till_ith mean var sd r vov fom shift e r2eff r2int
1 62 3.17379e-14 1.29473e-26 1.13786e-13 0.451691 0.226367 245.069 2.0412e-13 0.142857 0.0952381 0.105548
2 124 3.30804e-14 1.06384e-26 1.03143e-13 0.278877 0.105732 642.902 1.73258e-13 0.168 0.039619 0.0375311
3 187 3.94836e-14 1.26526e-26 1.12484e-13 0.207776 0.0559014 1158.19 1.69917e-13 0.191489 0.0224586 0.0204825
4 249 3.97276e-14 1.30204e-26 1.14107e-13 0.181656 0.0405982 1515.2 1.71002e-13 0.184 0.0177391 0.0151277
5 312 3.82407e-14 1.22829e-26 1.10828e-13 0.163814 0.0339478 1863.23 1.69776e-13 0.185304 0.0140465 0.0127029
6 374 3.89136e-14 1.2719e-26 1.12778e-13 0.149661 0.0287795 2232.3 1.742e-13 0.184 0.0118261 0.0105126
7 437 3.80559e-14 1.25301e-26 1.11938e-13 0.140546 0.0252541 2531.24 1.75552e-13 0.191781 0.00962166 0.0100864
8 499 4.16767e-14 1.38768e-26 1.178e-13 0.126406 0.019678 3129.22 1.74791e-13 0.202 0.00790099 0.00804549
9 562 4.17944e-14 1.4095e-26 1.18722e-13 0.119718 0.0172617 3488.59 1.75728e-13 0.198934 0.00715237 0.00715461
10 624 4.33469e-14 1.47176e-26 1.21316e-13 0.111949 0.0146904 3989.61 1.74757e-13 0.1968 0.00653008 0.00598243
11 687 4.40834e-14 1.50155e-26 1.22538e-13 0.105974 0.0130273 4452.16 1.74616e-13 0.196221 0.00595392 0.00526027
12 749 4.57566e-14 1.56694e-26 1.25178e-13 0.0998947 0.0112546 5010.54 1.73389e-13 0.198667 0.00537808 0.00458757
13 812 4.50245e-14 1.54897e-26 1.24458e-13 0.0969456 0.0105987 5320.02 1.74374e-13 0.195572 0.0050593 0.0043276
14 874 4.57357e-14 1.56286e-26 1.25015e-13 0.0924063 0.00966482 5855.54 1.7349e-13 0.2 0.00457143 0.00395773
15 937 4.56765e-14 1.55286e-26 1.24614e-13 0.0890783 0.0090895 6301.24 1.73294e-13 0.198294 0.00431025 0.00361624
16 999 4.55475e-14 1.54263e-26 1.24203e-13 0.0862315 0.00854466 6724.16 1.72861e-13 0.198 0.00405051 0.00337794
1 62 6.12252e-14 2.64695e-26 1.62695e-13 0.33479 0.0937944 446.093 1.89743e-13 0.15873 0.084127 0.0261782
2 124 6.53325e-14 2.48222e-26 1.57551e-13 0.215693 0.0438083 1074.73 1.7566e-13 0.2 0.032 0.0141512
3 187 5.61787e-14 2.04519e-26 1.4301e-13 0.185659 0.0371527 1450.57 1.79422e-13 0.207447 0.0203219 0.013964
4 249 5.57456e-14 2.01687e-26 1.42017e-13 0.161123 0.0278702 1925.98 1.78559e-13 0.204 0.0156078 0.0102491
5 312 5.77623e-14 2.11744e-26 1.45514e-13 0.142393 0.0208082 2465.99 1.77834e-13 0.204473 0.0124301 0.00778092
6 374 5.87883e-14 2.0968e-26 1.44803e-13 0.127196 0.0167867 3090.48 1.73306e-13 0.210667 0.00999156 0.006144
7 437 5.63216e-14 2.01739e-26 1.42035e-13 0.120499 0.0150608 3443.54 1.74478e-13 0.19863 0.00921115 0.00527563
8 499 5.47962e-14 1.9251e-26 1.38748e-13 0.113238 0.0136534 3899.31 1.7297e-13 0.202 0.00790099 0.00489614
9 562 5.38522e-14 1.90021e-26 1.37848e-13 0.107881 0.0123978 4296.19 1.74071e-13 0.202487 0.00699573 0.00462181
10 624 5.3949e-14 1.89501e-26 1.37659e-13 0.102066 0.01106 4799.6 1.72937e-13 0.2032 0.00627402 0.00412686
11 687 5.3564e-14 1.88842e-26 1.3742e-13 0.0978098 0.0101332 5226.44 1.73539e-13 0.199128 0.00584578 0.00370706
12 749 5.24893e-14 1.83034e-26 1.3529e-13 0.0941161 0.00953505 5644.71 1.72807e-13 0.197333 0.00542342 0.00342261
13 812 5.09319e-14 1.76427e-26 1.32826e-13 0.0914634 0.00919067 5976.89 1.73262e-13 0.196802 0.00501999 0.00333527
14 874 5.18502e-14 1.8053e-26 1.34362e-13 0.0876033 0.0082807 6515.22 1.72948e-13 0.197714 0.00463749 0.00302807
15 937 5.02781e-14 1.74612e-26 1.32141e-13 0.0858137 0.00801406 6789.79 1.73269e-13 0.197228 0.00433931 0.00301684
16 999 5.02473e-14 1.74589e-26 1.32132e-13 0.0831563 0.00757386 7230.7 1.73761e-13 0.196 0.00410204 0.00280601
--------------------End of Global Run-----------------------
The run consists of 1000 gamma of 6 MeV
Cumulated dose per run, in scoring volume : 45.5475 picoGy rms = 3.92567 picoGy
Cumulated dose per run, in scoring volume : 50.2473 picoGy rms = 4.17629 picoGy
------------------------------------------------------------
G4ConvergenceTester Output Result of DOSE_TALLY
EFFICIENCY = 0.61
MEAN = 4.94438e-12
VAR = 2.13323e-23
SD = 4.61869e-12
R = 0.0295398
SHIFT = 1.06883e-13
VOV = 0.000169442
FOM = 9550.01
THE LARGEST SCORE = 1.07261e-11 and it happened at 950th event
Affected Mean = 4.95015e-12 and its ratio to original is 1.00117
Affected VAR = 2.13444e-23 and its ratio to original is 1.00057
Affected R = 0.0294989 and its ratio to original is 0.998616
Affected SHIFT = 1.02583e-13 and its ratio to original is 0.959775
Affected FOM = 9550.01 and its ratio to original is 1
EFFICIENCY = 0.638
MEAN = 5.11001e-12
VAR = 2.10172e-23
SD = 4.58445e-12
R = 0.0283704
SHIFT = -5.65956e-14
VOV = 0.000180264
FOM = 10353.5
THE LARGEST SCORE = 1.07759e-11 and it happened at 91th event
Affected Mean = 5.11567e-12 and its ratio to original is 1.00111
Affected VAR = 2.10283e-23 and its ratio to original is 1.00053
Affected R = 0.0283323 and its ratio to original is 0.998657
Affected SHIFT = -6.06707e-14 and its ratio to original is 1.072
Affected FOM = 10353.5 and its ratio to original is 1
MEAN distribution is RANDOM
r follows 1/std::sqrt(N)
r is monotonically decrease
r is less than 0.1. r = 0.0295398
r is less than 0.1. r = 0.0283704
VOV follows 1/std::sqrt(N)
VOV is monotonically decrease
FOM distribution is not RANDOM
@@ -911,26 +908,26 @@ This result passes 6 / 8 Convergence Test.
G4ConvergenceTester Output History of DOSE_TALLY
i/16 till_ith mean var sd r vov fom shift e r2eff r2int
1 62 4.45233e-12 2.00136e-23 4.47366e-12 0.126592 0.00555513 520.005 6.10343e-13 0.587302 0.011154 0.00461709
2 124 4.70979e-12 2.14073e-23 4.62681e-12 0.0878668 0.00156391 1079.37 3.15332e-13 0.568 0.00608451 0.0015743
3 187 5.04552e-12 2.17319e-23 4.66174e-12 0.0673851 0.000891632 1835.23 8.74033e-15 0.590426 0.00368986 0.000826733
4 249 5.1147e-12 2.16033e-23 4.64794e-12 0.0574738 0.000677301 2522.78 -5.43345e-14 0.6 0.00266667 0.000623358
5 312 5.01691e-12 2.12158e-23 4.60607e-12 0.0518945 0.000571301 3094.39 2.63397e-14 0.603834 0.00209612 0.000588323
6 374 4.9734e-12 2.13808e-23 4.62394e-12 0.0480113 0.00045469 3615.2 7.68061e-14 0.605333 0.00173862 0.000560315
7 437 5.00036e-12 2.16669e-23 4.65477e-12 0.0444795 0.000358603 4212.1 5.50795e-14 0.605023 0.00149048 0.000483429
8 499 5.12317e-12 2.14861e-23 4.63531e-12 0.0404627 0.00033282 5089.9 -6.70345e-14 0.616 0.00124675 0.000387201
9 562 5.09662e-12 2.15978e-23 4.64735e-12 0.0384299 0.000279788 5642.62 -4.50432e-14 0.611012 0.00113078 0.000343455
10 624 5.04725e-12 2.15547e-23 4.6427e-12 0.0367939 0.000254099 6155.55 1.68697e-16 0.6096 0.00102467 0.000326954
11 687 5.03741e-12 2.1526e-23 4.63961e-12 0.0351139 0.000232749 6758.65 1.37868e-14 0.609012 0.000933146 0.000298049
12 749 5.01635e-12 2.13055e-23 4.61579e-12 0.0335991 0.000227201 7381.82 3.63585e-14 0.613333 0.00084058 0.000286814
13 812 5.02263e-12 2.1448e-23 4.6312e-12 0.0323383 0.000200505 7968.64 2.89454e-14 0.611316 0.00078206 0.000262419
14 874 4.95133e-12 2.14422e-23 4.63057e-12 0.0316162 0.000188358 8336.82 9.41875e-14 0.603429 0.000751082 0.000247357
15 937 4.93725e-12 2.14216e-23 4.62835e-12 0.0306083 0.000177676 8894.88 1.1284e-13 0.604478 0.00069757 0.000238299
16 999 4.94438e-12 2.13323e-23 4.61869e-12 0.0295398 0.000169442 9550.01 1.06883e-13 0.61 0.000639344 0.000232383
1 62 4.83776e-12 2.02395e-23 4.49884e-12 0.117162 0.0033417 607.082 9.8782e-14 0.619048 0.00976801 0.00374098
2 124 4.93517e-12 2.07178e-23 4.55169e-12 0.0824926 0.00160448 1224.58 9.95294e-14 0.632 0.00465823 0.00209236
3 187 4.89809e-12 2.1071e-23 4.59032e-12 0.0683497 0.00103469 1783.79 1.58877e-13 0.611702 0.0033765 0.00127034
4 249 4.84198e-12 2.10963e-23 4.59307e-12 0.0599943 0.000751215 2315.26 1.87913e-13 0.6 0.00266667 0.00091825
5 312 4.92101e-12 2.09207e-23 4.57392e-12 0.0525366 0.000600854 3019.22 1.03041e-13 0.610224 0.00204071 0.000710562
6 374 5.11861e-12 2.10488e-23 4.58789e-12 0.0462856 0.000477148 3889.8 -7.68721e-14 0.632 0.00155274 0.000583901
7 437 5.02555e-12 2.07975e-23 4.56042e-12 0.0433595 0.00043544 4432.51 8.54463e-15 0.625571 0.00136653 0.000509226
8 499 5.01182e-12 2.10128e-23 4.58398e-12 0.0409037 0.000359645 4980.75 2.74486e-14 0.622 0.00121543 0.000454329
9 562 5.11697e-12 2.08989e-23 4.57153e-12 0.0376526 0.000329825 5877.99 -7.86758e-14 0.630551 0.0010407 0.000374497
10 624 5.12047e-12 2.1045e-23 4.58748e-12 0.0358364 0.000292403 6488.87 -7.55621e-14 0.6272 0.00095102 0.000331175
11 687 5.05085e-12 2.0964e-23 4.57864e-12 0.0345603 0.000265072 6976.9 -7.38199e-15 0.627907 0.000861326 0.000331355
12 749 4.98085e-12 2.09521e-23 4.57735e-12 0.0335567 0.000241218 7400.47 5.97571e-14 0.626667 0.000794326 0.000330228
13 812 5.04151e-12 2.08351e-23 4.56454e-12 0.0317535 0.000229051 8264.85 -8.54338e-17 0.637146 0.00070049 0.000306556
14 874 5.03345e-12 2.085e-23 4.56619e-12 0.0306679 0.000212889 8860.35 1.17107e-14 0.637714 0.000649258 0.000290187
15 937 5.09517e-12 2.09697e-23 4.57927e-12 0.0293451 0.000193499 9677.13 -4.36032e-14 0.638593 0.000603351 0.000256868
16 999 5.11001e-12 2.10172e-23 4.58445e-12 0.0283704 0.000180264 10353.5 -5.65956e-14 0.638 0.000567398 0.000236678
--------------------End of Global Run-----------------------
The run consists of 1000 proton of 210 MeV
Cumulated dose per run, in scoring volume : 4.94438 nanoGy rms = 145.983 picoGy
Cumulated dose per run, in scoring volume : 5.11001 nanoGy rms = 144.901 picoGy
------------------------------------------------------------
Graphics systems deleted.
@@ -23,9 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file exampleB1.cc
/// \brief Main program of the B1 example
/// \file exampleB1Con.cc
/// \brief Main program of the analysis/B1Con example
#include "ActionInitialization.hh"
#include "DetectorConstruction.hh"
@@ -23,9 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file ActionInitialization.hh
/// \brief Definition of the B1::ActionInitialization class
/// \brief Definition of the B1Con::ActionInitialization class
#ifndef B1ActionInitialization_h
#define B1ActionInitialization_h 1
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/include/DetectorConstruction.hh
/// \file DetectorConstruction.hh
/// \brief Definition of the B1::DetectorConstruction class
#ifndef B1DetectorConstruction_h
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/include/EventAction.hh
/// \file EventAction.hh
/// \brief Definition of the B1::EventAction class
#ifndef B1EventAction_h
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/include/PrimaryGeneratorAction.hh
/// \file PrimaryGeneratorAction.hh
/// \brief Definition of the B1::PrimaryGeneratorAction class
#ifndef B1PrimaryGeneratorAction_h
@@ -23,9 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/include/RunAction.hh
/// \brief Definition of the B1::RunAction class
/// \file RunAction.hh
/// \brief Definition of the B1Con::RunAction class
#ifndef B1RunAction_h
#define B1RunAction_h 1
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/include/SteppingAction.hh
/// \file SteppingAction.hh
/// \brief Definition of the B1::SteppingAction class
#ifndef B1SteppingAction_h
@@ -23,10 +23,9 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file VectorAccummulable.hh
/// \brief Definition of the VectorAccummulable class
///
/// This class defines an accummulable of a vector<T> type
/// that merges the vectors filled on workers in a single vector.
@@ -23,9 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/src/ActionInitialization.cc
/// \brief Implementation of the B1::ActionInitialization class
/// \file ActionInitialization.cc
/// \brief Implementation of the B1Con::ActionInitialization class
#include "ActionInitialization.hh"
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/src/DetectorConstruction.cc
/// \file DetectorConstruction.cc
/// \brief Implementation of the B1::DetectorConstruction class
#include "DetectorConstruction.hh"
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/src/EventAction.cc
/// \file EventAction.cc
/// \brief Implementation of the B1::EventAction class
#include "EventAction.hh"
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/src/PrimaryGeneratorAction.cc
/// \file PrimaryGeneratorAction.cc
/// \brief Implementation of the B1::PrimaryGeneratorAction class
#include "PrimaryGeneratorAction.hh"
@@ -23,9 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/src/RunAction.cc
/// \brief Implementation of the B1::RunAction class
/// \file RunAction.cc
/// \brief Implementation of the B1Con::RunAction class
#include "RunAction.hh"
@@ -23,8 +23,7 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
/// \file B1/src/SteppingAction.cc
/// \file SteppingAction.cc
/// \brief Implementation of the B1::SteppingAction class
#include "SteppingAction.hh"
+5
View File
@@ -4,6 +4,11 @@ See `CONTRIBUTING.rst` for details of **required** info/format for each entry,
which **must** added in reverse chronological order (newest at the top). It must **not**
be used as a substitute for writing good git commit messages!
## 2025-07-30 I. Hrivnacova (analysisExample-V11-03-00)
- Migration of README pages to Markdown:
- .README.txt replaced with README.md and removed README
- Reviewed and fixed external links, references to code
## 2024-08-12 I. Hrivnacova (analysisExample-V11-02-00)
- Updated for changes in accumulables:
use new "Register" method with shorter name
@@ -1,28 +1,22 @@
Geant4 extended examples - analysis
-----------------------------------
\page Examples_analysis Category "analysis"
Examples in this directory demonstrate how to make histograms and ntuples
AnaEx01
--------
\ref ExampleAnaEx01
Simple example showing use of g4tools.
AnaEx02
--------
\ref ExampleAnaEx02
As AnaEx01, but direct interface to ROOT.
AnaEx03
--------
\ref ExampleAnaEx03
Demonstrates usage of analysis commands for file management
(new since Geant4 11.1), in particular writing histograms and ntuples in a file
multiple times.
B1Con
------
\ref ExampleB1Con
B1Con shows how to use the statistical tool G4ConvergenceTester.
It does not make histograms.