Import Geant4 10.7.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2020-06-26 10:23:25 +02:00
parent c02c370437
commit 67ba86d073
1871 changed files with 174422 additions and 131884 deletions
@@ -60,7 +60,7 @@ class G4Material;
class G4Element;
class G4Isotope;
class G4BGGNucleonElasticXS : public G4VCrossSectionDataSet
class G4BGGNucleonElasticXS final : public G4VCrossSectionDataSet
{
public:
@@ -61,7 +61,7 @@ class G4Element;
class G4Isotope;
class G4Pow;
class G4BGGPionElasticXS : public G4VCrossSectionDataSet
class G4BGGPionElasticXS final : public G4VCrossSectionDataSet
{
public:
@@ -62,7 +62,7 @@ class G4Material;
class G4Element;
class G4Isotope;
class G4BGGPionInelasticXS : public G4VCrossSectionDataSet
class G4BGGPionInelasticXS final : public G4VCrossSectionDataSet
{
public:
@@ -48,7 +48,7 @@ class G4ParticleDefinition;
class G4HadronNucleonXsc;
class G4Pow;
class G4ComponentGGHadronNucleusXsc : public G4VComponentCrossSection
class G4ComponentGGHadronNucleusXsc final : public G4VComponentCrossSection
{
public:
@@ -0,0 +1,97 @@
//
// ********************************************************************
// * 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. *
// ********************************************************************
//
// The total muon (anti)neutrino-nucleus cross sections in the
// simplified form as A-multiplied nu_mu-nucleon cross-sections
//
// 24.04.20 V. Grichine
//
// (nu_e,anti_nu_e)-nucleus xsc
#ifndef G4ElNeutrinoNucleusTotXsc_h
#define G4ElNeutrinoNucleusTotXsc_h
#include "globals.hh"
#include "G4VCrossSectionDataSet.hh"
class G4ParticleDefinition;
class G4ElNeutrinoNucleusTotXsc : public G4VCrossSectionDataSet
{
public:
G4ElNeutrinoNucleusTotXsc();
~G4ElNeutrinoNucleusTotXsc();
G4bool IsIsoApplicable(const G4DynamicParticle*, G4int , G4int , const G4Element*, const G4Material*) override { return true; };
G4bool IsElementApplicable(const G4DynamicParticle*, G4int , const G4Material*) override { return false; };
// virtual G4double GetElementCrossSection(const G4DynamicParticle*, G4int Z, const G4Material*);
// G4double GetElementCrossSection(const G4DynamicParticle* dynPart, G4int Z, const G4Material* mat) override;
G4double GetIsoCrossSection(const G4DynamicParticle* aPart, G4int Z, G4int A,
const G4Isotope*,
const G4Element*,
const G4Material*) override;
G4int GetEnergyIndex(G4double energy);
G4double GetNuElTotCsXsc(G4int index, G4double energy);
G4double GetANuElTotCsXsc(G4int index, G4double energy);
G4double GetNuElTotCsArray(G4int index);
G4double GetANuElTotCsArray(G4int index);
void SetCutEnergy(G4double ec){fCutEnergy = ec;};
G4double GetCutEnergy(){return fCutEnergy;};
void SetBiasingFactor(G4double bf){fBiasingFactor=bf;};
G4double GetBiasingFactor(){return fBiasingFactor;};
G4double GetTotXsc(){return fTotXsc;};
G4double GetCcTotRatio(){return fCcTotRatio;};
protected:
G4double fCofXsc; // 2*Gf*Gf*MeC2/pi
G4double fSin2tW; // sin^2theta_Weinberg
G4double fCofS, fCofL;
G4double fCutEnergy; // minimal recoil electron energy detected
G4double fBiasingFactor; // biasing xsc up
G4double fTotXsc, fCcTotRatio, fCcFactor, fNcFactor;
G4int fIndex;
static const G4double fNuElEnergy[50];
static const G4double fNuElTotXsc[50];
static const G4double fANuElTotXsc[50];
const G4ParticleDefinition* theElectron;
const G4ParticleDefinition* thePositron;
};
#endif
@@ -35,6 +35,7 @@
// 30.09.18 V. Grichine hyperon-nucleon xsc first implementation
// 09.04.19 V. Grichine hyperon-nucleon xsc for c- and b- hyperons (and s-)
// 12.04.19 V. Grichine meson-nucleon xsc for c- and b- hyperons (and s-)
// 09.05.20 V. Ivanchenko general code clean-up
#ifndef G4HadronNucleonXsc_h
@@ -54,10 +55,9 @@ public:
explicit G4HadronNucleonXsc ();
~G4HadronNucleonXsc ();
// Xsc parametrisations return total x-section
// Xsc parametrisations return total x-section
G4double HadronNucleonXsc(const G4ParticleDefinition* theParticle,
const G4ParticleDefinition* nucleon, G4double ekin);
const G4ParticleDefinition* nucleon, G4double ekin);
G4double HadronNucleonXscPDG(const G4ParticleDefinition* theParticle,
const G4ParticleDefinition* nucleon, G4double ekin);
@@ -77,8 +77,8 @@ public:
G4double HyperonNucleonXscNS(const G4ParticleDefinition* theParticle,
const G4ParticleDefinition* nucleon, G4double ekin);
G4double SCBMesonNucleonXscNS( const G4ParticleDefinition* theParticle,
const G4ParticleDefinition* nucleon, G4double ekin );
G4double SCBMesonNucleonXscNS(const G4ParticleDefinition* theParticle,
const G4ParticleDefinition* nucleon, G4double ekin );
G4double HadronNucleonXscVU(const G4ParticleDefinition* theParticle,
const G4ParticleDefinition* nucleon, G4double ekin);
@@ -134,90 +134,16 @@ private:
{ return std::sqrt(CalcMandelstamS(ekin1, mass1, mass2)); };
G4double fTotalXsc, fElasticXsc, fInelasticXsc;
G4double fHypTotXscCof;
G4Pow* g4calc;
const G4ParticleDefinition* theGamma;
const G4ParticleDefinition* theProton;
const G4ParticleDefinition* theNeutron;
const G4ParticleDefinition* theAProton;
const G4ParticleDefinition* theANeutron;
const G4ParticleDefinition* thePiPlus;
const G4ParticleDefinition* thePiMinus;
const G4ParticleDefinition* thePiZero;
const G4ParticleDefinition* theD;
const G4ParticleDefinition* theT;
const G4ParticleDefinition* theA;
const G4ParticleDefinition* theHe3;
// strange
const G4ParticleDefinition* theKPlus;
const G4ParticleDefinition* theKMinus;
const G4ParticleDefinition* theK0S;
const G4ParticleDefinition* theK0L;
const G4ParticleDefinition* theL;
const G4ParticleDefinition* theAntiL;
const G4ParticleDefinition* theSPlus;
const G4ParticleDefinition* theASPlus;
const G4ParticleDefinition* theSMinus;
const G4ParticleDefinition* theASMinus;
const G4ParticleDefinition* theS0;
const G4ParticleDefinition* theAS0;
const G4ParticleDefinition* theXiMinus;
const G4ParticleDefinition* theXi0;
const G4ParticleDefinition* theAXiMinus;
const G4ParticleDefinition* theAXi0;
const G4ParticleDefinition* theOmega;
const G4ParticleDefinition* theAOmega;
// c- and b- hyperons
const G4ParticleDefinition* theLambdaCPlus;
const G4ParticleDefinition* theALambdaCPlus;
const G4ParticleDefinition* theOmegaC0;
const G4ParticleDefinition* theAOmegaC0;
const G4ParticleDefinition* theSigmaCPlus;
const G4ParticleDefinition* theASigmaCPlus;
const G4ParticleDefinition* theSigmacPP;
const G4ParticleDefinition* theASigmacPP;
const G4ParticleDefinition* theSigmaC0;
const G4ParticleDefinition* theASigmaC0;
const G4ParticleDefinition* theXiCPlus;
const G4ParticleDefinition* theAXiCPlus;
const G4ParticleDefinition* theXiC0;
const G4ParticleDefinition* theAXiC0;
const G4ParticleDefinition* theLambdaB;
const G4ParticleDefinition* theALambdaB;
const G4ParticleDefinition* theOmegaBMinus;
const G4ParticleDefinition* theAOmegaBMinus;
const G4ParticleDefinition* theSigmaBMinus;
const G4ParticleDefinition* theASigmaBMinus;
const G4ParticleDefinition* theSigmaBPlus;
const G4ParticleDefinition* theASigmaBPlus;
const G4ParticleDefinition* theSigmaB0;
const G4ParticleDefinition* theASigmaB0;
const G4ParticleDefinition* theXiBMinus;
const G4ParticleDefinition* theAXiBMinus;
const G4ParticleDefinition* theXiB0;
const G4ParticleDefinition* theAXiB0;
// c- and b- mesons
const G4ParticleDefinition* theBMeson0;
const G4ParticleDefinition* theABMeson0;
const G4ParticleDefinition* theDMeson0;
const G4ParticleDefinition* theADMeson0;
const G4ParticleDefinition* theBsMeson0;
const G4ParticleDefinition* theABsMeson0;
const G4ParticleDefinition* theBcMesonPlus;
const G4ParticleDefinition* theBcMesonMinus;
const G4ParticleDefinition* theDsMesonPlus;
const G4ParticleDefinition* theDsMesonMinus;
const G4ParticleDefinition* theDMesonPlus;
const G4ParticleDefinition* theDMesonMinus;
const G4ParticleDefinition* theBMesonPlus;
const G4ParticleDefinition* theBMesonMinus;
const G4ParticleDefinition* theEta;
const G4ParticleDefinition* theEtaPrime;
const G4ParticleDefinition* theEtaC;
const G4ParticleDefinition* theJPsi;
const G4ParticleDefinition* theUpsilon;
};
#endif
@@ -57,7 +57,7 @@ class G4ParticleDefinition;
class G4Element;
class G4PhysicsVector;
class G4NeutronCaptureXS : public G4VCrossSectionDataSet
class G4NeutronCaptureXS final : public G4VCrossSectionDataSet
{
public:
@@ -56,7 +56,7 @@ class G4PhysicsVector;
class G4ComponentGGHadronNucleusXsc;
class G4NistManager;
class G4NeutronElasticXS : public G4VCrossSectionDataSet
class G4NeutronElasticXS final : public G4VCrossSectionDataSet
{
public:
@@ -56,7 +56,7 @@ class G4PhysicsVector;
class G4ComponentGGHadronNucleusXsc;
class G4NistManager;
class G4NeutronInelasticXS : public G4VCrossSectionDataSet
class G4NeutronInelasticXS final : public G4VCrossSectionDataSet
{
public:
@@ -58,7 +58,7 @@ class G4ComponentGGHadronNucleusXsc;
class G4ComponentGGNuclNuclXsc;
class G4NistManager;
class G4ParticleInelasticXS : public G4VCrossSectionDataSet
class G4ParticleInelasticXS final : public G4VCrossSectionDataSet
{
public:
@@ -90,11 +90,19 @@ private:
// Vector of pointers to the GDRPhotonuclearCrossSection
std::vector <G4double*> GDR;
// ejc3 // store deuteron XS
// store deuteron, triton, He3 XS
G4double* deuteron_GDR;
G4double* deuteron_HR;
G4double deuteron_TH;
G4double deuteron_SP;
G4double* triton_GDR;
G4double* triton_HR;
G4double triton_TH;
G4double triton_SP;
G4double* he3_GDR;
G4double* he3_HR;
G4double he3_TH;
G4double he3_SP;
// Vector of pointers to the HighEnPhotonuclearCrossSect
std::vector <G4double*> HEN;