Import Geant4 11.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2024-12-06 11:11:40 +01:00
parent e58e650b32
commit 32390e802b
1984 changed files with 98713 additions and 83996 deletions
@@ -5,11 +5,11 @@
GFLASHa Example
---------------
The Example demonstrating usage 'gflash' shower parameterisation
in homogeneous calorimeter.Compare with glash1,2,3 in this
example histograms was added. This makes it possible to use this
This example demonstrating usage 'gflash' shower parameterisation
in homogeneous calorimeter. Compare with glash1,2,3 the histograms
have been added in this example. This makes it possible to use this
example for fine tuning of GFLASH parameters.
This example allow compare the shower profiles from fast simulation
This example allows to compare the shower profiles from fast simulation
with full simulation by histograming of longitudinal (slice)
and radial profiles with different "binning".
Then GFlash fast simulation can be "tuned" via modification
@@ -24,12 +24,12 @@ PHYSICS LIST
The Physics list factory is used in this example.
The default physics list is FTFP_BERT which has EM opt0.
Additionally the G4FastSimulationPhysics physics
Additionally, the G4FastSimulationPhysics physics
constructor was created to insert the G4FastSimulationManager Process
that is making the interface between the fast simulation and the tracking.
THe default PHYSICS list may be changed via setting of the PHYSLIST environment
variable, e.g:
The default PHYSICS list may be changed via setting of the PHYSLIST environment
variable, e.g.:
export PHYSLIST=FTFP_BERT_EMZ # for FTFP_BERT with opt 4 EM physics
@@ -45,22 +45,29 @@ Geometry, sensitive detector and hits are defined respectively in:
ExGflashSensitiveDetector
ExGflashHit
Materials can be choosen from Nist Materials: G4_Air G4_WATER ...
eg: /exgflash/det/setMat G4_PbWO4 see also: csi1.mac
The geometry can be redefined in PreInit state via commands:
/exgflash/det/setNbCrys ncrys
/exgflash/det/setCrysWidth width [cm]
/exgflash/det/setCrysLength length [cm]
Materials can be chosen from Nist Materials: G4_Air G4_WATER ...
e.g.: /exgflash/det/setMat G4_PbWO4 see also: csi.mac
HIT SCORING
-----------
The virtual cylinder sliced longitudinally (slice) and radially (ring) was used.
The size of the slices and rings are expressed in radiation
length units and can be changed.
eg: /exgflash/det/setLbin 20 1. ---> 20 slices of 1. radl
/exgflash/det/setRbin 5 0.25 ---> 5 rings of 0.25 radl
length units and Moliere radius (Rm) units for rings. The number
of division and division size in fraction of units and can be changed.
e.g.: /exgflash/det/setLbin 20 1. ---> 20 slices of 1. radl
/exgflash/det/setRbin 5 0.25 ---> 5 rings of 0.25 Rm
(MaxBin = 500 in both directions)
In ExGflashEventAction class the arrays corresponded slices and rings was
created and filled with hists information. This arrays was use to fill
created and filled with hists information. These arrays where use to fill
histograms later.
VISUALIZATION
@@ -68,7 +75,7 @@ VISUALIZATION
The Visualization Manager is set in the main().
The initialization of the drawing is done via the commands /vis/...
in the macro vis.mac. To get visualization:
in the macro vis.mac. To get visualization use:
/control/execute vis.mac
@@ -115,11 +122,18 @@ MACROS
------
The macros to run in batch mode:
test.mac - default macro for example testing
test.mac - default macro for example testing, it show how to use different application commands: redefine the histograms and profiles, change the geometry and material, etc
run01.mac - show how redefine the histograms
csi.mac - like test.mac but produce profiles in CsI Material
csi1.mac - macro which produce profiles in CsI Material
testLong.mac - make the runs with more statistics using default geometry and histograms setting, the material is G4_PbWO4
test0.mac - profile comparison, long run without GFLASH
test1.mac - profile comparison, long run with GFLASH on
csiLong.mac - show how to run testLong.mac with different material (CsI)
Each macro executes two runs with fast simulation flag ON (the output file
name is set to gflash01.root ) and OFF (the output file name is set to gflash00.root )
In addition, the ROOT macros cmpL.C, cmpR.C and cmpE.C file are provided,
which can be used to draw superimposed full and fast histograms for radial
and lateral profiles and also the normalized total energy deposition
in calorimeter.