Import Geant4 11.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2023-12-08 10:43:34 +01:00
parent dd1f179cda
commit 860a2b92bf
3962 changed files with 139318 additions and 164259 deletions
@@ -6,7 +6,7 @@
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.
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.
@@ -49,6 +49,14 @@
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.
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.
+109 -271
View File
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-01-ref-06 (30-June-2023)
Geant4 version Name: geant4-11-02-ref-00 (8-December-2023)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -82,6 +82,10 @@ Registered graphics systems are:
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
Default graphics system is: TSG_OFFSCREEN (based on batch session).
Default window size hint is: 600x600-0+0 (based on G4VisManager initialisation).
Note: Parameters specified on the command line will override these defaults.
Use "vis/open" without parameters to get these defaults.
Registering model factories...
@@ -566,384 +570,243 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
====================================================================
HADRONIC PROCESSES SUMMARY (verbose level 1)
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for neutron
Process: hadElastic
Model: hElasticCHIPS: 0 eV ---> 100 TeV
Cr_sctns: G4NeutronElasticXS: 0 eV ---> 100 TeV
Process: neutronInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: G4NeutronInelasticXS: 0 eV ---> 100 TeV
Process: nCapture
Model: nRadCapture: 0 eV ---> 100 TeV
Cr_sctns: G4NeutronCaptureXS: 0 eV ---> 100 TeV
Process: nKiller
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for B-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: B-Inelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for D-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: D-Inelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for GenericIon
Process: ionInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for He3
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: He3Inelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for alpha
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: alphaInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_He3
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_He3Inelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_alpha
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_alphaInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_deuteron
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_deuteronInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-------------------------------------------------------------------------
Hadronic Processes for anti_hypertriton
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: anti_lambdaInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_neutron
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100.1 MeV
Model: AntiAElastic: 100 MeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_neutronInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_proton
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100.1 MeV
Model: AntiAElastic: 100 MeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_protonInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_triton
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_tritonInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for deuteron
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: dInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for e+
Process: positronNuclear
Model: G4ElectroVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: ElectroNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for e-
Process: electronNuclear
Model: G4ElectroVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: ElectroNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for gamma
Process: photonNuclear
Model: GammaNPreco: 0 eV ---> 200 MeV
Model: BertiniCascade: 199 MeV ---> 6 GeV
Model: TheoFSGenerator: 3 GeV ---> 100 TeV
Cr_sctns: GammaNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for kaon+
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: kaon+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for kaon-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: kaon-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: lambdaInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for mu+
Process: muonNuclear
Model: G4MuonVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: KokoulinMuonNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for mu-
Process: muonNuclear
Model: G4MuonVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: KokoulinMuonNuclearXS: 0 eV ---> 100 TeV
Process: muMinusCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for pi+
Process: hadElastic
Model: hElasticGlauber: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: pi+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for pi-
Process: hadElastic
Model: hElasticGlauber: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: pi-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for proton
Process: hadElastic
Model: hElasticCHIPS: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: protonInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for sigma-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: sigma-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for triton
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: tInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
================================================================
=======================================================================
====== Geant4 Native Pre-compound Model Parameters ========
=======================================================================
@@ -981,20 +844,10 @@ See commands in /vis/modeling/trajectories/ for other options.
### Run 0 start.
---> Begin of event: 0
----> print histograms statistic
EAbs: mean = 90.5308 MeV rms = 6.0806 MeV
EGap: mean = 3.64449 MeV rms = 2.14406 MeV
LAbs: mean = 6.56523 cm rms = 5.55053 mm
LGap: mean = 1.78048 cm rms = 1.0768 cm
There are 4 h1 histograms
0 with 10 entries: Edep in absorber (MeV)
1 with 10 entries: Edep in gap (MeV)
2 with 10 entries: trackL in absorber (mm)
3 with 10 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... create file : ./histo/e-_h1_EAbs.csv - done
... create file : ./histo/e-_h1_EGap.csv - done
... create file : ./histo/e-_h1_LAbs.csv - done
@@ -1005,94 +858,85 @@ View them with "/vis/plot" or "/vis/reviewPlots".
... write file : ./histo/e-_h1_LGap.csv - done
... write file : ./ntuple/e-_nt_Ntuple1.csv - done
... write file : ./ntuple/e-_nt_Ntuple2.csv - done
----> print histograms statistic
EAbs: mean = 90.5308 MeV rms = 6.08062 MeV
EGap: mean = 3.64448 MeV rms = 2.14405 MeV
LAbs: mean = 6.56523 cm rms = 5.55065 mm
LGap: mean = 1.78048 cm rms = 1.07679 cm
### Run 1 start.
---> Begin of event: 0
... create file : ./ntuple/e-_nt_Ntuple1_v1.csv - done
... create file : ./ntuple/e-_nt_Ntuple2_v1.csv - done
----> print histograms statistic
EAbs: mean = 179.468 MeV rms = 10.6369 MeV
EGap: mean = 9.19591 MeV rms = 5.07079 MeV
LAbs: mean = 12.938 cm rms = 8.44399 mm
LGap: mean = 4.536 cm rms = 2.64611 cm
There are 4 h1 histograms
0 with 20 entries: Edep in absorber (MeV)
1 with 20 entries: Edep in gap (MeV)
2 with 20 entries: trackL in absorber (mm)
3 with 20 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
2 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... create file : ./histo/e-_h1_EAbs_v1.csv - done
... create file : ./histo/e-_h1_EGap_v1.csv - done
... create file : ./histo/e-_h1_LAbs_v1.csv - done
... create file : ./histo/e-_h1_LGap_v1.csv - done
... write file : ./histo/e-_h1_EAbs.csv - done
... write file : ./histo/e-_h1_EAbs_v1.csv - done
... write file : ./histo/e-_h1_EGap.csv - done
... write file : ./histo/e-_h1_EGap_v1.csv - done
... write file : ./histo/e-_h1_LAbs.csv - done
... write file : ./histo/e-_h1_LAbs_v1.csv - done
... write file : ./histo/e-_h1_LGap.csv - done
... write file : ./histo/e-_h1_LGap_v1.csv - done
... write file : ./ntuple/e-_nt_Ntuple1.csv - done
... write file : ./ntuple/e-_nt_Ntuple1_v1.csv - done
... write file : ./ntuple/e-_nt_Ntuple2.csv - done
... write file : ./ntuple/e-_nt_Ntuple2_v1.csv - done
----> print histograms statistic
EAbs: mean = 177.138 MeV rms = 8.27034 MeV
LAbs: mean = 12.7777 cm rms = 6.20274 mm
### Run 2 start.
---> Begin of event: 0
... create file : ./ntuple/e-_nt_Ntuple1_v2.csv - done
... create file : ./ntuple/e-_nt_Ntuple2_v2.csv - done
----> print histograms statistic
EAbs: mean = 272.05 MeV rms = 9.23393 MeV
EGap: mean = 14.0337 MeV rms = 5.20653 MeV
LAbs: mean = 19.596 cm rms = 7.90907 mm
LGap: mean = 6.90508 cm rms = 2.73617 cm
There are 4 h1 histograms
0 with 30 entries: Edep in absorber (MeV)
1 with 30 entries: Edep in gap (MeV)
2 with 30 entries: trackL in absorber (mm)
3 with 30 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... create file : ./histo/e-_h1_EAbs_v2.csv - done
... create file : ./histo/e-_h1_EGap_v2.csv - done
... create file : ./histo/e-_h1_EGap2_v2.csv - done
... create file : ./histo/e-_h1_LAbs_v2.csv - done
... create file : ./histo/e-_h1_LGap_v2.csv - done
... create file : ./histo/e-_h1_LGap2_v2.csv - done
... write file : ./histo/e-_h1_EAbs.csv - done
... write file : ./histo/e-_h1_EAbs_v1.csv - done
... write file : ./histo/e-_h1_EAbs_v2.csv - done
... write file : ./histo/e-_h1_EGap.csv - done
... write file : ./histo/e-_h1_EGap_v1.csv - done
... write file : ./histo/e-_h1_EGap_v2.csv - done
... write file : ./histo/e-_h1_EGap2_v2.csv - done
... write file : ./histo/e-_h1_LAbs.csv - done
... write file : ./histo/e-_h1_LAbs_v1.csv - done
... write file : ./histo/e-_h1_LAbs_v2.csv - done
... write file : ./histo/e-_h1_LGap.csv - done
... write file : ./histo/e-_h1_LGap_v1.csv - done
... write file : ./histo/e-_h1_LGap_v2.csv - done
... write file : ./histo/e-_h1_LGap2_v2.csv - done
... write file : ./ntuple/e-_nt_Ntuple1.csv - done
... write file : ./ntuple/e-_nt_Ntuple1_v1.csv - done
... write file : ./ntuple/e-_nt_Ntuple1_v2.csv - done
... write file : ./ntuple/e-_nt_Ntuple2.csv - done
... write file : ./ntuple/e-_nt_Ntuple2_v1.csv - done
... write file : ./ntuple/e-_nt_Ntuple2_v2.csv - done
----> print histograms statistic
EAbs: mean = 271 MeV rms = 9.43362 MeV
EGap2: mean = 14.1853 MeV rms = 5.50846 MeV
LAbs: mean = 19.5342 cm rms = 7.25439 mm
LGap2: mean = 6.9354 cm rms = 2.73288 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
... close file : ./histo/e-_h1_EGap.csv - done
... close file : ./histo/e-_h1_EGap_v1.csv - done
... close file : ./histo/e-_h1_EGap_v2.csv - done
... close file : ./histo/e-_h1_EGap2_v2.csv - done
... close file : ./histo/e-_h1_LAbs.csv - done
... close file : ./histo/e-_h1_LAbs_v1.csv - done
... close file : ./histo/e-_h1_LAbs_v2.csv - done
... close file : ./histo/e-_h1_LGap.csv - done
... close file : ./histo/e-_h1_LGap_v1.csv - done
... close file : ./histo/e-_h1_LGap_v2.csv - done
... close file : ./histo/e-_h1_LGap2_v2.csv - done
... close file : ./ntuple/e-_nt_Ntuple1.csv - done
... close file : ./ntuple/e-_nt_Ntuple1_v1.csv - done
... close file : ./ntuple/e-_nt_Ntuple1_v2.csv - done
@@ -1105,73 +949,67 @@ View them with "/vis/plot" or "/vis/reviewPlots".
### Run 3 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... create file : ./histo/proton_h1_EAbs.csv - done
... create file : ./histo/proton_h1_EGap2.csv - done
... create file : ./histo/proton_h1_LAbs.csv - done
... create file : ./histo/proton_h1_LGap2.csv - done
... write file : ./histo/proton_h1_EAbs.csv - done
... write file : ./histo/proton_h1_EGap2.csv - done
... write file : ./histo/proton_h1_LAbs.csv - done
... write file : ./histo/proton_h1_LGap2.csv - done
... write file : ./ntuple/proton_nt_Ntuple1.csv - done
... write file : ./ntuple/proton_nt_Ntuple2.csv - done
----> print histograms statistic
EAbs: mean = 216.845 MeV rms = 41.8355 MeV
EGap: mean = 19.3365 MeV rms = 9.77126 MeV
LAbs: mean = 9.02409 cm rms = 2.17903 cm
LGap: mean = 4.58733 cm rms = 1.29921 cm
There are 4 h1 histograms
0 with 40 entries: Edep in absorber (MeV)
1 with 40 entries: Edep in gap (MeV)
2 with 40 entries: trackL in absorber (mm)
3 with 40 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... create file : ./histo/proton_h1_EAbs.csv - done
... create file : ./histo/proton_h1_EGap.csv - done
... create file : ./histo/proton_h1_LAbs.csv - done
... create file : ./histo/proton_h1_LGap.csv - done
... write file : ./histo/proton_h1_EAbs.csv - done
... write file : ./histo/proton_h1_EGap.csv - done
... write file : ./histo/proton_h1_LAbs.csv - done
... write file : ./histo/proton_h1_LGap.csv - done
... write file : ./ntuple/proton_nt_Ntuple1.csv - done
... write file : ./ntuple/proton_nt_Ntuple2.csv - done
EAbs: mean = 226.225 MeV rms = 40.4637 MeV
EGap2: mean = 19.8776 MeV rms = 6.61033 MeV
LAbs: mean = 9.41867 cm rms = 1.57179 cm
LGap2: mean = 4.82778 cm rms = 1.12059 cm
### Run 4 start.
---> Begin of event: 0
... create file : ./ntuple/proton_nt_Ntuple1_v1.csv - done
... create file : ./ntuple/proton_nt_Ntuple2_v1.csv - done
----> print histograms statistic
EAbs: mean = 196.65 MeV rms = 52.0211 MeV
EGap: mean = 17.2096 MeV rms = 11.4505 MeV
LAbs: mean = 8.9716 cm rms = 2.03088 cm
LGap: mean = 4.53482 cm rms = 1.31395 cm
There are 4 h1 histograms
0 with 50 entries: Edep in absorber (MeV)
1 with 50 entries: Edep in gap (MeV)
2 with 50 entries: trackL in absorber (mm)
3 with 50 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... create file : ./histo/proton_h1_EAbs_v1.csv - done
... create file : ./histo/proton_h1_EGap_v1.csv - done
... create file : ./histo/proton_h1_EGap2_v1.csv - done
... create file : ./histo/proton_h1_LAbs_v1.csv - done
... create file : ./histo/proton_h1_LGap_v1.csv - done
... create file : ./histo/proton_h1_LGap2_v1.csv - done
... write file : ./histo/proton_h1_EAbs.csv - done
... write file : ./histo/proton_h1_EAbs_v1.csv - done
... write file : ./histo/proton_h1_EGap.csv - done
... write file : ./histo/proton_h1_EGap_v1.csv - done
... write file : ./histo/proton_h1_EGap2.csv - done
... write file : ./histo/proton_h1_EGap2_v1.csv - done
... write file : ./histo/proton_h1_LAbs.csv - done
... write file : ./histo/proton_h1_LAbs_v1.csv - done
... write file : ./histo/proton_h1_LGap.csv - done
... write file : ./histo/proton_h1_LGap_v1.csv - done
... write file : ./histo/proton_h1_LGap2.csv - done
... write file : ./histo/proton_h1_LGap2_v1.csv - done
... write file : ./ntuple/proton_nt_Ntuple1.csv - done
... write file : ./ntuple/proton_nt_Ntuple1_v1.csv - done
... write file : ./ntuple/proton_nt_Ntuple2.csv - done
... write file : ./ntuple/proton_nt_Ntuple2_v1.csv - done
----> print histograms statistic
EAbs: mean = 201.148 MeV rms = 55.8478 MeV
EGap2: mean = 16.2152 MeV rms = 6.89304 MeV
LAbs: mean = 8.83635 cm rms = 2.47669 cm
LGap2: mean = 4.42853 cm rms = 1.53221 cm
... close file : ./histo/proton_h1_EAbs.csv - done
... close file : ./histo/proton_h1_EAbs_v1.csv - done
... close file : ./histo/proton_h1_EGap.csv - done
... close file : ./histo/proton_h1_EGap_v1.csv - done
... close file : ./histo/proton_h1_EGap2.csv - done
... close file : ./histo/proton_h1_EGap2_v1.csv - done
... close file : ./histo/proton_h1_LAbs.csv - done
... close file : ./histo/proton_h1_LAbs_v1.csv - done
... close file : ./histo/proton_h1_LGap.csv - done
... close file : ./histo/proton_h1_LGap_v1.csv - done
... close file : ./histo/proton_h1_LGap2.csv - done
... close file : ./histo/proton_h1_LGap2_v1.csv - done
... close file : ./ntuple/proton_nt_Ntuple1.csv - done
... close file : ./ntuple/proton_nt_Ntuple1_v1.csv - done
... close file : ./ntuple/proton_nt_Ntuple2.csv - done
@@ -11,7 +11,7 @@ Environment variable "G4FORCE_RUN_MANAGER_TYPE" enabled with value == Serial. Fo
**************************************************************
Geant4 version Name: geant4-11-01-ref-06 (30-June-2023)
Geant4 version Name: geant4-11-02-ref-00 (8-December-2023)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -82,6 +82,10 @@ Registered graphics systems are:
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
Default graphics system is: TSG_OFFSCREEN (based on batch session).
Default window size hint is: 600x600-0+0 (based on G4VisManager initialisation).
Note: Parameters specified on the command line will override these defaults.
Use "vis/open" without parameters to get these defaults.
Registering model factories...
@@ -565,384 +569,243 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
====================================================================
HADRONIC PROCESSES SUMMARY (verbose level 1)
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for neutron
Process: hadElastic
Model: hElasticCHIPS: 0 eV ---> 100 TeV
Cr_sctns: G4NeutronElasticXS: 0 eV ---> 100 TeV
Process: neutronInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: G4NeutronInelasticXS: 0 eV ---> 100 TeV
Process: nCapture
Model: nRadCapture: 0 eV ---> 100 TeV
Cr_sctns: G4NeutronCaptureXS: 0 eV ---> 100 TeV
Process: nKiller
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for B-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: B-Inelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for D-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: D-Inelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for GenericIon
Process: ionInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for He3
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: He3Inelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for alpha
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: alphaInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_He3
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_He3Inelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_alpha
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_alphaInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_deuteron
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_deuteronInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-------------------------------------------------------------------------
Hadronic Processes for anti_hypertriton
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: anti_lambdaInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_neutron
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100.1 MeV
Model: AntiAElastic: 100 MeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_neutronInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_proton
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100.1 MeV
Model: AntiAElastic: 100 MeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_protonInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_triton
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_tritonInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for deuteron
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: dInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for e+
Process: positronNuclear
Model: G4ElectroVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: ElectroNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for e-
Process: electronNuclear
Model: G4ElectroVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: ElectroNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for gamma
Process: photonNuclear
Model: GammaNPreco: 0 eV ---> 200 MeV
Model: BertiniCascade: 199 MeV ---> 6 GeV
Model: TheoFSGenerator: 3 GeV ---> 100 TeV
Cr_sctns: GammaNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for kaon+
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: kaon+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for kaon-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: kaon-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: lambdaInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for mu+
Process: muonNuclear
Model: G4MuonVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: KokoulinMuonNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for mu-
Process: muonNuclear
Model: G4MuonVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: KokoulinMuonNuclearXS: 0 eV ---> 100 TeV
Process: muMinusCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for pi+
Process: hadElastic
Model: hElasticGlauber: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: pi+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for pi-
Process: hadElastic
Model: hElasticGlauber: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: pi-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for proton
Process: hadElastic
Model: hElasticCHIPS: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: protonInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for sigma-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: sigma-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for triton
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: tInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
================================================================
=======================================================================
====== Geant4 Native Pre-compound Model Parameters ========
=======================================================================
@@ -980,96 +843,79 @@ See commands in /vis/modeling/trajectories/ for other options.
### Run 0 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.hdf5 - done
----> print histograms statistic
EAbs: mean = 90.5308 MeV rms = 6.0806 MeV
EGap: mean = 3.64449 MeV rms = 2.14406 MeV
LAbs: mean = 6.56523 cm rms = 5.55053 mm
LGap: mean = 1.78048 cm rms = 1.0768 cm
There are 4 h1 histograms
0 with 10 entries: Edep in absorber (MeV)
1 with 10 entries: Edep in gap (MeV)
2 with 10 entries: trackL in absorber (mm)
3 with 10 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.hdf5 - done
EAbs: mean = 90.5308 MeV rms = 6.08062 MeV
EGap: mean = 3.64448 MeV rms = 2.14405 MeV
LAbs: mean = 6.56523 cm rms = 5.55065 mm
LGap: mean = 1.78048 cm rms = 1.07679 cm
### Run 1 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
2 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.hdf5 - done
----> print histograms statistic
EAbs: mean = 179.468 MeV rms = 10.6369 MeV
EGap: mean = 9.19591 MeV rms = 5.07079 MeV
LAbs: mean = 12.938 cm rms = 8.44399 mm
LGap: mean = 4.536 cm rms = 2.64611 cm
There are 4 h1 histograms
0 with 20 entries: Edep in absorber (MeV)
1 with 20 entries: Edep in gap (MeV)
2 with 20 entries: trackL in absorber (mm)
3 with 20 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.hdf5 - done
EAbs: mean = 177.138 MeV rms = 8.27034 MeV
LAbs: mean = 12.7777 cm rms = 6.20274 mm
### Run 2 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.hdf5 - done
----> print histograms statistic
EAbs: mean = 272.05 MeV rms = 9.23393 MeV
EGap: mean = 14.0337 MeV rms = 5.20653 MeV
LAbs: mean = 19.596 cm rms = 7.90907 mm
LGap: mean = 6.90508 cm rms = 2.73617 cm
There are 4 h1 histograms
0 with 30 entries: Edep in absorber (MeV)
1 with 30 entries: Edep in gap (MeV)
2 with 30 entries: trackL in absorber (mm)
3 with 30 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.hdf5 - done
EAbs: mean = 271 MeV rms = 9.43362 MeV
EGap2: mean = 14.1853 MeV rms = 5.50846 MeV
LAbs: mean = 19.5342 cm rms = 7.25439 mm
LGap2: mean = 6.9354 cm rms = 2.73288 cm
... close file : e-.hdf5 - done
... create file : proton.hdf5 - done
... open analysis file : proton.hdf5 - done
### Run 3 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.hdf5 - done
----> print histograms statistic
EAbs: mean = 216.845 MeV rms = 41.8355 MeV
EGap: mean = 19.3365 MeV rms = 9.77126 MeV
LAbs: mean = 9.02409 cm rms = 2.17903 cm
LGap: mean = 4.58733 cm rms = 1.29921 cm
There are 4 h1 histograms
0 with 40 entries: Edep in absorber (MeV)
1 with 40 entries: Edep in gap (MeV)
2 with 40 entries: trackL in absorber (mm)
3 with 40 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.hdf5 - done
EAbs: mean = 226.225 MeV rms = 40.4637 MeV
EGap2: mean = 19.8776 MeV rms = 6.61033 MeV
LAbs: mean = 9.41867 cm rms = 1.57179 cm
LGap2: mean = 4.82778 cm rms = 1.12059 cm
### Run 4 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.hdf5 - done
----> print histograms statistic
EAbs: mean = 196.65 MeV rms = 52.0211 MeV
EGap: mean = 17.2096 MeV rms = 11.4505 MeV
LAbs: mean = 8.9716 cm rms = 2.03088 cm
LGap: mean = 4.53482 cm rms = 1.31395 cm
There are 4 h1 histograms
0 with 50 entries: Edep in absorber (MeV)
1 with 50 entries: Edep in gap (MeV)
2 with 50 entries: trackL in absorber (mm)
3 with 50 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.hdf5 - done
EAbs: mean = 201.148 MeV rms = 55.8478 MeV
EGap2: mean = 16.2152 MeV rms = 6.89304 MeV
LAbs: mean = 8.83635 cm rms = 2.47669 cm
LGap2: mean = 4.42853 cm rms = 1.53221 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-01-ref-06 (30-June-2023)
Geant4 version Name: geant4-11-02-ref-00 (8-December-2023)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -82,6 +82,10 @@ Registered graphics systems are:
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
Default graphics system is: TSG_OFFSCREEN (based on batch session).
Default window size hint is: 600x600-0+0 (based on G4VisManager initialisation).
Note: Parameters specified on the command line will override these defaults.
Use "vis/open" without parameters to get these defaults.
Registering model factories...
@@ -567,384 +571,243 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
====================================================================
HADRONIC PROCESSES SUMMARY (verbose level 1)
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for neutron
Process: hadElastic
Model: hElasticCHIPS: 0 eV ---> 100 TeV
Cr_sctns: G4NeutronElasticXS: 0 eV ---> 100 TeV
Process: neutronInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: G4NeutronInelasticXS: 0 eV ---> 100 TeV
Process: nCapture
Model: nRadCapture: 0 eV ---> 100 TeV
Cr_sctns: G4NeutronCaptureXS: 0 eV ---> 100 TeV
Process: nKiller
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for B-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: B-Inelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for D-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: D-Inelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for GenericIon
Process: ionInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for He3
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: He3Inelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for alpha
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: alphaInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_He3
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_He3Inelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_alpha
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_alphaInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_deuteron
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_deuteronInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-------------------------------------------------------------------------
Hadronic Processes for anti_hypertriton
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: anti_lambdaInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_neutron
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100.1 MeV
Model: AntiAElastic: 100 MeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_neutronInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_proton
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100.1 MeV
Model: AntiAElastic: 100 MeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_protonInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_triton
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_tritonInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for deuteron
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: dInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for e+
Process: positronNuclear
Model: G4ElectroVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: ElectroNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for e-
Process: electronNuclear
Model: G4ElectroVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: ElectroNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for gamma
Process: photonNuclear
Model: GammaNPreco: 0 eV ---> 200 MeV
Model: BertiniCascade: 199 MeV ---> 6 GeV
Model: TheoFSGenerator: 3 GeV ---> 100 TeV
Cr_sctns: GammaNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for kaon+
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: kaon+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for kaon-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: kaon-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: lambdaInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for mu+
Process: muonNuclear
Model: G4MuonVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: KokoulinMuonNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for mu-
Process: muonNuclear
Model: G4MuonVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: KokoulinMuonNuclearXS: 0 eV ---> 100 TeV
Process: muMinusCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for pi+
Process: hadElastic
Model: hElasticGlauber: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: pi+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for pi-
Process: hadElastic
Model: hElasticGlauber: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: pi-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for proton
Process: hadElastic
Model: hElasticCHIPS: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: protonInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for sigma-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: sigma-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for triton
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: tInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
================================================================
=======================================================================
====== Geant4 Native Pre-compound Model Parameters ========
=======================================================================
@@ -982,57 +845,46 @@ See commands in /vis/modeling/trajectories/ for other options.
### Run 0 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.root - done
----> print histograms statistic
EAbs: mean = 90.5308 MeV rms = 6.0806 MeV
EGap: mean = 3.64449 MeV rms = 2.14406 MeV
LAbs: mean = 6.56523 cm rms = 5.55053 mm
LGap: mean = 1.78048 cm rms = 1.0768 cm
There are 4 h1 histograms
0 with 10 entries: Edep in absorber (MeV)
1 with 10 entries: Edep in gap (MeV)
2 with 10 entries: trackL in absorber (mm)
3 with 10 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.root - done
EAbs: mean = 90.5308 MeV rms = 6.08062 MeV
EGap: mean = 3.64448 MeV rms = 2.14405 MeV
LAbs: mean = 6.56523 cm rms = 5.55065 mm
LGap: mean = 1.78048 cm rms = 1.07679 cm
### Run 1 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
2 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.root - done
----> print histograms statistic
EAbs: mean = 179.468 MeV rms = 10.6369 MeV
EGap: mean = 9.19591 MeV rms = 5.07079 MeV
LAbs: mean = 12.938 cm rms = 8.44399 mm
LGap: mean = 4.536 cm rms = 2.64611 cm
There are 4 h1 histograms
0 with 20 entries: Edep in absorber (MeV)
1 with 20 entries: Edep in gap (MeV)
2 with 20 entries: trackL in absorber (mm)
3 with 20 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.root - done
EAbs: mean = 177.138 MeV rms = 8.27034 MeV
LAbs: mean = 12.7777 cm rms = 6.20274 mm
### Run 2 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.root - done
----> print histograms statistic
EAbs: mean = 272.05 MeV rms = 9.23393 MeV
EGap: mean = 14.0337 MeV rms = 5.20653 MeV
LAbs: mean = 19.596 cm rms = 7.90907 mm
LGap: mean = 6.90508 cm rms = 2.73617 cm
There are 4 h1 histograms
0 with 30 entries: Edep in absorber (MeV)
1 with 30 entries: Edep in gap (MeV)
2 with 30 entries: trackL in absorber (mm)
3 with 30 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.root - done
EAbs: mean = 271 MeV rms = 9.43362 MeV
EGap2: mean = 14.1853 MeV rms = 5.50846 MeV
LAbs: mean = 19.5342 cm rms = 7.25439 mm
LGap2: mean = 6.9354 cm rms = 2.73288 cm
... close file : e-.root - done
... create file : proton.root - done
... open analysis file : proton.root - done
@@ -1040,39 +892,33 @@ View them with "/vis/plot" or "/vis/reviewPlots".
### Run 3 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.root - done
----> print histograms statistic
EAbs: mean = 216.845 MeV rms = 41.8355 MeV
EGap: mean = 19.3365 MeV rms = 9.77126 MeV
LAbs: mean = 9.02409 cm rms = 2.17903 cm
LGap: mean = 4.58733 cm rms = 1.29921 cm
There are 4 h1 histograms
0 with 40 entries: Edep in absorber (MeV)
1 with 40 entries: Edep in gap (MeV)
2 with 40 entries: trackL in absorber (mm)
3 with 40 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.root - done
EAbs: mean = 226.225 MeV rms = 40.4637 MeV
EGap2: mean = 19.8776 MeV rms = 6.61033 MeV
LAbs: mean = 9.41867 cm rms = 1.57179 cm
LGap2: mean = 4.82778 cm rms = 1.12059 cm
### Run 4 start.
---> Begin of event: 0
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.root - done
----> print histograms statistic
EAbs: mean = 196.65 MeV rms = 52.0211 MeV
EGap: mean = 17.2096 MeV rms = 11.4505 MeV
LAbs: mean = 8.9716 cm rms = 2.03088 cm
LGap: mean = 4.53482 cm rms = 1.31395 cm
There are 4 h1 histograms
0 with 50 entries: Edep in absorber (MeV)
1 with 50 entries: Edep in gap (MeV)
2 with 50 entries: trackL in absorber (mm)
3 with 50 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.root - done
EAbs: mean = 201.148 MeV rms = 55.8478 MeV
EGap2: mean = 16.2152 MeV rms = 6.89304 MeV
LAbs: mean = 8.83635 cm rms = 2.47669 cm
LGap2: mean = 4.42853 cm rms = 1.53221 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-01-ref-06 (30-June-2023)
Geant4 version Name: geant4-11-02-ref-00 (8-December-2023)
Copyright : Geant4 Collaboration
References : NIM A 506 (2003), 250-303
: IEEE-TNS 53 (2006), 270-278
@@ -82,6 +82,10 @@ Registered graphics systems are:
TOOLSSG_XT_ZB (TSG_XT_ZB, TSGXtZB)
TOOLSSG_QT_GLES (TSG_QT_GLES, TSGQt, TSG)
TOOLSSG_QT_ZB (TSG_QT_ZB, TSGQtZB)
Default graphics system is: TSG_OFFSCREEN (based on batch session).
Default window size hint is: 600x600-0+0 (based on G4VisManager initialisation).
Note: Parameters specified on the command line will override these defaults.
Use "vis/open" without parameters to get these defaults.
Registering model factories...
@@ -567,384 +571,243 @@ CoulombScat: for pi- XStype:1 SubType=1 BuildTable=1
====================================================================
HADRONIC PROCESSES SUMMARY (verbose level 1)
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for neutron
Process: hadElastic
Model: hElasticCHIPS: 0 eV ---> 100 TeV
Cr_sctns: G4NeutronElasticXS: 0 eV ---> 100 TeV
Process: neutronInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: G4NeutronInelasticXS: 0 eV ---> 100 TeV
Process: nCapture
Model: nRadCapture: 0 eV ---> 100 TeV
Cr_sctns: G4NeutronCaptureXS: 0 eV ---> 100 TeV
Process: nKiller
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for B-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: B-Inelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for D-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: D-Inelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for GenericIon
Process: ionInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for He3
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: He3Inelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for alpha
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: alphaInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_He3
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_He3Inelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_alpha
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_alphaInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_deuteron
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_deuteronInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-------------------------------------------------------------------------
Hadronic Processes for anti_hypertriton
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: anti_lambdaInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_neutron
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100.1 MeV
Model: AntiAElastic: 100 MeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_neutronInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_proton
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100.1 MeV
Model: AntiAElastic: 100 MeV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_protonInelastic
Model: FTFP: 0 eV ---> 100 TeV
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for anti_triton
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100.1 MeV/n
Model: AntiAElastic: 100 MeV/n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: anti_tritonInelastic
Model: FTFP: 0 eV /n ---> 100 TeV/n
Cr_sctns: AntiAGlauber: 0 eV ---> 25.6 PeV
Process: hFritiofCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for deuteron
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: dInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for e+
Process: positronNuclear
Model: G4ElectroVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: ElectroNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for e-
Process: electronNuclear
Model: G4ElectroVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: ElectroNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for gamma
Process: photonNuclear
Model: GammaNPreco: 0 eV ---> 200 MeV
Model: BertiniCascade: 199 MeV ---> 6 GeV
Model: TheoFSGenerator: 3 GeV ---> 100 TeV
Cr_sctns: GammaNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for kaon+
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: kaon+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for kaon-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: kaon-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for lambda
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: lambdaInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for mu+
Process: muonNuclear
Model: G4MuonVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: KokoulinMuonNuclearXS: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for mu-
Process: muonNuclear
Model: G4MuonVDNuclearModel: 0 eV ---> 1 PeV
Cr_sctns: KokoulinMuonNuclearXS: 0 eV ---> 100 TeV
Process: muMinusCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for pi+
Process: hadElastic
Model: hElasticGlauber: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: pi+Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for pi-
Process: hadElastic
Model: hElasticGlauber: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: pi-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for proton
Process: hadElastic
Model: hElasticCHIPS: 0 eV ---> 100 TeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
Process: protonInelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: BarashenkovGlauberGribov: 0 eV ---> 100 TeV
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for sigma-
Process: hadElastic
Model: hElasticLHEP: 0 eV ---> 100 TeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: sigma-Inelastic
Model: FTFP: 3 GeV ---> 100 TeV
Model: BertiniCascade: 0 eV ---> 6 GeV
Cr_sctns: Glauber-Gribov: 0 eV ---> 100 TeV
Process: hBertiniCaptureAtRest
---------------------------------------------------
-----------------------------------------------------------------------
Hadronic Processes for triton
Process: hadElastic
Model: hElasticLHEP: 0 eV /n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
Process: tInelastic
Model: Binary Light Ion Cascade: 0 eV /n ---> 6 GeV/n
Model: FTFP: 3 GeV/n ---> 100 TeV/n
Cr_sctns: Glauber-Gribov Nucl-nucl: 0 eV ---> 25.6 PeV
================================================================
=======================================================================
====== Geant4 Native Pre-compound Model Parameters ========
=======================================================================
@@ -982,63 +845,52 @@ See commands in /vis/modeling/trajectories/ for other options.
### Run 0 start.
---> Begin of event: 0
----> print histograms statistic
EAbs: mean = 90.5308 MeV rms = 6.0806 MeV
EGap: mean = 3.64449 MeV rms = 2.14406 MeV
LAbs: mean = 6.56523 cm rms = 5.55053 mm
LGap: mean = 1.78048 cm rms = 1.0768 cm
There are 4 h1 histograms
0 with 10 entries: Edep in absorber (MeV)
1 with 10 entries: Edep in gap (MeV)
2 with 10 entries: trackL in absorber (mm)
3 with 10 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.xml - done
... write file : e-_nt_Ntuple1.xml - done
... write file : e-_nt_Ntuple2.xml - done
----> print histograms statistic
EAbs: mean = 90.5308 MeV rms = 6.08062 MeV
EGap: mean = 3.64448 MeV rms = 2.14405 MeV
LAbs: mean = 6.56523 cm rms = 5.55065 mm
LGap: mean = 1.78048 cm rms = 1.07679 cm
### Run 1 start.
---> Begin of event: 0
----> print histograms statistic
EAbs: mean = 179.468 MeV rms = 10.6369 MeV
EGap: mean = 9.19591 MeV rms = 5.07079 MeV
LAbs: mean = 12.938 cm rms = 8.44399 mm
LGap: mean = 4.536 cm rms = 2.64611 cm
There are 4 h1 histograms
0 with 20 entries: Edep in absorber (MeV)
1 with 20 entries: Edep in gap (MeV)
2 with 20 entries: trackL in absorber (mm)
3 with 20 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
2 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.xml - done
... write file : e-_nt_Ntuple1.xml - done
... write file : e-_nt_Ntuple2.xml - done
----> print histograms statistic
EAbs: mean = 177.138 MeV rms = 8.27034 MeV
LAbs: mean = 12.7777 cm rms = 6.20274 mm
### Run 2 start.
---> Begin of event: 0
----> print histograms statistic
EAbs: mean = 272.05 MeV rms = 9.23393 MeV
EGap: mean = 14.0337 MeV rms = 5.20653 MeV
LAbs: mean = 19.596 cm rms = 7.90907 mm
LGap: mean = 6.90508 cm rms = 2.73617 cm
There are 4 h1 histograms
0 with 30 entries: Edep in absorber (MeV)
1 with 30 entries: Edep in gap (MeV)
2 with 30 entries: trackL in absorber (mm)
3 with 30 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : e-.xml - done
... write file : e-_nt_Ntuple1.xml - done
... write file : e-_nt_Ntuple2.xml - done
----> print histograms statistic
EAbs: mean = 271 MeV rms = 9.43362 MeV
EGap2: mean = 14.1853 MeV rms = 5.50846 MeV
LAbs: mean = 19.5342 cm rms = 7.25439 mm
LGap2: mean = 6.9354 cm rms = 2.73288 cm
... close file : e-.xml - done
... close file : e-_nt_Ntuple1.xml - done
... close file : e-_nt_Ntuple2.xml - done
@@ -1049,43 +901,37 @@ View them with "/vis/plot" or "/vis/reviewPlots".
### Run 3 start.
---> Begin of event: 0
----> print histograms statistic
EAbs: mean = 216.845 MeV rms = 41.8355 MeV
EGap: mean = 19.3365 MeV rms = 9.77126 MeV
LAbs: mean = 9.02409 cm rms = 2.17903 cm
LGap: mean = 4.58733 cm rms = 1.29921 cm
There are 4 h1 histograms
0 with 40 entries: Edep in absorber (MeV)
1 with 40 entries: Edep in gap (MeV)
2 with 40 entries: trackL in absorber (mm)
3 with 40 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.xml - done
... write file : proton_nt_Ntuple1.xml - done
... write file : proton_nt_Ntuple2.xml - done
----> print histograms statistic
EAbs: mean = 226.225 MeV rms = 40.4637 MeV
EGap2: mean = 19.8776 MeV rms = 6.61033 MeV
LAbs: mean = 9.41867 cm rms = 1.57179 cm
LGap2: mean = 4.82778 cm rms = 1.12059 cm
### Run 4 start.
---> Begin of event: 0
----> print histograms statistic
EAbs: mean = 196.65 MeV rms = 52.0211 MeV
EGap: mean = 17.2096 MeV rms = 11.4505 MeV
LAbs: mean = 8.9716 cm rms = 2.03088 cm
LGap: mean = 4.53482 cm rms = 1.31395 cm
There are 4 h1 histograms
0 with 50 entries: Edep in absorber (MeV)
1 with 50 entries: Edep in gap (MeV)
2 with 50 entries: trackL in absorber (mm)
3 with 50 entries: trackL in gap (mm)
List them with "/analysis/list".
View them with "/vis/plot" or "/vis/reviewPlots".
There are histograms that can be viewed with visualization:
4 h1 histograms(s)
List them with "/analysis/list".
View them immediately with "/vis/plot" or "/vis/reviewPlots".
... write file : proton.xml - done
... write file : proton_nt_Ntuple1.xml - done
... write file : proton_nt_Ntuple2.xml - done
----> print histograms statistic
EAbs: mean = 201.148 MeV rms = 55.8478 MeV
EGap2: mean = 16.2152 MeV rms = 6.89304 MeV
LAbs: mean = 8.83635 cm rms = 2.47669 cm
LGap2: mean = 4.42853 cm rms = 1.53221 cm
... close file : proton.xml - done
... close file : proton_nt_Ntuple1.xml - done
... close file : proton_nt_Ntuple2.xml - done
@@ -23,20 +23,34 @@
/gun/energy 100 MeV
/run/beamOn 10
/analysis/write
# uncomment if in interactive mode
#/control/execute plotter.mac
/AnaEx03/runAction/printStatistic
/analysis/reset
# e- 200MeV
/gun/energy 200 MeV
#
# delete h1 with id 1 and 3
/analysis/h1/delete 1
/analysis/h1/delete 3 true
#
/run/beamOn 20
/analysis/write
/AnaEx03/runAction/printStatistic
/analysis/reset
#
# e- 300MeV
/gun/energy 300 MeV
#
# create again h1 with id 1 and 3
/analysis/h1/create "EGap2" "Edep in gap (MeV) 2" 10 0. 100.
/analysis/h1/create "LGap2" "trackL in gap (mm) 2" 10 0. 500.
#
/run/beamOn 30
/analysis/write
/AnaEx03/runAction/printStatistic
/analysis/closeFile
# open analysis file
@@ -47,6 +61,7 @@
/gun/energy 400 MeV
/run/beamOn 40
/analysis/write
/AnaEx03/runAction/printStatistic
/analysis/reset
# proton 500MeV
@@ -54,5 +69,6 @@
#
/run/beamOn 50
/analysis/write
/AnaEx03/runAction/printStatistic
/analysis/closeFile
#
@@ -1,6 +1,6 @@
#----------------------------------------------------------------------------
# Setup the project
cmake_minimum_required(VERSION 3.16...3.21)
cmake_minimum_required(VERSION 3.16...3.27)
project(AnaEx03)
#----------------------------------------------------------------------------
@@ -45,8 +45,8 @@ target_link_libraries(AnaEx03 ${Geant4_LIBRARIES} ${HBOOK_LIBRARIES})
# relies on these scripts being in the current working directory.
#
set(AnaEx03_FILES
AnaEx03.in AnaEx03-csv.in AnaEx03-hdf5.in AnaEx03-root.in AnaEx03-xml.in init_vis.mac vis.mac
histo ntuple)
AnaEx03.in AnaEx03-csv.in AnaEx03-hdf5.in AnaEx03-root.in AnaEx03-xml.in init_vis.mac
vis.mac plotter.mac histo ntuple)
foreach(_file ${AnaEx03_FILES})
file(COPY ${PROJECT_SOURCE_DIR}/${_file} DESTINATION ${PROJECT_BINARY_DIR})
@@ -5,6 +5,18 @@ 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!
## 2023-08-16 I. Hrivnacova (AnaEx03-V11-01-01)
- Added UI command /AnaEx03/runAction/printStatistic
to call PrintStatistic().
This allows to call this function at the end of run
before resetting histograms and avoids printing empty
statistics in MT mode.
## 2023-08-02 I. Hrivnacova (AnaEx03-V11-01-00)
- Update example to demonstrate new analysis manager commands
for deleting selected histograms
- Added plotter.mac
## 2022-11-09 I. Hrivnacova (AnaEx03-V11-00-01)
- Fixed README files
+7 -1
View File
@@ -9,7 +9,7 @@
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.
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
@@ -46,6 +46,12 @@
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.
@@ -41,6 +41,7 @@
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
class G4GenericMessenger;
class G4Run;
class RunAction : public G4UserRunAction
@@ -52,8 +53,12 @@ public:
void BeginOfRunAction(const G4Run*) override;
void EndOfRunAction(const G4Run*) override;
private:
void PrintStatistic();
private:
void DefineCommands();
G4GenericMessenger* fMessenger = nullptr;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -0,0 +1,211 @@
#
# Use with a TSG vis driver.
# Activate with:
# /control/execute plotter.mac
# /run/beamOn 10 # it will update the plotter regions at end of run.
#
#/vis/verbose errors
#/vis/verbose confirmations
#///////////////////////////////////////////////////////////////////////
#/// activate the TSG vis driver: //////////////////////////////////////
#///////////////////////////////////////////////////////////////////////
/vis/sceneHandler/create TSG scene-handler-plotter
#///////////////////////////////////////////////////////////////////////
#/// viewer: ///////////////////////////////////////////////////////////
#///////////////////////////////////////////////////////////////////////
/vis/viewer/create scene-handler-plotter viewer-plotter 600x600-0+0
/vis/viewer/set/background 1 1 1
/vis/viewer/zoomTo 1
/vis/viewer/set/viewpointVector 0 0 1
#///////////////////////////////////////////////////////////////////////
#/// scene: ////////////////////////////////////////////////////////////
#///////////////////////////////////////////////////////////////////////
/vis/plotter/create plotter-0
/vis/scene/create scene-plotter
/vis/scene/add/plotter plotter-0
/vis/sceneHandler/attach scene-plotter
#///////////////////////////////////////////////////////////////////////
#/// create plotter regions and attach histograms to them: /////////////
#///////////////////////////////////////////////////////////////////////
/vis/plotter/setLayout plotter-0 2 2 # create 2x2 plotting regions.
# AnaEx03 specific:
/vis/plotter/add/h1 0 plotter-0 0
/vis/plotter/add/h1 1 plotter-0 1
/vis/plotter/add/h1 2 plotter-0 2
/vis/plotter/add/h1 3 plotter-0 3
#///////////////////////////////////////////////////////////////////////
#/// plotters customisation: ///////////////////////////////////////////
#///////////////////////////////////////////////////////////////////////
# For texts, as titles and axis labels, the good old Hershey vectorial font is used
# by default, but you can also specify a freetype font To use a freetype font, you
# must build Geant4 by specifying -DGEANT4_USE_FREETYPE=ON yin your cmake flags.
# (The ROOT_default and hippodraw styles (see below) uses freetype fonts).
# Two embedded ttf fonts comes with the ToolsSG plotting: roboto_bold (some open source
# kind of the Microsoft arialbd) and lato_regular (close to an helvetica).
# You can use your own .ttf files by using the TOOLS_FONT_PATH environment variable
# to specify the directory where they could be found.
#///////////////////////////////////////////////////////////////////////
#/// using styles: /////////////////////////////////////////////////////
#///////////////////////////////////////////////////////////////////////
/vis/plotter/style/list
/vis/plotter/addStyle plotter-0 reset
#
# The below lines show how to customise a plotter by using an embedded style
# (for example ROOT_default, hippodraw, default) or a style defined with commands.
# The description of the embedded styles can be seen in Geant4 source code at:
# source/externals/g4tools/include/tools/sg/plotter_some_styles
#
# A style can be applied on all regions by using:
# /vis/plotter/addStyle <plotter> <style>
# or on one region only by using:
# /vis/plotter/addRegionStyle <plotter> <region> <style>
#
# The "all regions" styles are applied first, and then the per region ones.
#
# Without using a style, you can customise anyway directly by using
# the command:
# /vis/plotter/addRegionParameter
# See below for examples.
#
#/vis/plotter/addStyle plotter-0 ROOT_default
#/vis/plotter/addStyle plotter-0 hippodraw
#///////////////////////////////////////////////////////////////////////
#/// create and use style-0 style: /////////////////////////////////////
#///////////////////////////////////////////////////////////////////////
##/vis/plotter/style/remove style-0
#/vis/plotter/style/select style-0
#/vis/plotter/style/add infos_width 0.2 # percent of plotter width.
#/vis/plotter/style/add bins_style.0.color blue
#/vis/plotter/style/add bins_style.0.line_width 3
#/vis/plotter/style/add infos_style.visible true
#/vis/plotter/style/add infos_style.font roboto_bold.ttf
#/vis/plotter/style/add infos_style.front_face cw
#///////////////////////////////////////////////////////////////////////
# example to have x_axis as ROOT_default:
#/vis/plotter/style/add x_axis.modeling hplot
#/vis/plotter/style/add x_axis.divisions 510
#/vis/plotter/style/add x_axis.title_hjust right
#/vis/plotter/style/add x_axis.label_to_axis 0.005
#/vis/plotter/style/add x_axis.label_height 0.04
#/vis/plotter/style/add x_axis.tick_length 0.03
#/vis/plotter/style/add x_axis.title_to_axis 0.05
#/vis/plotter/style/add x_axis.title_height 0.04
#/vis/plotter/style/add x_axis.is_log false
#/vis/plotter/style/add x_axis.line_style.color black
#/vis/plotter/style/add x_axis.line_style.line_width 1
#/vis/plotter/style/add x_axis.ticks_style.color black
#/vis/plotter/style/add x_axis.ticks_style.line_width 1
#/vis/plotter/style/add x_axis.labels_style.color black
#/vis/plotter/style/add x_axis.labels_style.scale 0.6
#/vis/plotter/style/add x_axis.labels_style.font roboto_bold.ttf
#/vis/plotter/style/add x_axis.labels_style.front_face cw
#/vis/plotter/style/add x_axis.labels_style.smoothing true
#/vis/plotter/style/add x_axis.title_style.color black
#/vis/plotter/style/add x_axis.title_style.visible true
#/vis/plotter/style/add x_axis.title_style.scale 0.6
#/vis/plotter/style/add x_axis.title_style.font roboto_bold.ttf
#/vis/plotter/style/add x_axis.title_style.front_face cw
#/vis/plotter/style/add x_axis.title_style.smoothing true
#/vis/plotter/style/add x_axis.mag_style.color black
#/vis/plotter/style/add x_axis.mag_style.scale 0.6
#/vis/plotter/style/add x_axis.mag_style.font roboto_bold.ttf
#/vis/plotter/style/add x_axis.mag_style.front_face cw
#/vis/plotter/style/add x_axis.mag_style.smoothing true
#///////////////////////////////////////////////////////////////////////
#/vis/plotter/style/list
#/vis/plotter/style/print style-0
#/vis/plotter/addRegionStyle plotter-0 0 style-0
#/vis/plotter/addRegionStyle plotter-0 1 style-0
#///////////////////////////////////////////////////////////////////////
#/// set directly region parameters: ///////////////////////////////////
#///////////////////////////////////////////////////////////////////////
#
# Without passing by a style, a plotting region can be customised directly
# by using the command:
# /vis/plotter/addRegionParameter
# Use:
# /vis/tsg/plotter/printParameters
# to see the available parameters.
# The declared parameters to be changed are applied after styles.
#
# to see region borders:
#/vis/plotter/addRegionParameter plotter-0 0 background_style.line_width 0.001
#/vis/plotter/addRegionParameter plotter-0 1 background_style.line_width 0.001
#/vis/plotter/addRegionParameter plotter-0 2 background_style.line_width 0.001
#/vis/plotter/addRegionParameter plotter-0 3 background_style.line_width 0.001
/vis/plotter/addRegionParameter plotter-0 0 infos_width 0.2
/vis/plotter/addRegionParameter plotter-0 1 infos_width 0.2
/vis/plotter/addRegionParameter plotter-0 2 infos_width 0.2
/vis/plotter/addRegionParameter plotter-0 3 infos_width 0.2
#
/vis/plotter/addRegionParameter plotter-0 0 bins_style.0.color blue
/vis/plotter/addRegionParameter plotter-0 0 bins_style.0.line_width 3
/vis/plotter/addRegionParameter plotter-0 1 bins_style.0.color blue
/vis/plotter/addRegionParameter plotter-0 1 bins_style.0.line_width 3
/vis/plotter/addRegionParameter plotter-0 2 bins_style.0.color blue
/vis/plotter/addRegionParameter plotter-0 2 bins_style.0.line_width 1
/vis/plotter/addRegionParameter plotter-0 3 bins_style.0.color blue
/vis/plotter/addRegionParameter plotter-0 3 bins_style.0.line_width 1
#
/vis/plotter/addRegionParameter plotter-0 0 x_axis.title detector
#/vis/plotter/addRegionParameter plotter-0 0 x_axis_automated false
#/vis/plotter/addRegionParameter plotter-0 0 x_axis_min 0
#/vis/plotter/addRegionParameter plotter-0 0 x_axis_max 50
#/vis/plotter/addRegionParameter plotter-0 0 x_axis_is_log true
#
#/vis/plotter/addRegionParameter plotter-0 3 title_automated false
#/vis/plotter/addRegionParameter plotter-0 3 title "my title"
/vis/plotter/addRegionParameter plotter-0 1 bins_style.0.color red
/vis/plotter/addRegionParameter plotter-0 3 background_style.back_color "0.95 0.95 0.95"
#///////////////////////////////////////////////////////////////////////
#/// let's go: /////////////////////////////////////////////////////////
#///////////////////////////////////////////////////////////////////////
#/run/beamOn 100 #it will update the plotters at end of run.
#///////////////////////////////////////////////////////////////////////
#/// To produce some "paper" output: ///////////////////////////////////
#///////////////////////////////////////////////////////////////////////
# Use gl2ps to produce a PostScript file (may be long if the scene as a lot of primitives):
#/control/shell rm ./out.eps
#/vis/tsg/export # it produces out.eps
#/control/shell open ./out.eps # if on a Mac.
#/control/shell display ./out.eps # with ImageMagick on a Linux.
# Use gl2ps to produce a pdf file (may be long if the scene as a lot of primitives):
#/control/shell rm ./out.pdf
#/vis/tsg/export gl2ps_pdf out.pdf
#/control/shell open ./out.pdf # if on a Mac.
#/control/shell display ./out.pdf # with ImageMagick on a Linux.
# Use the tools::sg offscreen zbuffer to produce an image and put it in a PostScript file:
#/control/shell rm ./out.ps
#/vis/tsg/export zb_ps out.ps
#/control/shell open ./out.ps # if on a Mac.
#/control/shell display ./out.ps # with ImageMagick on a Linux.
@@ -68,9 +68,15 @@ void EventAction::EndOfEventAction(const G4Event*)
G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
analysisManager->FillH1(0, fEnergyAbs);
analysisManager->FillH1(1, fEnergyGap);
if (analysisManager->GetH1(1) != nullptr) {
// histogram may not exist for all runs
analysisManager->FillH1(1, fEnergyGap);
}
analysisManager->FillH1(2, fTrackLAbs);
analysisManager->FillH1(3, fTrackLGap);
if (analysisManager->GetH1(3) != nullptr) {
// histogram may not exist for all runs
analysisManager->FillH1(3, fTrackLGap);
}
//fill ntuple
//
@@ -34,6 +34,7 @@
#include "RunAction.hh"
#include "G4AnalysisManager.hh"
#include "G4GenericMessenger.hh"
#include "G4Run.hh"
#include "G4RunManager.hh"
#include "G4UnitsTable.hh"
@@ -89,6 +90,8 @@ RunAction::RunAction()
analysisManager->CreateNtupleDColumn("Labs"); // column Id = 0
analysisManager->CreateNtupleDColumn("Lgap"); // column Id = 1
analysisManager->FinishNtuple();
DefineCommands();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -105,9 +108,7 @@ void RunAction::BeginOfRunAction(const G4Run* run)
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void RunAction::EndOfRunAction(const G4Run* /*run*/)
{
PrintStatistic();
}
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -117,9 +118,11 @@ void RunAction::PrintStatistic()
G4cout << "\n ----> print histograms statistic \n" << G4endl;
for ( G4int i=0; i<analysisManager->GetNofH1s(); ++i ) {
G4String name = analysisManager->GetH1Name(i);
auto h1 = analysisManager->GetH1(i);
// skip if histogram was deleted
if (h1 == nullptr) continue;
G4String name = analysisManager->GetH1Name(i);
G4String unitCategory;
if (name[0U] == 'E' ) { unitCategory = "Energy"; }
if (name[0U] == 'L' ) { unitCategory = "Length"; }
@@ -134,3 +137,22 @@ void RunAction::PrintStatistic()
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
void RunAction::DefineCommands()
{
// Define /AnaEx03/runAction command directory using generic messenger class
fMessenger
= new G4GenericMessenger(this,
"/AnaEx03/runAction/",
"Run action commands");
// printStatistic command
auto& printStatisticCmd
= fMessenger->DeclareMethod("printStatistic",
&RunAction::PrintStatistic,
"Print statistic at the end of Run.");
printStatisticCmd.SetToBeBroadcasted(false);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
+4 -14
View File
@@ -6,20 +6,10 @@
/control/verbose 2
/run/verbose 2
#
# Use this open statement to create an OpenGL view:
/vis/open OGL 600x600-0+0
#
# Use this open statement to create a .prim file suitable for
# viewing in DAWN:
#/vis/open DAWNFILE
#
# Use this open statement to create a .heprep file suitable for
# viewing in HepRApp:
#/vis/open HepRepFile
#
# Use this open statement to create a .wrl file suitable for
# viewing in a VRML viewer:
#/vis/open VRML2FILE
# Open a viewer
/vis/open
# This opens the default viewer - see examples/basic/B1/vis.mac for a
# more comprehensive overview of options. Also the documentation.
#
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established: