Import Geant4 10.6.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2019-06-28 11:59:04 +02:00
parent 28a70706e0
commit d0f911957d
1056 changed files with 95168 additions and 78160 deletions
@@ -14,6 +14,13 @@ code and to keep track of all tags.
* Please list in reverse chronological order (last date on top)
---------------------------------------------------------------
30 May 2019 Vladimir Ivanchenko (hadr-mod-util-V10-05-01)
- G4NuclearRadii - added extra utility methods
27 May 2019 Vladimir Ivanchenko (hadr-mod-util-V10-05-00)
- G4NuclearRadii - new utility class with several parameterisations
of nuclear radius
9 November 2018 Gabriele Cosmo (hadr-mod-util-V10-04-04)
- G4KineticTrack, G4PolynomialPDF: fixed printout typos.
@@ -49,8 +49,8 @@ public:
~G4DecayStrongResonances();
private:
G4int operator==(G4DecayStrongResonances& right) {return (this == &right);}
G4int operator!=(G4DecayStrongResonances& right) {return (this != &right);}
G4bool operator==(G4DecayStrongResonances& right) {return (this == &right);}
G4bool operator!=(G4DecayStrongResonances& right) {return (this != &right);}
public:
G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries,
@@ -70,8 +70,8 @@ private:
G4ExcitedString& operator= (const G4ExcitedString &right);
public:
int operator==(const G4ExcitedString &right) const;
int operator!=(const G4ExcitedString &right) const;
G4bool operator==(const G4ExcitedString &right) const;
G4bool operator!=(const G4ExcitedString &right) const;
public:
G4double GetTimeOfCreation() const;
@@ -122,13 +122,13 @@ public:
};
inline
int G4ExcitedString::operator==(const G4ExcitedString &right) const
G4bool G4ExcitedString::operator==(const G4ExcitedString &right) const
{
return this == &right;
}
inline
int G4ExcitedString::operator!=(const G4ExcitedString &right) const
G4bool G4ExcitedString::operator!=(const G4ExcitedString &right) const
{
return this != &right;
}
@@ -61,8 +61,8 @@ class G4Fancy3DNucleus : public G4V3DNucleus
private:
G4Fancy3DNucleus(const G4Fancy3DNucleus &right);
const G4Fancy3DNucleus & operator=(const G4Fancy3DNucleus &right);
int operator==(const G4Fancy3DNucleus &right) const;
int operator!=(const G4Fancy3DNucleus &right) const;
G4bool operator==(const G4Fancy3DNucleus &right) const;
G4bool operator!=(const G4Fancy3DNucleus &right) const;
// Implementation
@@ -59,13 +59,13 @@ public:
}
// Equality only true for same object (tests by address)
bool operator==(const G4Fancy3DNucleusHelper &right) const
G4bool operator==(const G4Fancy3DNucleusHelper &right) const
{
return (this == &right);
}
// Sorting on size value
bool operator<(const G4Fancy3DNucleusHelper &right) const
G4bool operator<(const G4Fancy3DNucleusHelper &right) const
{
return (Size < right.Size);
}
@@ -73,9 +73,9 @@ class G4KineticTrack : public G4VKineticNucleon
G4KineticTrack& operator=(const G4KineticTrack& right);
G4int operator==(const G4KineticTrack& right) const;
G4bool operator==(const G4KineticTrack& right) const;
G4int operator!=(const G4KineticTrack& right) const;
G4bool operator!=(const G4KineticTrack& right) const;
/*
inline void *operator new(size_t);
inline void operator delete(void *aTrack);
@@ -0,0 +1,75 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// Geant4 header G4NuclearRadii
//
// Author V.Ivanchenko 27.05.2019
//
// Collection of parameterisations of nuclear radii selected from
// different classes in cross section and model sub-libraries
//
#ifndef G4NuclearRadii_h
#define G4NuclearRadii_h 1
#include "globals.hh"
class G4NuclearRadii
{
public:
// explicit radii for light nuclei
static G4double ExplicitRadius(G4int Z, G4int A);
// algorithm from diffuse-elastic parameterisation (V.Grichine)
static G4double Radius(G4int Z, G4int A);
// algorithm from e-A scattering data (V.Grichine)
static G4double RadiusRMS(G4int Z, G4int A);
// algorithm from Glauber-Gribov nucluear-nuclear model (V.Grichine)
static G4double RadiusNNGG(G4int Z, G4int A);
// algorithm from Glauber-Gribov hadron-nuclear model (V.Grichine)
static G4double RadiusHNGG(G4int A);
// algorithm from Glauber-Gribov kaon-nuclear model (V.Grichine)
static G4double RadiusKNGG(G4int A);
// algorithm from nuclear de-excitation module
static G4double RadiusND(G4int A);
// algorithm from computation of Coulomb barrier in the nuclear
// de-excitation module
static G4double RadiusCB(G4int Z, G4int A);
static const G4double r0[93];
};
#endif
@@ -58,8 +58,8 @@ class G4Nucleon : public G4VKineticNucleon
G4Nucleon();
~G4Nucleon();
inline int operator==(const G4Nucleon &right) const;
inline int operator!=(const G4Nucleon &right) const;
inline G4bool operator==(const G4Nucleon &right) const;
inline G4bool operator!=(const G4Nucleon &right) const;
G4Nucleon& operator=(const G4Nucleon& right);
public:
@@ -108,11 +108,11 @@ class G4Nucleon : public G4VKineticNucleon
std::ostream & operator << (std::ostream &, const G4Nucleon&);
inline int G4Nucleon::operator==(const G4Nucleon &right) const
inline G4bool G4Nucleon::operator==(const G4Nucleon &right) const
{
return this==&right;
}
inline int G4Nucleon::operator!=(const G4Nucleon &right) const
inline G4bool G4Nucleon::operator!=(const G4Nucleon &right) const
{
return this!=&right;
}
@@ -65,9 +65,9 @@ class G4Parton
G4Parton & operator=(const G4Parton &right);
int operator==(const G4Parton &right) const;
G4bool operator==(const G4Parton &right) const;
int operator!=(const G4Parton &right) const;
G4bool operator!=(const G4Parton &right) const;
G4int GetPDGcode() const;
@@ -114,12 +114,12 @@ class G4Parton
};
inline int G4Parton::operator==(const G4Parton &right) const
inline G4bool G4Parton::operator==(const G4Parton &right) const
{
return this==&right;
}
inline int G4Parton::operator!=(const G4Parton &right) const
inline G4bool G4Parton::operator!=(const G4Parton &right) const
{
return this!=&right;
}
@@ -64,6 +64,7 @@ GEANT4_DEFINE_MODULE(NAME G4had_mod_util
G4LegendrePolynomial.hh
G4NuclearFermiDensity.hh
G4NuclearPolarizationStore.hh
G4NuclearRadii.hh
G4NuclearShellModelDensity.hh
G4Nucleon.hh
G4Parton.hh
@@ -91,6 +92,7 @@ GEANT4_DEFINE_MODULE(NAME G4had_mod_util
G4LegendrePolynomial.cc
G4NuclearFermiDensity.cc
G4NuclearPolarizationStore.cc
G4NuclearRadii.cc
G4NuclearShellModelDensity.cc
G4Nucleon.cc
G4Parton.cc
@@ -83,10 +83,10 @@ G4ExcitedString::~G4ExcitedString()
//{}
//int G4ExcitedString::operator==(const G4ExcitedString &right) const
//G4bool G4ExcitedString::operator==(const G4ExcitedString &right) const
//{}
//int G4ExcitedString::operator!=(const G4ExcitedString &right) const
//G4bool G4ExcitedString::operator!=(const G4ExcitedString &right) const
//{}
@@ -469,14 +469,14 @@ G4KineticTrack& G4KineticTrack::operator=(const G4KineticTrack& right)
G4int G4KineticTrack::operator==(const G4KineticTrack& right) const
G4bool G4KineticTrack::operator==(const G4KineticTrack& right) const
{
return (this == & right);
}
G4int G4KineticTrack::operator!=(const G4KineticTrack& right) const
G4bool G4KineticTrack::operator!=(const G4KineticTrack& right) const
{
return (this != & right);
}
@@ -0,0 +1,149 @@
//
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration. It is provided under the terms and *
// * conditions of the Geant4 Software License, included in the file *
// * LICENSE and available at http://cern.ch/geant4/license . These *
// * include a list of copyright holders. *
// * *
// * Neither the authors of this software system, nor their employing *
// * institutes,nor the agencies providing financial support for this *
// * work make any representation or warranty, express or implied, *
// * regarding this software system or assume any liability for its *
// * use. Please see the license in the file LICENSE and URL above *
// * for the full disclaimer and the limitation of liability. *
// * *
// * This code implementation is the result of the scientific and *
// * technical work of the GEANT4 collaboration. *
// * By using, copying, modifying or distributing the software (or *
// * any work based on the software) you agree to acknowledge its *
// * use in resulting scientific publications, and indicate your *
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
//
// Geant4 class G4NuclearRadii
//
// Author V.Ivanchenko 27.05.2019
//
//
#include "G4NuclearRadii.hh"
#include "G4Pow.hh"
#include "G4PhysicalConstants.hh"
G4double G4NuclearRadii::ExplicitRadius(G4int Z, G4int A)
{
G4double R = 0.0;
// Special rms radii for light nucleii
if(Z <= 4) {
if(A == 1) { R = 0.89*CLHEP::fermi; }// p
else if(A == 2) { R = 2.13*CLHEP::fermi; }// d
else if(Z == 1 && A == 3) { R = 1.80*CLHEP::fermi; }// t
else if(Z == 2 && A == 3) { R = 1.96*CLHEP::fermi; }// He3
else if(Z == 2 && A == 4) { R = 1.68*CLHEP::fermi; }// He4
else if(Z == 3) { R = 2.40*CLHEP::fermi; }// Li7
else if(Z == 4) { R = 2.51*CLHEP::fermi; }// Be9
}
return R;
}
G4double G4NuclearRadii::Radius(G4int Z, G4int A)
{
G4double R = ExplicitRadius(Z, A);
if(0.0 == R) {
if (A <= 50) {
G4double y = 1.1;
if( A <= 15) { y = 1.26; }
else if( A <= 20) { y = 1.19; }
else if( A <= 30) { y = 1.12; }
G4double x = G4Pow::GetInstance()->Z13(A);
R = y*(x - 1./x);
} else {
R = G4Pow::GetInstance()->powZ(A, 0.27);
}
R *= CLHEP::fermi;
}
return R;
}
G4double G4NuclearRadii::RadiusRMS(G4int Z, G4int A)
{
G4double R = ExplicitRadius(Z, A);
if(0.0 == R) {
R = 1.24*G4Pow::GetInstance()->powZ(A, 0.28)*CLHEP::fermi;
}
return R;
}
G4double G4NuclearRadii::RadiusNNGG(G4int Z, G4int A)
{
G4double R = ExplicitRadius(Z, A);
if(0.0 == R) {
if(A > 20) {
R = 1.08*G4Pow::GetInstance()->Z13(A)
*(0.85 + 0.15*G4Exp(-(G4double)(A - 21)/40.));
} else {
R = 1.08*G4Pow::GetInstance()->Z13(A)
*(1.0 + 0.3*G4Exp(-(G4double)(A - 21)/10.));
}
R *= CLHEP::fermi;
}
return R;
}
G4double G4NuclearRadii::RadiusHNGG(G4int A)
{
G4double R = CLHEP::fermi;
if(A > 20) {
R *= 1.08*G4Pow::GetInstance()->Z13(A)
*(0.8 + 0.2*G4Exp(-(G4double)(A - 20)/20.));
} else {
R *= 1.08*G4Pow::GetInstance()->Z13(A)
*(1.0 + 0.1*G4Exp(-(G4double)(A - 20)/20.));
}
return R;
}
G4double G4NuclearRadii::RadiusKNGG(G4int A)
{
return 1.3*CLHEP::fermi*G4Pow::GetInstance()->Z13(A);
}
G4double G4NuclearRadii::RadiusND(G4int A)
{
G4double R = CLHEP::fermi;
if(1 == A) { R *= 0.89; }
else {
G4double x = G4Pow::GetInstance()->Z13(A);
if(A <= 3.) { x *= 0.8; }
else { x *= 1.7; }
R *= x;
}
return R;
}
G4double G4NuclearRadii::RadiusCB(G4int Z, G4int A)
{
G4double R = ExplicitRadius(Z, A);
if(0.0 == R) {
G4int z = std::min(Z, 92);
R = r0[z]*G4Pow::GetInstance()->Z13(A)*CLHEP::fermi;
}
return R;
}
const G4double G4NuclearRadii::r0[] = {
1.2,
1.3, 1.3, 1.3, 1.3,1.17,1.54,1.65,1.71, 1.7,1.75, // 1-10
1.7,1.57,1.53, 1.4, 1.3,1.30,1.44, 1.4, 1.4, 1.4, //11-20
1.4, 1.4,1.46, 1.4, 1.4,1.46,1.55, 1.5,1.38,1.48, //21-30
1.4, 1.4, 1.4,1.46, 1.4, 1.4, 1.4, 1.4, 1.4,1.45, //31-40
1.4, 1.4, 1.4, 1.4, 1.4, 1.4,1.45,1.48, 1.4,1.52, //41-50
1.46, 1.4, 1.4, 1.4, 1.4, 1.4, 1.4, 1.4, 1.4, 1.5, //51-60
1.4, 1.4, 1.4, 1.3, 1.3, 1.3, 1.3, 1.3, 1.3, 1.4, //61-70
1.3, 1.3, 1.3, 1.3, 1.3, 1.3, 1.3, 1.3,1.33,1.43, //71-80
1.3,1.32,1.34, 1.3, 1.3, 1.3, 1.3, 1.3, 1.3, 1.3, //81-90
1.3, 1.3};