Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
@@ -1,39 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
#include "G4ASCCrossSection.hh"
G4ASCCrossSection::
G4ASCCrossSection(G4int aCode1, G4int aCode2, G4double aX, G4double aY,
G4double aEta, G4double aEps)
{
theCode1 = aCode1;
theCode2 = aCode2;
theX = aX;
theY = aY;
theEta = aEta;
theEps = aEps;
}
@@ -1,64 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
#include "G4AnnihilationCrossSection.hh"
#include "G4ASCCrossSection.hh"
#include "G4GammaAnnCrossSection.hh"
G4AnnihilationCrossSection::
G4AnnihilationCrossSection()
{
// pi+ p
theDataSets.push_back(new G4ASCCrossSection(211, 2212, 13.7, 27.8, 0.45, 0.079));
// pi+ n
theDataSets.push_back(new G4ASCCrossSection(211, 2112, 13.7, 27.8, 0.45, 0.079));
// pi- p
theDataSets.push_back(new G4ASCCrossSection(-211, 2212, 13.7, 35.9, 0.45, 0.079));
// pi- n
theDataSets.push_back(new G4ASCCrossSection(-211, 2112, 13.7, 35.9, 0.45, 0.079));
// pi0 p
theDataSets.push_back(new G4ASCCrossSection(111, 2212, 13.7, 35.9, 0.45, 0.079));
// pi0 n
theDataSets.push_back(new G4ASCCrossSection(111, 2112, 13.7, 35.9, 0.45, 0.079));
// K- p
theDataSets.push_back(new G4ASCCrossSection(-321, 2212, 12.2, 26.4, 0.50, 0.079));
// K- n
theDataSets.push_back(new G4ASCCrossSection(-321, 2112, 12.2, 26.4, 0.50, 0.079));
// K0 p
theDataSets.push_back(new G4ASCCrossSection(-311, 2212, 12.2, 26.4, 0.50, 0.079));
// K0 n
theDataSets.push_back(new G4ASCCrossSection(-311, 2112, 12.2, 26.4, 0.50, 0.079));
// p- p
theDataSets.push_back(new G4ASCCrossSection(-2212, 2212, 22.0, 98.2, 0.46, 0.079));
// p- n
theDataSets.push_back(new G4ASCCrossSection(-2212, 2112, 22.3, 92.7, 0.46, 0.079));
// n- n
theDataSets.push_back(new G4ASCCrossSection(-2112, 2112, 22.0, 98.2, 0.46, 0.079));
// n- p
theDataSets.push_back(new G4ASCCrossSection(-2112, 2212, 22.3, 92.7, 0.46, 0.079));
// gamma+n and gamma+p
theDataSets.push_back(new G4GammaAnnCrossSection);
}
@@ -1,73 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
#include "G4GammaAnnCrossSection.hh"
#include "G4Gamma.hh"
G4GammaAnnCrossSection::
G4GammaAnnCrossSection()
{
// pho0 Nucleon
theGammaNucXSections.push_back(new G4ASCCrossSection(113, 2212, 13.7, 35.9, 0.45, 0.079));
// omega0 Nucleon
theGammaNucXSections.push_back(new G4ASCCrossSection(223, 2212, 13.7, 35.9, 0.45, 0.079));
// phi0 Nucleon
theGammaNucXSections.push_back(new G4ASCCrossSection(333, 2212, 12.2, 26.4, 0.50, 0.079));
}
G4bool G4GammaAnnCrossSection::
InCharge(G4int aCode, G4int bCode)
{
G4bool result = false;
if(aCode==G4Gamma::Gamma()->GetPDGEncoding())
{
result=true;
}
else if(bCode==G4Gamma::Gamma()->GetPDGEncoding())
{
result = true;
}
return result;
}
G4double G4GammaAnnCrossSection::
GetXsec(G4double S)
{
G4double result = 0;
// ratios from Phys.Lett.B40:121-126,1972; 22% assigned to higher resonances
typedef std::vector<G4ASCCrossSection*>::iterator iter;
iter i;
for(i=theGammaNucXSections.begin(); i!=theGammaNucXSections.end(); i++)
{
result += (*i)->GetXsec(S);
}
// Account for higher resonances.
result /= 0.78;
return result;
}
@@ -1,35 +0,0 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
#include "G4QGSMParameters.hh"
G4QGSMParameters::G4QGSMParameters()
{
}
G4QGSMParameters::~G4QGSMParameters()
{
}
@@ -36,7 +36,7 @@
G4Reggeons::G4Reggeons(const G4ParticleDefinition * particle)
{
// KP Orig
// Kaidalov&Piskunova Orig
Alpha_pomeron = 1.12; //0.9808;
Alphaprime_pomeron = 0.22/GeV/GeV; //0.25/GeV/GeV;
S0_pomeron = 1.0*GeV*GeV; //2.7*GeV*GeV;
@@ -48,7 +48,7 @@ G4Reggeons::G4Reggeons(const G4ParticleDefinition * particle)
G4int absPDGcode = std::abs(PDGcode);
//-------------------------------------------------------
// KP Orig
// Kaidalov&Piskunova Orig
G4double C_pomeron_NN = 1.5;
G4double C_pomeron_N = std::sqrt(C_pomeron_NN);
@@ -61,7 +61,33 @@ G4Reggeons::G4Reggeons(const G4ParticleDefinition * particle)
G4double Rsquare_pomeron_Pr(0.), Rsquare_pomeron_Tr(0.);
//-------------------------------------------------------
// Copied from G4HadronNucleonXsc::HyperonNucleonXscNS(...)
G4double coeff = 1.0;
static const G4double lBarCof1S = 0.88;
static const G4double lBarCof2S = 0.76;
static const G4double lBarCof3S = 0.64;
static const G4double lBarCof1C = 0.784378;
static const G4double lBarCofSC = 0.664378;
static const G4double lBarCof2SC = 0.544378;
static const G4double lBarCof1B = 0.740659;
static const G4double lBarCofSB = 0.620659;
static const G4double lBarCof2SB = 0.500659;
// End of Copied from G4HadronNucleonXsc::HyperonNucleonXscNS(...)
// Copied from G4HadronNucleonXsc::SCBMesonNucleonXscNS(...)
static const G4double llMesCof1C = 0.676568;
static const G4double llMesCof1B = 0.610989;
static const G4double llMesCof2C = 0.353135;
static const G4double llMesCof2B = 0.221978;
static const G4double llMesCofSC = 0.496568;
static const G4double llMesCofSB = 0.430989;
static const G4double llMesCofCB = 0.287557;
static const G4double llMesCofEtaP = 0.88;
static const G4double llMesCofEta = 0.76;
// End of Copied from G4HadronNucleonXsc::SCBMesonNucleonXscNS(...)
if ( absPDGcode > 1000 ) { // Projectile is baryon or anti_baryon --------
Cpr_pomeron = C_pomeron_N; // Shower enhancement coefficient for projectile
Ctr_pomeron = C_pomeron_N; // Shower enhancement coefficient for target
C_pomeron = Cpr_pomeron*Ctr_pomeron;
@@ -88,8 +114,53 @@ G4Reggeons::G4Reggeons(const G4ParticleDefinition * particle)
Wreggeon_C = 1.0; // Shower enhancement coefficient
if (PDGcode > 0) WParity = -1; // Parity +1 for Pbar P, and -1 for PP interactions
if (PDGcode < 0) WParity = +1;
}
else if ( absPDGcode == 211 || PDGcode == 111 ) { // Projectile is Pion
// Copied from G4HadronNucleonXsc::HyperonNucleonXscNS(...)
if ( PDGcode == 3122 || PDGcode == 3222 ||
PDGcode == 3112 || PDGcode == 3212 ||
PDGcode ==-3122 || PDGcode ==-3222 ||
PDGcode ==-3112 || PDGcode ==-3212 ) {
coeff = lBarCof1S;
}
if ( PDGcode == 3312 || PDGcode == 3322 ||
PDGcode ==-3312 || PDGcode ==-3322 ) {
coeff = lBarCof2S;
}
if ( PDGcode == 3334 || PDGcode ==-3334 ) {
coeff = lBarCof3S;
}
if ( PDGcode == 4122 || PDGcode ==-4122 ||
PDGcode == 4222 || PDGcode ==-4222 ||
PDGcode == 4212 || PDGcode ==-4212 ||
PDGcode == 4112 || PDGcode ==-4112 ) {
coeff = lBarCof1C;
}
if ( PDGcode == 4432 || PDGcode ==-4432 ) {
coeff = lBarCof2SC;
}
if ( PDGcode == 4232 || PDGcode == 4132 ||
PDGcode ==-4232 || PDGcode ==-4132 ) {
coeff = lBarCofSC;
}
if ( PDGcode == 5122 || PDGcode ==-5122 ||
PDGcode == 5222 || PDGcode ==-5222 ||
PDGcode == 5112 || PDGcode ==-5112 ||
PDGcode == 5212 || PDGcode ==-5212 ) {
coeff = lBarCof1B;
}
if ( PDGcode == 5332 || PDGcode ==-5332 ) {
coeff = lBarCof2SB;
}
if ( PDGcode == 5132 || PDGcode == 5232 ||
PDGcode ==-5132 || PDGcode ==-5232 ) {
coeff = lBarCofSB;
}
// End of Copied from G4HadronNucleonXsc::HyperonNucleonXscNS(...)
Gamma_pomeron_Pr *= coeff;
} else if ( absPDGcode == 211 || PDGcode == 111 || absPDGcode >= 400 ) { // Projectile is a nonstrange meson
Cpr_pomeron = 1.352;
Ctr_pomeron = C_pomeron_N;
C_pomeron = Cpr_pomeron*Ctr_pomeron;
@@ -116,9 +187,44 @@ G4Reggeons::G4Reggeons(const G4ParticleDefinition * particle)
Wreggeon_C = 1.0;
if (PDGcode > 0) WParity = -1;
if (PDGcode < 0) WParity = +1;
}
else if ( absPDGcode == 321 || absPDGcode == 311 ||
PDGcode == 130 || PDGcode == 310 ) { // Projectile is Kaon
// Copied from G4HadronNucleonXsc::SCBMesonNucleonXscNS(...)
if ( PDGcode == 511 || PDGcode ==-511 ||
PDGcode == 521 || PDGcode ==-521 ) {
coeff = llMesCof1B;
}
if ( PDGcode == 421 || PDGcode ==-421 ||
PDGcode == 411 || PDGcode ==-411 ) {
coeff = llMesCof1C;
}
if ( PDGcode == 531 || PDGcode ==-531 ) {
coeff = llMesCofSB;
}
if ( PDGcode == 541 || PDGcode ==-541 ) {
coeff = llMesCofCB;
}
if ( PDGcode == 431 || PDGcode ==-431 ) {
coeff = llMesCofSC;
}
if ( PDGcode == 441 || PDGcode == 443 ) {
coeff = llMesCof2C;
}
if ( PDGcode == 553 ) {
coeff = llMesCof2B;
}
if ( PDGcode == 221 ) {
coeff = llMesCofEta;
}
if ( PDGcode == 331 ) {
coeff = llMesCofEtaP;
}
// End of Copied from G4HadronNucleonXsc::SCBMesonNucleonXscNS(...)
Gamma_pomeron_Pr *= coeff;
} else if ( absPDGcode == 321 || absPDGcode == 311 ||
PDGcode == 130 || PDGcode == 310 ) { // Projectile is a Kaon
Cpr_pomeron = 1.522;
Ctr_pomeron = C_pomeron_N;
C_pomeron = Cpr_pomeron*Ctr_pomeron;
@@ -147,8 +253,9 @@ G4Reggeons::G4Reggeons(const G4ParticleDefinition * particle)
if (PDGcode > 0) WParity = -1;
if (PDGcode < 0) WParity = +1;
}
else if ( absPDGcode == 22 ) { // Projectile is Gamma
} else if ( absPDGcode == 22 ) { // Projectile is Gamma
Cpr_pomeron = 1.437;
Ctr_pomeron = C_pomeron_N;
C_pomeron = Cpr_pomeron*Ctr_pomeron;
@@ -174,8 +281,9 @@ G4Reggeons::G4Reggeons(const G4ParticleDefinition * particle)
Wreggeon_Rsquare = 1.0/GeV/GeV;
Wreggeon_C = 1.0;
WParity = +1;
}
else { // Projectile is undefined, Nucleon assumed
} else { // Projectile is undefined, Nucleon assumed
Cpr_pomeron = C_pomeron_N;
Ctr_pomeron = C_pomeron_N;
C_pomeron = Cpr_pomeron*Ctr_pomeron;
@@ -201,7 +309,9 @@ G4Reggeons::G4Reggeons(const G4ParticleDefinition * particle)
Wreggeon_Alphaprime = 1.5/GeV/GeV;
Wreggeon_C = 1.0;
WParity = -1;
}
chiPin=0.;
Xtotal =0.; XtotalP=0.; XtotalR=0.;
Xelastic=0.; Xpr_Diff=0.; Xtr_Diff=0.; XDDiff=0.;