Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
@@ -1,17 +0,0 @@
#------------------------------------------------------------------------------
# CMakeLists.txt
# Module : G4had_string_frag
# Package: Geant4.src.G4processes.G4hadronic.G4hadronic_models.G4had_string.G4had_string_frag
#
# CMakeLists.txt for building a single granular library.
#
# Generated on : 24/9/2010
#
#
#------------------------------------------------------------------------------
if(GEANT4_BUILD_GRANULAR_LIBS)
include(Geant4MacroLibraryTargets)
GEANT4_GRANULAR_LIBRARY_TARGET(COMPONENT sources.cmake)
endif()
@@ -21,10 +21,7 @@ CPPFLAGS += -I$(G4BASE)/global/management/include \
-I$(G4BASE)/processes/management/include \
-I$(G4BASE)/processes/hadronic/management/include/ \
-I$(G4BASE)/processes/hadronic/util/include \
-I$(G4BASE)/processes/hadronic/processes/include \
-I$(G4BASE)/processes/hadronic/cross_sections/include \
-I$(G4BASE)/processes/hadronic/models/management/include \
-I$(G4BASE)/processes/hadronic/models/util/include \
-I$(G4BASE)/processes/hadronic/models/parton_string/management/include \
-I$(G4BASE)/particles/management/include \
-I$(G4BASE)/particles/leptons/include \
@@ -7,13 +7,23 @@
History file for hadronic/models/parton_string/hadronization directory
-------------------------------------------------------------
This file should be used to summarize modifications introduced in the
This file should be used to summarize modifications introduced in the
code and to keep track of all tags.
---------------------------------------------------------------
* Please list in reverse chronological order (last date on top)
---------------------------------------------------------------
16-Apr-2021 B. Morgan (had-hadronization-V10-07-01)
- Migrate build to modular CMake API
13-Apr-2021 A. Ribon (had-hadronization-V10-07-00)
- GNUmakefile, sources.cmake : removed the subdirectories
hadronic/models/management and hadronic/models/util
(that have been now deleted, with their classes moved to
hadronic/util and hadronic/management).
Removed also the useless dependency to hadronic/process.
19-Oct-2020 A. Ribon (had-hadronization-V10-06-08)
- G4VLongitudinalStringDecay : fix by Vladimir Uzhinsky in the method
ProduceOneHadron to remove an inconsistency in the treatment of
@@ -42,7 +52,7 @@ for various particles produced in pp interactions at 158 GeV/c):
rest frame) when the string direction is -1.
- G4FragmentingString : erased some inconsistencies.
- G4VLongitudinalStringDecay : clean-up.
08-Sep-2020 A. Ribon (had-hadronization-V10-06-05)
- G4VLongitudinalStringDecay : made the logic clearer for Coverity,
but without any effect on the results.
@@ -91,12 +101,12 @@ for various particles produced in pp interactions at 158 GeV/c):
23-Apr-2020 V. Ivanchenko (had-hadronization-V10-06-01)
- G4VLongitudinalStringDecay, G4QGSMFragmentation
G4LundStringFragmentation - fixed Coverity warnings - if fragmentation
G4LundStringFragmentation - fixed Coverity warnings - if fragmentation
at low energy is not possible always return flag "false"; initialise
with nullptr and not NULL
24-Feb-2020 V. Ivanchenko (had-hadronization-V10-06-00)
- G4VLongitudinalStringDecay, G4ExcitedStringDecay,
- G4VLongitudinalStringDecay, G4ExcitedStringDecay,
G4LundStringFragmentation - inherit from G4HadronicInteraction
destruction of these models end of run by hadron model store;
removed implementations of private operators.
@@ -105,12 +115,12 @@ for various particles produced in pp interactions at 158 GeV/c):
- G4ExcitedStringDecay : protection in the sampling of resonance masses
against values below threshold.
- G4LundStringFragmentation, G4QGSMFragmentation : in the method SplitEandP,
added a check that a string can be converted to an existing hadron
added a check that a string can be converted to an existing hadron
(else a null momentum is returned).
14-Nov-2019 A. Ribon (had-hadronization-V10-05-03)
- G4VLongitudinalStringDecay : forgotten initialization of c-cbar and b-bbar
pair production for kinks or gluons.
pair production for kinks or gluons.
07-Nov-2019 A. Ribon (had-hadronization-V10-05-02)
- Implementation, made by Vladimir Uzhinsky, of the fragmentation functions
@@ -150,8 +160,8 @@ for various particles produced in pp interactions at 158 GeV/c):
26-Oct-2018 V. Uzhinsky (had-hadronization-V10-04-05)
- G4LundStringFragmentation : tuning of strange - anti-strange probability
production as a function of energy to describe NA61/SHINE 31 GeV/c p-C
data on K+ / K- production. Decreased also the Lambda0 production for
production as a function of energy to describe NA61/SHINE 31 GeV/c p-C
data on K+ / K- production. Decreased also the Lambda0 production for
NA61/SHINE 158 GeV/c and 31 GeV/c p-C : for the former good agreement,
while for the latter the simulation underestimates the data.
- G4QGSMFragmentation : new algorithm for last string decay a-la Lund
@@ -174,7 +184,7 @@ for various particles produced in pp interactions at 158 GeV/c):
- Improved versions of LUND and QGS fragmentations.
07-Dec-2017 A. Ribon (had-hadronization-V10-04-00)
- Brought back the development version of hadronization
- Brought back the development version of hadronization
(as it was in had-hadronization-V10-03-07).
27-Oct-2017 A. Ribon (had-hadronization-V10-03-09)
@@ -212,7 +222,7 @@ for various particles produced in pp interactions at 158 GeV/c):
13-Jan-2017 V. Uzhinsky (had-hadronization-V10-03-03)
- Re-organized and cleaned G4LUNDStringFragmentatio.
The variant is tuned using NA49 exp. data on pp->p/pi/K +X.
The variant is tuned using NA49 exp. data on pp->p/pi/K +X.
14-Dec-2016 A. Ribon (had-hadronization-V10-03-02)
- After the release G4 10.3, with "stable" version, this tag brings back
@@ -267,13 +277,13 @@ for various particles produced in pp interactions at 158 GeV/c):
13-June-2016 V. Uzhinsky (had-hadronization-V10-02-06)
G4LundStringFragmentation::Sample4Momentum() was improved.
Average transvers momentum is set to 475 MeV for mesons and baryons,
and <Pt> for barion 3/2 production - 800 MeV/c.
and <Pt> for barion 3/2 production - 800 MeV/c.
G4LundStringFragmentation::GetLightConeZ - alund=0.233 GeV^2 for strange
meson produced by a quark, and alund=0.175 GeV^2 for q->baryon.
di-quark fragmentation function into baryon (1/2) z^1.5, and z^(-0.25)
for baryon (3/2).
for baryon (3/2).
Note: the tag was made accidentally in the wrong directory (src/).
6-June-2016 V. Uzhinsky (had-hadronization-V10-02-05)
@@ -285,7 +295,7 @@ for various particles produced in pp interactions at 158 GeV/c):
and <Pt> for barion 3/2 production - 900 MeV/c.
1-June-2016 V. Uzhinsky (had-hadronization-V10-02-03)
Fine tuning of G4LundStringFragmentation.cc. <Pt> of mesons created at
Fine tuning of G4LundStringFragmentation.cc. <Pt> of mesons created at
quark fragmentation is decreased. <Pt> of baryons created at quark and
diquark is increased. Fragmentation functions of qq-> B(1/2) and B(3/2)
are implemented correctly.
@@ -313,7 +323,7 @@ for various particles produced in pp interactions at 158 GeV/c):
5-Aug-2015 A. Ribon (had-hadronization-V10-01-07)
- G4VLongitudinalStringDecay, G4LundStringFragmentation, G4QGSMFragmentation:
replaced std::exp, std::log and std::pow with the faster
replaced std::exp, std::log and std::pow with the faster
G4Exp, G4Log and G4Pow, respectively.
This changes the random number sequence.
@@ -324,9 +334,9 @@ for various particles produced in pp interactions at 158 GeV/c):
4-June-2015 V. Uzhinsky (had-hadronization-V10-01-05)
- G4QGSMFragmentation::SplitEandP a bug is fixed which led to energy-momentum
non-conservation quite rare.
non-conservation quite rare.
FragmentationMass(NewString,&G4HadronBuilder::BuildHighSpin);
was changed into
was changed into
FragmentationMass(NewString,&G4HadronBuilder::BuildLowSpin);
See Uzhi 03.06.2014
@@ -337,8 +347,8 @@ for various particles produced in pp interactions at 158 GeV/c):
29-May-2015 V. Uzhinsky (had-hadronization-V10-01-03)
- G4LundStringFragmentation - a bug led to FPE is erased. It was in
G4LundStringFragmentation::FragmentString --
if(!IsFragmentable(&aString)) // produce 1 hadron
G4LundStringFragmentation::FragmentString --
if(!IsFragmentable(&aString)) // produce 1 hadron
was applied to qq- anti_qq string with mass 1951 MeV, and there was an attempt
to produce 2 baryons without of a checking baryon masses. I am afraid
that it was presented before.
@@ -357,7 +367,7 @@ for various particles produced in pp interactions at 158 GeV/c):
28-Nov-2014 V. Uzhinsky (had-hadronization-V10-00-13)
- G4LundStringFragmentation - charged baryon number conservation is fixed
for K-nucleus interactions
for K-nucleus interactions
6-Nov-2014 V. Uzhinsky (had-hadronization-V10-00-12)
- Warning message is erased.
@@ -367,16 +377,16 @@ for various particles produced in pp interactions at 158 GeV/c):
instead of top directory - hadronization.
3-Nov-2014 V. Uzhinsky (had-hadronization-V10-00-10)
- G4ExcitedStringDecay.cc Restoration of the initial string system is addded
- G4ExcitedStringDecay.cc Restoration of the initial string system is addded
for a correct repeatition of calculations in the case when hadronization is fault.
- G4LundStringFragmentation.cc Fragmentation functions for qq -> B are set as
- G4LundStringFragmentation.cc Fragmentation functions for qq -> B are set as
f(z)~ Const for all baryons.
20-Oct-2014 A.Ribon (had-hadronization-V10-00-09)
20-Oct-2014 A.Ribon (had-hadronization-V10-00-09)
- G4VLongitudinalStringDecay.cc : mixing between the vector mesons
rho0 and omega have been changed from 50% (rho0) - 50% (omega) to
100% (rho0) - 0% (omega), in order to reduce the pi0 production.
100% (rho0) - 0% (omega), in order to reduce the pi0 production.
Expected little effects in thin-target, and significant effects
in hadronic showers in calorimeters.
@@ -387,12 +397,12 @@ for various particles produced in pp interactions at 158 GeV/c):
re-written. Ionk algorithm is inserted for sampling light-cone momentum
fraction, z. Parameters of the fragmentation were tuned. They will be
improved after a revision of the QGSM string creation algorithm.
- The algorith of G4QGSMFragmentation::SplitEandP was improved. It is
- The algorith of G4QGSMFragmentation::SplitEandP was improved. It is
faster now.
29-Sep-2014, V.Uzhinsky (had-hadronization-V10-00-07)
- Essential improvement of hadronization.
- Parameters and string fragmentation functions of
- Parameters and string fragmentation functions of
G4LundStringFragmentation.cc were tuned, assuming that the weight of
uu-diquarks in protons is 1/6.
- Threatment of string decay direction was improved in G4FragmentingString.cc
@@ -415,7 +425,7 @@ for various particles produced in pp interactions at 158 GeV/c):
- Bug is fixed in G4LundStringFragmentation.cc for anti-diquark-diquark strings.
- Anisotropic decay is only left in G4LundStringFragmentation::Sample4Momentum for
a sampling of momenta of 2 last produced hadrons for all strings. Before this,
quark-diquark strings were decayed isotropically. It is improve a little bit
quark-diquark strings were decayed isotropically. It is improve a little bit
proton spectra.
25-May-2014, V. Uzhinsky (had-hadronization-V10-00-03)
@@ -440,7 +450,7 @@ for various particles produced in pp interactions at 158 GeV/c):
4-dimensional vector in G4LundStringFragmentation.cc .
29-July-2013, H.Kurashige (had-hadronization-V09-06-01)
- Remove inclusion of G4ShortLivedTable.hh (G4VLongitudinalStringDecay.cc)
- Remove inclusion of G4ShortLivedTable.hh (G4VLongitudinalStringDecay.cc)
02-May-2013, A.Ribon (had-hadronization-V09-06-00)
- For thread safety, replaced CLHEP::RandFlat with G4RandFlat in
@@ -464,12 +474,12 @@ for various particles produced in pp interactions at 158 GeV/c):
- fix warnings on shadowed variables, affected G4LundStringFragmentation.cc
25-May-2012, G.Folger (had-hadronization-V09-05-02)
- make copy ctor, =, == , and != operators private without implementation,
- make copy ctor, =, == , and != operators private without implementation,
fixing coverity warnings
21 May 2012, Vladimir Uzhinsky (had-hadronization-V09-05-01)
- Probabilities of s-sbar quark pairs and qq-qqbar diquark pairs
are changed in G4LundStringFragmentation for a description of
are changed in G4LundStringFragmentation for a description of
the NA49 collaboration data.
12-Apr-2012, G.Folger (had-hadronization-V09-05-00)
@@ -490,14 +500,14 @@ for various particles produced in pp interactions at 158 GeV/c):
to make the code easier to understand and maintain.
02 Nov 2011, Alberto Ribon, svn rev 53955
- Made public the virtual method G4LundStringFragmentation::FragmentString.
- Made public the virtual method G4LundStringFragmentation::FragmentString.
Clean up also old commented lines in two G4LundStringFragmentation
methods: StopFragmenting and FragmentString.
1 Nov 2011, Gunter Folger, svn rev 53895
- G4LundStringFragmentation: simplify GetLightConeZ()
29 Sep 2011, Gunter Folger, svn rev 52604
29 Sep 2011, Gunter Folger, svn rev 52604
- G4LundStringFragmentation: Cleanup indentation
19 Jul 2011, Gunter Folger (had-hadronization-V09-04-02)
@@ -508,7 +518,7 @@ for various particles produced in pp interactions at 158 GeV/c):
One outstanding warning in G4LundStringFragmentation::Splitlast().
3 Nov 2010, Gunter Folger (had-hadronization-V09-03-02)
- fix minor coverity warnings in G4HadronBuilder
- fix minor coverity warnings in G4HadronBuilder
22-September-2010 V. Uzhinsky (had-hadronization-V09-03-01)
--------------------------------------------------------------
@@ -516,7 +526,7 @@ for various particles produced in pp interactions at 158 GeV/c):
20-September-2010 V. Uzhinsky
------------------------------
- Phase space restrictions are introduced at small mass string
- Phase space restrictions are introduced at small mass string
fragmentation.
5-August-2010 V. Uzhinsky
@@ -524,7 +534,7 @@ for various particles produced in pp interactions at 158 GeV/c):
- Small re-organization is done in G4ExcitedStringDecay.hh. Inline
methods were moved to G4ExcitedStringDecay.cc.
- An action is introduced in FragmentStrings. It acts when
- An action is introduced in FragmentStrings. It acts when
EnergyAndMomentumCorrector can not be done due to large sum masses
of produced hadrons. This led to energy-momentum violation. Now
string fragmentation is repeted 100 times in a bad case.
@@ -555,20 +565,20 @@ for various particles produced in pp interactions at 158 GeV/c):
- remove temporary workaround - fix is now in QGS
- change pt sampling in G4LundStringFragmentation to avoid near endless
loop; this should improve overall performance slightly.
Affected G4VLongitudinalStringDecay, where SampleQuarkPt() is
implemented; affected .hh and .cc for new optional argument of max Pt
Affected G4VLongitudinalStringDecay, where SampleQuarkPt() is
implemented; affected .hh and .cc for new optional argument of max Pt
to SampleQuarkPt()
18-May-2009 Gunter Folger (had-hadronization-V09-02-00)
---------------------------------------------------------------------
- reset formatting changes by MK with tags hadr-prtn-hadr-V09-02-xx
- temporary workaround for wrong PDG codes created on wrong input from QGS
- temporary workaround for wrong PDG codes created on wrong input from QGS
when used for e.g. antiproton.
2-May 2007 Gunter Folger (had-hadronization-V08-02-03)
---------------------------------------------------------------------
- G4ExcitedStringDecay.hh: protect againt divide by 0 when KTsum1.e() is 0.
- G4ExcitedStringDecay.hh: protect againt divide by 0 when KTsum1.e() is 0.
24-April 2007 Gunter Folger (had-hadronization-V08-02-02)
---------------------------------------------------------------------
- Seperate FTF and QGS fragmentation dir methods where V.Uzhinsky
@@ -576,9 +586,9 @@ for various particles produced in pp interactions at 158 GeV/c):
2-March 2007 Gunter Folger (had-hadronization-V08-02-01)
---------------------------------------------------------------------
- G4ExcitedStringDecay::EnergyAndMomentumCorrector no longer causes Exception
- G4ExcitedStringDecay::EnergyAndMomentumCorrector no longer causes Exception
when no converging. Add more info when failing. Return correct status.
24-Jan 2007 Gunter Folger (had-hadronization-V08-02-00)
--------------------------------------------------------------
- G4ExcitedStringDecay::EnergyAndMomentumCorrector :
@@ -1,67 +1,32 @@
#------------------------------------------------------------------------------
# sources.cmake
# Module : G4had_string_frag
# Package: Geant4.src.G4processes.G4hadronic.G4hadronic_models.G4had_string.G4had_string_frag
#
# Sources description for a library.
# Lists the sources and headers of the code explicitly.
# Lists include paths needed.
# Lists the internal granular and global dependencies of the library.
# Source specific properties should be added at the end.
#
# Generated on : 24/9/2010
#
#
#------------------------------------------------------------------------------
# - G4had_string_frag module build definition
#
# Define the Geant4 Module.
#
GEANT4_DEFINE_MODULE(NAME G4had_string_frag
HEADERS
G4ExcitedStringDecay.hh
G4FragmentingString.hh
G4HadronBuilder.hh
G4LundStringFragmentation.hh
G4QGSMFragmentation.hh
G4VLongitudinalStringDecay.hh
SOURCES
G4ExcitedStringDecay.cc
G4FragmentingString.cc
G4HadronBuilder.cc
G4LundStringFragmentation.cc
G4QGSMFragmentation.cc
G4VLongitudinalStringDecay.cc
GRANULAR_DEPENDENCIES
G4baryons
G4bosons
G4geometrymng
G4globman
G4had_mod_man
G4had_mod_util
G4had_string_man
G4hadronic_mgt
G4hadronic_proc
G4hadronic_util
G4hadronic_xsect
G4hepnumerics
G4ions
G4leptons
G4materials
G4mesons
G4partman
G4procman
G4shortlived
G4track
G4volumes
GLOBAL_DEPENDENCIES
G4geometry
G4global
G4materials
G4particles
G4track
LINK_LIBRARIES
)
# List any source specific properties here
geant4_add_module(G4had_string_frag
PUBLIC_HEADERS
G4ExcitedStringDecay.hh
G4FragmentingString.hh
G4HadronBuilder.hh
G4LundStringFragmentation.hh
G4QGSMFragmentation.hh
G4VLongitudinalStringDecay.hh
SOURCES
G4ExcitedStringDecay.cc
G4FragmentingString.cc
G4HadronBuilder.cc
G4LundStringFragmentation.cc
G4QGSMFragmentation.cc
G4VLongitudinalStringDecay.cc)
geant4_module_link_libraries(G4had_string_frag
PUBLIC
G4globman
G4had_string_man
G4hadronic_mgt
G4hadronic_util
G4hepgeometry
G4partman
PRIVATE
G4heprandom
G4procman
G4shortlived
G4track)