# Category hadr-string-diff History

See `CONTRIBUTING.rst` for details of **required** info/format for each entry,
which **must** added in reverse chronological order (newest at the top).
It must **not** be used as a substitute for writing good git commit messages!

-------------------------------------------------------------------------------

## 2024-07-18 Alberto Ribon (hadr-string-diff-V11-02-00)
- G4FTFParameters : renamed method SetElastis as SetElastic.
  This does not have any effect - the random sequence stays the same.
  This typo in the name of a method is present in Geant4 since many years.
  Thanks to Marc Verderi for spotting it.

## 2023-10-26 Alberto Ribon (hadr-string-diff-V11-01-00)
- G4FTFTunings : introduced a new FTF tune meant to overcome the problem of
  too optimistic (i.e. narrow) pion shower energy resolutions in ATLAS
  calorimeters with respect to test-beam data.

## 2022-11-26 Gabriele Cosmo (hadr-string-diff-V11-00-12)
- Fixed compilation warnings for implicit type conversions on macOS/XCode 14.1.

## 2022-11-13 Alberto Ribon (hadr-string-diff-V11-00-11)
- G4DiffractiveSplitableHadron : Vladimir Uzhinsky's fix of rare large energy
  violations seen with FTF when dealing with charm and bottom hadron nuclear
  interactions.

## 2022-11-11 Alberto Ribon (hadr-string-diff-V11-00-10)
- G4FTFModel : in the methods AdjustNucleonsAlgorithm_beforeSampling and
  ComputeNucleusProperties, before calling either G4HyperNucleiProperties
  or G4IonTable to get the mass of the residual, check if the residual
  is a single nucleon (or lambda) or a pair of nucleons (or lambdas);
  moreover, in the same two methods, the absolute value of the nuclear 
  residual charge is used, to take into account the case of anti-nuclei
  projectiles.

## 2022-11-04 Alberto Ribon (hadr-string-diff-V11-00-09)
- G4FTFModel : Vladimir Uzhinsky's extension of the FTF model to deal with
  the annihilation of light anti-hypernuclei.
- G4FTFAnnihilation : Vladimir Uzhinsky's reorganization of the two methods
  Create2QuarkAntiQuarkStrings and Create3QuarkAntiQuarkStrings in order
  to better handle unphysical configurations that need to be rejected.
  The algorithm has been also speed-up by changing the order of the sampling:
  light-cone variables are sampled first, then transverse momenta.
  Moreover, the positions of quark and anti-quark in strings have been
  corrected: this is expected to improve the kinematical properties of the
  produced hadrons.

## 2022-10-27 Julia Yarba (hadr-string-diff-V11-00-08)
- Minor cleanup in tune naming

## 2022-10-27 Julia Yarba (hadr-string-diff-V11-00-07)
- G4FTFTunings - rename tune2022-v0 (#1) to baryon-tune2022-v0;
  add pion-tune2022-v0 (#2) and combined-tune2022-v0 (#3, combo of #1&#2)

## 2022-10-19 Alberto Ribon (hadr-string-diff-V11-00-07)
- G4DiffractiveExcitation : Vladimir Uzhinsky's improvements in the method
  ExciteParticipants_doChargeExchange.
  For a projectile meson in the case of quark exchange, a more correct ratio
  between pseudo-scalar and vector mesons is included: the pion after the
  exchange can transform into pi0, eta, eta', rho0 and omega mesons.
  This allows to improve the description of leading particle spectra in
  meson-nucleon interactions.

## 2022-08-31 Vladimir Ivanchenko (hadr-string-diff-V11-00-06)
- G4FTFTunings - added extra braces at initialisation of std::array to
    allow CMSSW compile Geant4

## 2022-08-16 Gabriele Cosmo (hadr-string-diff-V11-00-05)
- Added missing dependency on G4intercoms in sources.cmake and GNUmakefile.

## 2022-08-02 Alberto Ribon (hadr-string-diff-V11-00-04)
- G4FTFTuningsMessenger : created new messenger class for G4FTFTunings.
  This allows to avoid the use of G4FTFTunings in G4HadronicParametersMessenger,
  which created a circular dependency between G4hadronic_util and G4had_string_diff.
- G4FTFTunings : updated to use G4FTFTuningsMessenger instead of 
  G4HadronicParameterMessenger.

## 2022-07-28 Alberto Ribon (hadr-string-diff-V11-00-03)
- G4FTFTunings : created a new (singleton) class to allow the possibility
  to specify alternative sets of FTF parameters, called "tunes".
  Moved into this class some special, internal classes - useful for tuning
  of parameters - that were originally in G4FTFParameters.
- G4FTFParameters : use of the new G4FTFTunings class; instead of having
  one, single set of parameters, it has now an array of set of parameters,
  with each element corresponding to one specific "tune";
  clean-up of the class by moving to G4FTFTunings some code originally
  present in G4FTFParameters.
These changes should not alter any results, nor even the random sequence.

## 2021-06-09 Laurie Nevay (hadr-string-diff-V11-00-02)
- Allow control of diffraction for baryon number greater than 10
  in G4FPFParameters. The option comes from G4HadronicParameters and
  the default behaviour remains the same (off).

## 2022-06-07 Alberto Ribon (hadr-string-diff-V11-00-01)
Fixes made by Vladimir Uzhinsky to get isotropic distributions in
annihilations at rest:
- G4DiffractiveSplitableHadron : set proper parton index.
- G4DiffractiveExcitation : in the CreateStrings method, take into account
  that strings are created in G4FTFAnnihilation; by default, the method 
  CreateStrings creates a string from a wounded nucleon/hadron, but this 
  is not needed in the case of annihilation.
- G4FTFAnnihilation : splitting of hadron is removed; fixed bugs in the 
  calculations of kinematical properties; set quark momenta at string ends
  to properly account for string order on rapidity.

## 2021-12-10 Ben Morgan (hadr-string-diff-V11-00-00)
- Change to new Markdown History format

---

# History entries prior to 11.0

10-Nov-2021 A. Ribon          (hadr-string-diff-V10-07-04)
- G4FTFModel, G4FTFParticipants : Vladimir Uzhinsky interface extension
  of these two classes to provide the following information:
  number of projectile spectator nucleons, number of target spectator
  nucleons, number of nucleon-nucleon collisions, and impact parameter
  (in the latter case, there is also the possibility - switched off by
  default - to set the range from which to sample the square of the
  impact parameter).

27-Oct-2021 A. Ribon          (hadr-string-diff-V10-07-03)
- G4FTFModel : extended for projectile hypernuclei and anti-hypernuclei.

13-Jul-2021 A. Ribon          (hadr-string-diff-V10-07-02)
- G4FTFParameters : improved initialization in the constructor of
  G4FTFParamCollection, as suggested by Coverity.

16-Apr-2021 B. Morgan         (hadr-string-diff-V10-07-01)
- Migrate build to modular CMake API

13-Apr-2021 A. Ribon          (hadr-string-diff-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).
  Clean-up of old directories no longer present.

14-Oct-2020 V. Ivanchenko     (hadr-string-diff-V10-06-08)
- G4FTFModel - attempt to fix crash rarely observed in pion+proton
  reaction: removed commented lines and unused variables; added
  tolerance 1.e-10 for numerical computation; extended debug printout;
  replace in all loops "i++" -> "++i"; cleaned-up sampling of Pt
  for residual nucleons - limit argument for G4Exp by 200 instead of 1e+9

29-Sep-2020 A. Ribon          (hadr-string-diff-V10-06-07)
- G4DiffractiveExcitation : Vladimir Uzhinsky's implementation of a
  new splitting of excited hadrons into quark-antiquark or quark-diquark
  in the method CreateStrings.
  Other code improvements of this class were also introduced by
  Vladimir Uzhinsky.

21-Sep-2020 J. Yarba          (hadr-string-diff-V10-06-06)
- G4FTFParameters.cc : extend FTF configuration interface
  to include parameters of quark exchange with and/or without
  excitation, for baryon and pion projectiles

16-Sep-2020 A. Ribon          (hadr-string-diff-V10-06-05)
- G4FTFModel : quasi-elastic is not applied any longer when the target
  nucleus has one nucleon and the projectile hadron is not an ion.
  This avoids to double count elastic scattering (as reported by
  by Daria Prokhorova of NA61/SHINE in 158 GeV/c proton interactions
  on liquid hydrogen: see bug report #2274).

08-Sep-2020 A. Ribon          (hadr-string-diff-V10-06-04)
- G4FTFAnnihilation : added initialization of 2-dimensional arrays as
  suggested by Coverity. Used consistently pre-increment instead of
  post-increment.

28-Jul-2020 A. Ribon          (hadr-string-diff-V10-06-03)
- G4DiffractiveExcitation : add protection against inexisting in Geant4
  excited hyperon states (Sigma* and Xi*).
- G4FTFAnnihilation : removed useless check against inexisting in
  either PDG (Lambda*) or Geant4 (Sigma* and Xi*) excited hyperon
  states.

24-Jul-2020 A. Ribon          (hadr-string-diff-V10-06-02)
- G4DiffractiveExcitation : extended for handling heavy (charm and
  bottom) hadrons; introduced also a new pre-processor option for
  debugging heavy hadrons, switched off by default.

08-Mar-2020 V. Ivanchenko     (hadr-string-diff-V10-06-01)
- G4FTFModel, G4FTFParticipants - clean-up: removed unused methods, delete
     operators, use C++11 keywords

07-Dec-2019 V. Ivanchenko     (hadr-string-diff-V10-06-00)
- G4FTFParameters:
  o  Fixed division by zero (Coverity report) due to wrong protection
     in previous MR 05-09

28-Nov-2019 A. Ribon          (hadr-string-diff-V10-05-10)
- G4FTFParameters: set parameters of a string kink in the constructor
  (instead of setting it at each interaction, causing memory leaks).
  Notice that string kinks are currently switched off, so this fix does
  not affect any physics result.

26-Nov-2019 V. Ivanchenko     (hadr-string-diff-V10-05-09)
- G4FTFParameters:
  o  Added protection for division by zero due to zero elastic x-section

19-Nov-2019 A. Ribon          (hadr-string-diff-V10-05-08)
- G4FTFParameters:
  o  Diffraction minimal mass is now correctly set in GeV (instead of MeV),
     for hadron projectiles different from pions, kaons, nucleons and
     anti-nucleons, in the method InitForInteraction.
  o  In the method GetMinMass, fixed a bug in the computation of the
     quark type (which affects the estimated minimal string mass produced
     in diffraction); added also protections to make sure that the quark
     type is always one of the five considered (u, d, s, c, b).
  o  Absolute (rather than signed) charge for antibaryon is now correctly
     taken in the method InitForInteraction.

15-Nov-2019 V. Ivanchenko     (hadr-string-diff-V10-05-07)
- G4FTFParameters: fixed creation/destruction/use of Glauber-Gribov
    cross section

14-Nov-2019 A. Ribon          (hadr-string-diff-V10-05-06)
- G4FTFParameters: fixed memory leak.
- G4ElasticHNScattering: added a few protections to avoid rare cases of
  floating point exceptions.

07-Nov-2019 A. Ribon          (hadr-string-diff-V10-05-05)
- G4FTFParameters: Vladimir Uzhinsky replaced the Chips hadron-nucleon
  (total and elastic) cross sections with the Barashenkov-Glauber-Gribov (BGG)
  cross sections for ordinary (i.e. non-heavy) hadrons.
  Note: for heavy hadrons, only BGG cross section are available and used.

17-Sep-2019 A. Ribon          (hadr-string-diff-V10-05-04)
- Vladimir Uzhinsky improvements of FTF model for nucleus-nucleus
  interactions (with negligible effects for hadron-nucleus).
- G4DiffractiveExcitation: the range of excited hadron masses has been
  extended, starting from ground-state values (before it was starting
  from current hadron masses). This is the main improvement.
- G4ElasticHNScattering: improvement and simplification of the algorithm
  of elastic scattering (before the masses of resonances were sampled,
  now it is not needed any longer).
- G4FTFModel: improvement of the algorithm of string creation.
- Deleted G4DiffractiveHHScatterer : not used anywhere.

01-Aug-2019 A. Ribon          (hadr-string-diff-V10-05-03)
- G4FTFModel: minor improvement in the annihilation at rest of light
  anti-ions to avoid the unphysical production of (target and projectile)
  fragments at rest.

08 July 2019 J. Yarba         (hadr-string-diff-V10-05-02)
- G4FTFParameters: extend FTF configuration interface to include parameters
                   for pion projectile

06-Mar-2019 A. Ribon          (hadr-string-diff-V10-05-01)
- G4FTFModel: fixed a memory leak in G4FTFModel::GetStrings() reported as
  bug #2138.

26-Feb-2019 J. Yarba          (hadr-string-diff-V10-05-00)
- Correct FTF_NUCDESTR_P1_ADEP_TGT parameter (fNuclearTgtDestructP1_ADEP)
  that has accidentally been made "fixed". No changes in the random sequence.
- Minor cleanups

20-Nov-2018 A. Ribon          (hadr-string-diff-V10-04-15)
-  G4FTFParameter: minor Coverity fix, no changes in the random sequence.

20-Nov-2018 A. Ribon          (hadr-string-diff-V10-04-14)
-  Minor clean-up: no changes in the random sequence.

09-Nov-2018 G. Cosmo          (hadr-string-diff-V10-04-13)
-  Fixed few printout typos.

05-Nov-2018 V. Uzhinsky       (hadr-string-diff-V10-04-12)
-  G4ExcitedStringVector* G4FTFModel::GetStrings() will return the Vector
   with size()=0 in a bad case for FTF. See line 292.

16-Oct-2018 A. Ribon          (hadr-string-diff-V10-04-11)
-  Coverity fixes and clean-up: no changes to the results.

22-Jun-2018 A. Ribon          (hadr-string-diff-V10-04-10)
-  G4DiffractiveExcitation, G4FTFAnnihilation, G4FTFModel : technical
   change to avoid silent problems of symbol resolutions leading to
   segmentation faults (without useful debugging information).
   No change in the random sequence.

20-Jun-2018 A. Ribon          (hadr-string-diff-V10-04-09)
-  G4FTFAnnihilation : fix (by Vladimir Uzhinsky) to get flat cos(theta)
   and phi distributions for antiproton annihilation at rest.
   Added also a protection for the evaluation of rapidity.

12-Jun-2018 A. Ribon          (hadr-string-diff-V10-04-08)
-  G4FTFAnnihilation : code improvement of the Annihilate method
   (no changes in physics output, but with possible differences
    in the the random sequence, due to numerical effects caused by
    re-ordering of operations).

05-Jun-2018 A. Ribon          (hadr-string-diff-V10-04-07)
-  G4FTFModel, G4DiffractiveExcitation : small code improvements
   (no changes in physics output, but with possible differences
    in the the random sequence, due to numerical effects caused by
    re-ordering of operations).

31-May-2018 A. Ribon          (hadr-string-diff-V10-04-06)
-  G4DiffractiveExcitation : code improvement of the ExciteParticipants method
   (no changes in the random sequence).

24-May-2018 A. Ribon          (hadr-string-diff-V10-04-05)
-  G4FTFModel : small technical fix (replaced "class" with "struct" in the
   header file) to the previous tag to avoid a compilation warning on Mac.

24-May-2018 A. Ribon          (hadr-string-diff-V10-04-04)
-  G4FTFModel : code improvement of the AdjustNucleons method
   (no changes in the random sequence except for the trivial fix on the
    "NumberOfTries" counter, which was increased twice).

22-Mar-2018 J. Yarba          (hadr-string-diff-V10-04-03)
- Turn to false switches for A-dep in nuclear destruction for baryon projectile
  (lines 136 and 138 in G4FTFParameters.cc)
- Uncomment checks for these switches in the code (lines 1158-1161 & 1172-1175
  in G4FTFParameters.cc)

19-Dec-2017 V. Uzhinsky       (hadr-string-diff-V10-04-02)
-  Correct calculation of nuclear residual excitation energy is implemented.
   Fine tuning of the model parameters has been dome.

12-Dec-2017 V. Uzhinsky       (hadr-string-diff-V10-04-01)
-  Cleaned and merged version of FTF (merged "stable" and developer versions).

07-Dec-2017 A. Ribon          (hadr-string-diff-V10-04-00)
-  Brought back the development version of FTF
   (as it was in hadr-string-diff-V10-03-05).

20-Nov-2017 A. Ribon          (hadr-string-diff-V10-03-10)
- G4FTFAnnihilation : improved anisotropy of secondary pions in annihilation.

08-Nov-2017 A. Ribon          (hadr-string-diff-V10-03-09)
-  Minor clean-up and indentation: no changes in the random sequence.

1-Nov-2017 J. Yarba           (hadr-string-diff-V10-03-08)
- Backported FTF/diffraction configuration interface
  - for now, only baryon projectile
- Affected classes: G4FTFParameters, G4FTFModel

27-Oct-2017 A. Ribon          (hadr-string-diff-V10-03-07)
- G4FTFAnnihilation : fixed unphysical neutrons at rest seen in annihilation.
- G4DiffractiveExcitation : added protection and improved kinematics.

26-Oct-2017 A. Ribon          (hadr-string-diff-V10-03-06)
- Brought back the stable, production FTF (as in 10.3).

23-Oct-2017 V. Uzhinsky       (hadr-string-diff-V10-03-05)
- Bug is erased for nucleus-nucleus interactions in G4FTFParticipants.

23-Oct-2017 V. Uzhinsky       (hadr-string-diff-V10-03-04)
- Projectile diffraction is arrowed in Pi + A interactions.
- Isotrophy of annihilation events is introduced.


4-Aug-2017 J. Yarba       (hadr-string-diff-V10-03-03)
- Introduce additional separate parameters for projectile and target destruction
- Refine naming of variables/classes

1-Aug-2017 J. Yarba       (hadr-string-diff-V10-03-02)
- Initial set of FTF configurable parameters is implemented (only baryon projectile for now)
- Results of several tests (process and/or physics list level) before and after code updates
  appear to be identical

21-Jul-2017 V. Uzhinsky       (hadr-string-diff-V10-03-01)
-  After implementation of the rotating strings in the LUND string fragmentation
   process probability parameterizations were improved for Pi - Nucleon interactions.
   Good results are obtained for HARP Collaboration data (p/Pi+/Pi- + A
   at 3, 5, 8, 12 GeV/c) and for Pi N inclusive reactions.

14-Dec-2016 A. Ribon       (hadr-string-diff-V10-03-00)
-  After the release G4 10.3, with "stable" version, this tag brings back
   the "development" version, similar (although not identical because
   of some code clean-up) to G4 10.2.ref10.

29-June-2016 V. Uzhinsky   (hadr-string-diff-V10-02-07)
       Pt of nucleon involved in the reggeon cascade
       was returned to original values. Attempts to improve
       proton spectra in p+C at 158 GeV/c were not successful.

27-June-2016 V. Uzhinsky   (hadr-string-diff-V10-02-06)
       Fine tuning of G4FTFParameters.cc.

13-June-2016 V. Uzhinsky   (hadr-string-diff-V10-02-05)
       Cleaned version of G4DiffractiveExcitation.cc

 1-June-2016 V. Uzhinsky   (hadr-string-diff-V10-02-04)
       Fine tuning of G4DiffractiveExcitation.cc of FTFmodel has been done
       to describe NA49 exp. data, especially, <Pt> on Xf.

28-May-2016 V. Uzhinsky    (hadr-string-diff-V10-02-03)
-      Various <Pt^2> for diffr. and non-diffr. interactions were introduced
       in G4FTFModel.cc for NA49 and NA61/SHINE exp. data.

23-May-2016 V. Uzhinsky    (hadr-string-diff-V10-02-02)
-      Tunning of FTF model parameters has been done.

17-May-2016 V. Uzhinsky    (hadr-string-diff-V10-02-01)
-  FTF model was essential improved:
       Smearing of Delta-isobar mass was introduced;
       Delta-isobars are now treated as a kinetic track;
       Parameterisation the quark exchange process with excitation is improved also.
   Na61/SHINE exp. data on Pi+, Pi-, K+, K- and protons in PP interactions at
   20, 31, 40, 80 and 158 GeV/c are described. The ratio of <Strane Q>/<Normal Q>
   in PP interactions is reproduced. The kink in AA interactions does not described.

5-May-2016 V. Uzhinsky    (hadr-string-diff-V10-02-00)
- A bug was fixed in G4FTFModel for nucleus-nucleus interactions
    if ( G4UniformRand() <
       ( 1.0 - target->GetSoftCollisionCount()     / MaxNumOfInelCollisions )  *  // Uzhi March 2015
       ( 1.0 - projectile->GetSoftCollisionCount() / MaxNumOfInelCollisions ) ) {

  There are also some improvements in sampling of kinematical variables.

- G4FTFAnnihilation was improved. Now the code create Pi0, Eta and Eta_prime.

13-Aug-2015 A. Ribon    (hadr-string-diff-V10-01-14)
- G4FTFModel and G4DiffractiveExcitation : Coverity fixes.

10-Aug-2015 A. Ribon    (hadr-string-diff-V10-01-13)
- G4FTFModel, G4FTFParticipants, G4FTFAnnihilation, G4ElasticHNScattering,
  G4DiffractiveExcitation and G4DiffractiveSplitableHadron : checking of
 'while' loops.

05-Aug-2015 A. Ribon    (hadr-string-diff-V10-01-12)
- G4FTFParameters, G4FTFModel, G4FTFAnnihilation, G4DiffractiveExcitation
  and G4ElasticHNScattering: replaced std::exp, std::log and std::pow
  with the faster G4Exp, G4Log and G4Pow, respectively.
  This changes the random number sequence.

13-Jul-2015 A. Dotti    (hadr-string-diff-V10-01-11)
- Fixing coverity issues #14434, 20328

25-Jun-2015 A. Ribon    (hadr-string-diff-V10-01-10)
- G4FTFParameters : fixed Valgrind error of uninitialized variables.

29-May-2015 V. Uzhinsky (hadr-string-diff-V10-01-09)
- G4FTFModel : Elastic hN scattering is protected.

28-May-2015 A. Ribon    (hadr-string-diff-V10-01-08)
- G4FTFModel : fixed energy non-conservation in nucleus-nucleus interactions
  in the method SamplingNucleonKinematics.

25-May-2015 V. Uzhinsky (hadr-string-diff-V10-01-07)
  A correct coupling of FTF and BIC is created. Energy-momentum is conserved.

24-May-2015 V. Uzhinsky (hadr-string-diff-V10-01-06)
  Bug is fixed in G4FTFModel::SamplingNucleonKinematics for
  hadron-nucleon interactions.

22-May-2015 V. Uzhinsky (hadr-string-diff-V10-01-05)
  Sampling of nucleon momenta after the reggeon cascading is improved in
  G4bool G4FTFModel::SamplingNucleonKinematics.

20-May-2015 V. Uzhinsky (hadr-string-diff-V10-01-04)
  G4FTFModel.cc A model description was added.

18-May-2015 V. Uzhinsky (hadr-string-diff-V10-01-03)
  G4FTFModel.cc
    LowEnergyLimit = 2000.0*MeV -> LowEnergyLimit = 1000.0*MeV;

  G4FTFParameters.cc
    A bug at Xnn calculations found by Alberto is fixed. The bug gives Xin=0 for projectile
    nucleons in Nucl-Nucl interactions.
    New methods - Set/Get CofNuclearDestructionPr(), for projectile nucleus were introduced,
    according to last studies that Reggeon cascading depends on nuclear mass number.

22-Apr-2015 A. Ribon       (hadr-string-diff-V10-01-02)
- G4FTFParticipants : added a new method to clean up the member vector.
- G4FTFModel : using the above new method to release the memory allocated
               in GetStrings().

7-April-2015 V. Uzhinsky   (hadr-string-diff-V10-01-01)
  G4FTFModel.cc
    LowEnergyLimit = 2000.0*MeV -> LowEnergyLimit = 1000.0*MeV;

    A smearing of the excitation energy associated with an involved nucleon is introduced.
    Look for // Uzhi April 2015

  G4FTFParameters.cc
    Evarage e* per wounded nucleon was to set 40 MeV for all interactions after analysis of
    ITEP and Leray exp. data.

27-Mar-2015 A. Ribon       (hadr-string-diff-V10-01-00)
- G4FTFParameters : tuning to improve the description of evaporated neutrons

27-Nov-2014 V. Uzhinsky    (hadr-string-diff-V10-00-15)
- Charge non-conservation is erased for meson-nucleus interactions
  in G4Diffractive Excitation. It was caused by quark exchange.

26-Nov-2014 A. Ribon       (hadr-string-diff-V10-00-14)
- G4DiffractiveExcitation : use pole mass + 5*width as maximum mass for
                            resonances.

26-Nov-2014 A. Ribon       (hadr-string-diff-V10-00-13)
- G4FTFModel : fixed a memory leak detected in test13.

26-Nov-2014 A. Ribon       (hadr-string-diff-V10-00-12)
- G4DiffractiveExcitation : replaced DBL_MAX with a very large mass, to avoid
                            computations with DBL_MAX.

19-Nov-2014 V. Uzhinsky    (hadr-string-diff-V10-00-11)
- Bug connected with abnormal stable meson masses is fixed. Change of masses of particles in
  quark-exchange processes is improved.

  A problem of energy/momentum non-conservation in Xi- nucleus interactions is partly solved.
  Energy/momentum is now conserved, but an acurate treatment of minimal difractive masses of
  strange particles is needed.

19-Nov-2014 V. Uzhinsky    (hadr-string-diff-V10-00-10)
- 2 bugs are fixed. The first one was connected with multiple quark exchanges in hA interactions
  accompanated by string excitations. A status of such hadrons was not set in a right manner.
  The second bug was in the determination of anti-alpha particle 4-momentum at stopping (at low
  energy). All changes were marked "Uzhi 18 Nov. 2014".


15-Nov-2014 V. Uzhinsky    (hadr-string-diff-V10-00-09)
- Bug is fixed. It was connected with missing of treating of involved nucleons
  of a projectile nucleus in FTFmodel (Case5 instead of Case 4).

connected with annihilations of anti-delta isobars is erased. Now
  G4FTFAnnihilation can treat the processes.
  A fine tuning of parameters for Pi+P interactions is done.

14-Nov-2014 V. Uzhinsky    (hadr-string-diff-V10-00-08)
- Bug connected with annihilations of anti-delta isobars is erased. Now
  G4FTFAnnihilation can treat the processes.
  A fine tuning of parameters for Pi+P interactions is done.

 7-Nov-2014 V. Uzhinsky    (hadr-string-diff-V10-00-07)
- Compilation bug is fixed for the tuned FTF model.

 6-Nov-2014 V. Uzhinsky    (hadr-string-diff-V10-00-06)
- Tuned FTF model.

 2-Oct-2014 V. Uzhinsky    (hadr-string-diff-V10-00-05)
-  Bug is fixed in G4DiffractiveSplitableHadron.cc where baryons are subdivided
   into quark and diquark. Suppresion of uu-diquark in proton is also introduced.
   Diquarks with identical quarks are now suppressed on 50 % (probability 1/6) except
   baryon like Delta++ (uuu), Delta- (ddd) and so on.

-  Parameters of FTF model are re-tuned in accordance with the hypothesis.
   New paremeters are implemented in G4FTFParameters.cc

-  Bug is fixed in G4DiffractiveExcitation.cc which leads to asymmetric rapidity
   distributions in pp-interactions. Analogous bug can be with kinky strings.
   It is not fount up to now. Thus, creation of the kinky strings is closed.

17-Sep-2014 A. Ribon       (hadr-string-diff-V10-00-04)
-  G4DiffractiveSplitableHadron : trying out Uzhinsky's idea, inspired
   from instantons, of setting to 0 the probability of (uu)-diquark.

12-Aug-2014 A. Ribon       (hadr-string-diff-V10-00-03)
-  Postponed the previous, internal tag made by V. Uzhinsky.
-  G4FTFModel : factorized the longest method, PutOnMassShell,
   without changing the results for hadron-nucleus, nucleus-nucleus,
   anti_baryon-nucleus, and light anti_ion-nucleus interactions.

30-May-2014 V. Uzhinsky    (hadr-string-diff-V10-00-02)
-  Intermediate variant of FTFmodel is saved. The variant contents a
   partially tuned process cross sections for pp-, Kp- and Pi p interactions.
   Description of Pi p interactions is still unsattisfactory. The variant
   has to work with LundStringFragmentation where Z^2 fragmentation function
   is implemented for qq-fragmentations.

23-May-2014 A. Ribon       (hadr-string-diff-V10-00-01)
-  Fix bug #1550 : extend the vectors CandAQ, CandQ of G4FTFAnnihilation
   in the case of one quark - anti-quark string, in order to correctly
   handle antiproton - proton and antineutron - neutron annihilations.
   Prepare also for Anti_Delta-- and Delta++ annihilation.

21-May-2014 A. Ribon       (hadr-string-diff-V10-00-00)
-  Set the minimum energy to apply ReggeonCascade at 2 GeV
   (it was wrongly set to 5 GeV in G4 9.6.ref03, causing the bump at
    5 GeV in the calorimeter visible energy of FTFP_BERT physics list).

16-Oct-2013 A. Ribon       (hadr-string-diff-V09-06-18)
-  Fixed a trivial warning error of the previous tag.

16-Oct-2013 A. Ribon       (hadr-string-diff-V09-06-17)
-  First, minor improvement of the code: clean-up, indentation,
   removal of tabs and consistent use of spaces.
   Neither changes of the algorithms nor of the physics.

31-Aug-2013 V. Uzhinsky    (hadr-string-diff-V09-06-16)
-  Division by 0 is erased in FTF model (AdjustNucleons, cases 2 and 3)

07-Aug-2013 A. Ribon       (hadr-string-diff-V09-06-15)
-  Set Delta-isobar probability to 10%, as a compromise between better
   agreement with thin-target data and smaller impact on hadronic shower
   observables with respect to G4 9.6.ref06.

02-Jul-2013 A. Ribon       (hadr-string-diff-V09-06-14)
-  Replaced CLHEP::RandFlat with G4RandFlat in G4DiffractiveExcitation.cc.

13-June-2012 V. Uzhinsky   (hadr-string-diff-V09-06-13)
-  New parameterizations of FTF process cross sections are implemented.
   25 % of Delta-isobar probability was returned.
   A best description of exp. data on hP, hA interactions is reached.
   Results of FTF become close to QGSM, especially for heavy targets.

02-May-2013 A. Ribon       (hadr-string-diff-V09-06-12)
-  For thread safety, replaced CLHEP::RandFlat with G4RandFlat in
   G4DiffractiveExcitation.cc and G4FTFAnnihilation.cc.

21-Mar-2013 A. Ribon       (hadr-string-diff-V09-06-11)
-  Fixed warning message in G4DiffractiveHHScatterer.

14-Feb-2013 V. Uzhinsky    (hadr-string-diff-V09-06-10)
-  Division by 0 erased in G4FTFAnnihilation for DbarPb
   if(Prel2 <= 0. ) is inserted.

 8-Feb-2013 V. Uzhinsky    (hadr-string-diff-V09-06-09)
-  Division by 0 erased in G4FTFParameters.cc for PbarP
   X pion diffraction # 0.

 6-Feb-2013 A. Ribon    (hadr-string-diff-V09-06-08)
-  Close writing of debugging information in G4FTFParameters.cc

 5-Feb-2013 V.Uzhinsky  (hadr-string-diff-V09-06-07)
-  Annihilation at rest is improved.

 4-Feb-2013 V.Uzhinsky  (hadr-string-diff-V09-06-06)
-  Warning message of G4FTFmodel (line 155) is erased.

 1-Feb-2013 V.Uzhinsky  (hadr-string-diff-V09-06-05)
-  Bug is fixed in double delition of projectile nucleus

30-Jan-2013 V.Uzhinsky  (hadr-string-diff-V09-06-04)
-  Bug is fixed in reggeon cascading

29-Jan-2013 V.Uzhinsky  (hadr-string-diff-V09-06-03)
-  New attempt to implement nucl-nucl interaction simulation

12-Jan-2013 V.Uzhinsky  (hadr-string-diff-V09-06-02)
-  New attempt to implement nucl-nucl interaction simulation

19-Dec-2012 V. Uzhinsky  (hadr-string-diff-V09-06-01)
-  Unneeded print-out was closed. Stopping of particles in AA-interaction
   below 2 GeV/N was blocked. Energy-momentum conservation in
   AA-interactions was recovered.

18-Dec-2012 V. Uzhinsky  (hadr-string-diff-V09-06-00)
-  An interface for a manipulation with nucleus-nucleus interactions was
   improved. A low energy limit of FTF model is lowered. Adjust method was
   essential extended. It is expected that there will not be problem with
   high energy interactions. Problem can be with anti-nuclei.

21-Nov-2012 V. Uzhinsky   (hadr-string-diff-V09-05-19)
-  Bug fixing.

20-Nov-2012 V. Uzhinsky   (hadr-string-diff-V09-05-18)
-  An interface for a manipulation with nucleus-nucleus interactions was
   introduced, especially for treating remnants of projectile nuclei.

27 September 2012, G.Cosmo
=  Explicitly use inclusion of headers for system of units and physical
   constants, in plan to remove implicit inclusion from globals.hh.

15 August 2012, A.Ribon  (hadr-string-diff-V09-05-17)
-  Coverity fixes in G4FTFParticipants.cc.

14 August 2012, A.Ribon  (hadr-string-diff-V09-05-16)
-  Coverity fixes in G4FTFParticipants.cc and G4FTFParameters.cc.

25 July 2012, A.Ribon   (hadr-string-diff-V09-05-15)
-  Coverity fixes in: G4FTFModel, G4FTFAnnihilation,
   G4ElasticHNScattering, G4FTFParameters, G4FTFParticipants.

17 July 2012, G.Folger   (hadr-string-diff-V09-05-14)
-  fixes for coverity in G4DiffractiveSplitableHadron

6 July 2012, V. Uzhinsky (hadr-string-diff-V09-05-13)
- FTF parameters tunned: Wdelta 0.25 -> 0.05, Dcor 0.4 -> 0.3
                         E* 75 -> 100 MeV
-------------------------------------------------------
21 June 2012, W.Pokorski  (hadr-string-diff-V09-05-12)
- removed dependency on CHIPS in sources.cmake file
-------------------------------------------------------

20 June 2012, V. Uzhinsky (hadr-string-diff-V09-05-11)
- Bug is fixed for K-minus interactions in FTFModel
-------------------------------------------------------

13 June 2012, V. Uzhinsky (hadr-string-diff-V09-05-10)
- Bug is fixed for high energy anti-baryons in FTFModel
-------------------------------------------------------

12 June 2012, V. Uzhinsky (hadr-string-diff-V09-05-09)
- Bug is fixed in PutOnMassShell in FTFModel
- FTFModel operation is improved.
-------------------------------------------------------------

12 June 2012, G.Folger   (hadr-string-diff-V09-05-08)
-  Fix sahdowing of variables,
    affected files:G4FTFParameters.{hh,cc},G4FTFModel.cc,G4DiffractiveExcitation.cc
--------------------------------------------------------------------

6 June 2012, V. Uzhinsky (hadr-string-diff-V09-05-07)
- Diffraction dissociation of p/pi/k-mesons are improved.
- Fit of exp. data on p/pi/k + H has been done.
- Good results are obtained for h+A interactions.
- New energy dependences are introduced for the diffraction
  cross sections.
- Quark exchange algorithm is improved. Strings with large masses
  are now allowed to save thier masses.
- Pt transfered in the excitation is increased up to 0.3 GeV/c.
- String mass sampling for baryon like strings is changed.
--------------------------------------------------------------------
31 May 2012, W.Pokorski (hadr-string-diff-V09-05-06)
---------------------------------------------------------------------
 - slight change in the implementation of the static pointer for the
 cross sections (to make it safer)

30 May 2012, W.Pokorski (hadr-string-diff-V09-05-05)
---------------------------------------------------------------------
 - making G4ChipsComponentXS static to avoid multiple instanciations

25-May-2012, Gunter Folger   (hadr-string-diff-V09-05-04)
-  Add ModelDescription in FTF
-  Make copy ctor, =, ==, and != operators private without implementation
-  add Modelname in Ctor

21 May 2012, V.Uzhinsky (hadr-string-diff-V09-05-03)
-  Improved diffraction dissociation is implemented

--------------------------------------------------------
21 May 2012, W.Pokorski (hadr-string-diff-V09-05-02)
---------------------------------------------------------------------
 - definitely removing G4ComponentCHIPShadronNuclearXS

11 May 2012, W.Pokorski (hadr-string-diff-V09-05-01)
---------------------------------------------------------------------
 - G4FTFParameters uses the new G4ChipsComponentXS from
 hadronic/cross_sections

May 5, 2012, Gunter Folger  ( ..trunk.. )
- revert changes by Mikhail ( rev. r58261 )

28 April 2012, M.Kosov                 (hadr-string-diff-V09-05-00)
- hadronic/models/chiral_inv_phase_space moved to hadronic/chips

22-November 2011, V. Uzhinsky& G.Folger (hadr-string-diff-V09-04-10)
   Fix memory leak in G4FTFParticipants.cc

1 November 2011, V. Uzhinsky (hadr-string-diff-V09-04-09)
   AjustNucleusFor Annih was closed in Get String. It is need to think
   a little bit.

27 October 2011, V. Uzhinsky (hadr-string-diff-V09-04-08)
   2 bugs are fixed in FTFmodel and FTFparameters for anti-baryon.

--------------------------------------------------------------------
18 October 2011, A.Ribon  (hadr-string-diff-V09-04-07)
---------------------------------------------------------------------
   Added protection in G4FTFModel to avoid crash when using Fritiof
   for nuclear capture of anti-protons at rest.

2 July 2011, V. Uzhinsky (hadr-string-diff-V09-04-06)
-----------------------------------------------------
   Huge excitation energy is erased. It was connected with energetic
   nucleons produced at the Reggeon cascading.

17 June 2011, G.Folger    (hadr-string-diff-V09-04-05)
---------------------------------------------------------------------
   In G4DiffractiveExcitation, fix warning from gcc 4.6 on "unused"
    variable TestParticle from line 514 onwards; this is only assigned,
    but never used

10 June 2011, V. Uzhinsky (hadr-string-diff-V09-04-04)
   Low energy limit of FTF is decreased.
---------------------------------------------------------------------

7 June 2011, V. Uzhinsky (hadr-string-diff-V09-04-03)
  cmake is corrected.
---------------------------------------------------------------------
7 June 2011, V. Uzhinsky (hadr-string-diff-V09-04-02)
  Some mistakes are erased with the cross-sections.
---------------------------------------------------------------------

2 June 2011, V. Uzhinsky (hadr-string-diff-V09-04-01)
  Parameters of Kaon-Proton interactions are tuned in FTF.
  CHIPS cross sections are used now in FTF for needed X's.
  The corresponding class is created - G4ComponentCHIPShadronNuclearXS
---------------------------------------------------------------------

19 February 2011, V. Uzhinsky (hadr-string-diff-V09-04-00)
    Energy-momentum conservation is improved in FTF annihilation.
    A new method - "void G4FTFModel::AjustTargetNucleonForAnnihilation(
                    G4VSplitableHadron *SelectedTargetNucleon)
    has been addded.
-------------------------------------------------------
15 Nov. 2010, V. Uzhinsky (hadr-string-diff-V09-03-04)
FTF with tuned parameters for pA and PiA interactions.
    Quark exchange is tuned.
    Low mass string fragmentation is improved.
    Reggeon cascade parameters are tuned.

--------------------------------------------------------
20 Sept. 2010, V, Uzhinsky (hadr-string-diff-V09-03-03)
FTF with new tuned parameters of nuclear destrustion is implemented.
The parameters were tuned using HARP-CDP data on p+Cu interactions.
They will be re-tuned for heavy nuclei a little bit.

----------------------------------------------------
8 Sept 2010 G.Folger  (hadr-string-diff-V09-03-02)
   G4FTFModel.cc: use integer interace of G4Nucleus

14 Jun 2010 G.Cosmo  (hadr-string-diff-V09-03-01)
  Added missing virtual destructor to G4DiffractiveHHScatterer.

15 Dec 2009 V.Uzhinsky  (hadr-string-diff-V09-02-23)
  Bug was fixed for Kaon + A interactions in G4DiffractiveExcitation.cc

------------------------------------------------------------
15 Dec 2009 G.Folger     (hadr-string-diff-V09-02-22)
  G4FTFModel: In ctor, initialise NumberOfInvolvedNucleon

14 Dec. 2009 V. Uzhinsky (hadr-string-diff-V09-02-21)
  Momentum sampling in the reggeon cascade is improved.
  More hard restrictions on the momentum are introdused.
  Infinite loop is erased.
  Arithmetical bag in kinky string is fixed.

--------------------------------------------------------
10 Dec. 2009 V. Uzhinsky (hadr-string-diff-V09-02-20)
  Crush found by Alberto with AveragePt2=0 is erased in FTF.
  Re-tag of hadr-string-diff-V09-03-00
-----------------------------------------------------
9 Dec. 2009 V. Uzhinsky (hadr-string-diff-V09-03-00)
  Crush found by Alberto with AveragePt2=0 is erased in FTF.
--------------------------------------------------------
6 Dec. 2009 V.Uzhinsky (hadr-string-diff-V09-02-19)
   Sampling of kinky string momentum is improved

25 November 2009, V. Uzhinsky (hadr-string-diff-V09-02-18)
   Memory leak is erased in FTF at the end.

29 October 2009, V. Uzhinsky (hadr-string-diff-V09-02-17)
   Warning meassage is erased for using slc5 compilator in FTFModel.cc

25 October 2009, V. Uzhinsky (hadr-string-diff-V09-02-16)
   Excitation energy calculation of nuclear residuals is implemenred.
   The interface to the G4PrecompoundModelInterface is improved.
----------------------------------------------------------
6 October 2009, V. Uzhinsky (hadr-string-diff-V09-02-15)
   Compilation warning are erased.
----------------------------------------------------------
5 October 2009, V. Uzhinsky (hadr-string-diff-V09-02-14)
   FTFP with tuned parameters of nuclear de-excitation.

-----------------------------------------------------------
19 Sept., 2009, V. Uzhinsky (hadr-string-diff-V09-02-13)
   I have foggoten to open quasi-elastic scattering!
   Now it is openned.
----------------------------------------------------------
17 Sept., 2009, V. Uzhinsky (hadr-string-diff-V09-02-12)
   FTF parameters have been tunned on hN-interactions.
   Binary reactions were introduced and checked.
   Creation of s-channel Delta's was erased.

-----------------------------------------
6 August 2009, V. Uzhinsky (hadr-string-diff-V09-02-11)
  Kaon A interactions are improved in FTFModel.
----------------------------------------------------------
6 August 2009, V. Uzhinsky (hadr-string-diff-V09-02-10)
  A warning message at FTFmodel compilation connected with Xminus
  initialisation was erased.
----------------------------------------------------------
5 August 2009, V.Uzhinsky (hadr-string-diff-V09-02-09)
  Some additional warning found by Gabriela were erased.
------------------------------------------------------------
5 August 2009, V. Uzhinsky (hadr-string-diff-V09-02-08)
  Warning meassages were erased at a compilation of FTF model
-----------------------------------------------------------
3 August 2009, V. Uzhinsky (hadr-string-diff-V09-02-07)
   FTF model with the reggeon cascading was complited by
   formation time for a following coupling with the binary model.
-----------------------------------------------------------
31 July 2009, V. Uzhinsky (hadr-string-diff-V09-02-06)
   Inconsistency in G4FTFModel was erased thank to Gunter.

----------------------------------------------------------
31 July 2009, V. Uzhinsky (hadr-string-diff-V09-02-05)
   The reggeon theory inspired model of duclear desctruction is
   implemented for a simulation of low particle cascading.
   The code can operate with Precompound model only.
-------------------------------------------------------------------

17 July V. Uzhinsky        (hadr-string-diff-V09-02-04)
   A Status of nuclear nucleon involved in an interaction is introdused.
   Status: 0 - spectator, 1 - primary involved nucleon, 2 - a nucleon
   involved in the reggeon cascading, 3 - absorbed nucleon.

   A connection between a participant nucleon and a nuclear nucleon was
   introsuced in G4InteractionContent.

   All of these allow to improve FTF model for pion obsorption on nuclei.
   These required a lot of changes.
---------------------------------------------------------

10 July V. Uzhinsky        (hadr-string-diff-V09-02-03)
Bug was fixed in G4FTFModel.cc thank to A. Ribon
---------------------------------------------------------
9 July 2009 V. Uzhinsky    (hadr-string-diff-V09-02-02)
- Charge-exchange was implemented for pn->np
  elastic and inelastic interactions.
- Pion absorption by a nucleon was implemented.
  See comments marked by Uzhi 07.07.09
---------------------------------------------------------
19 December 08 V. Uzhinsky (hadr-string-diff-V09-02-01)
---------------------------------------------------------
 Version of FTF suted for low energies (2-10 GeV/c)

9 December 08, V. Uzhinsky (hadr-string-diff-V09-01-04)
- Improvement of delete operators in FTF

5 December 08, V. Uzhinsky (hadr-string-diff-V09-01-03)
- Some objects did not erase in FTFModel desructor. These lead to memory
  leak.


2 June 08, G.Folger 		(hadr-string-diff-V09-01-02)
-  on branch geant4-09-01-patches_branch, fix compilation warning for unused
     variables in G4FTFModel.cc



??????????????????????????????      (hadr-string-diff-V09-01-01)

31 March 2008 V. Uzhinsky           Tag : hadr-string-diff-V09-01-00
- G4FTFParameters.cc and G4FTFParameters.hh were copied from G4FTFCrossSection
  corresponding files.
- New files - G4ElasticHNScattering have been added. They implement elastic
  scattering of hadron in intra-nuclear collisions in FTF model.
- The corresponding changes have been done in G4FTFModel.cc and
  G4FTFParticipants.cc


24 Apr 2007 Gunter Folger  (hadr-string-diff-V08-02-00)
-  merge in change done by ftf development.
- Created History file.

