Import Geant4 10.5.0 source tree
This commit is contained in:
@@ -30,8 +30,10 @@
|
||||
// the framework of simplified Glauber-Gribov approach
|
||||
//
|
||||
//
|
||||
// 24.11.08 V. Grichine - first implementation based on G4GlauberGribovCrossSection
|
||||
// 24.11.08 V. Grichine - first implementation based on
|
||||
// G4GlauberGribovCrossSection
|
||||
//
|
||||
// 04.09.18 V. Ivantchenko Major revision of interfaces and implementation
|
||||
//
|
||||
|
||||
#ifndef G4ComponentGGNuclNuclXsc_h
|
||||
@@ -41,11 +43,13 @@
|
||||
#include "G4Proton.hh"
|
||||
#include "G4Nucleus.hh"
|
||||
#include "G4NistManager.hh"
|
||||
|
||||
#include "G4ParticleInelasticXS.hh"
|
||||
#include "G4VComponentCrossSection.hh"
|
||||
|
||||
class G4ParticleDefinition;
|
||||
class G4HadronNucleonXsc;
|
||||
class G4Pow;
|
||||
class G4ComponentGGHadronNucleusXsc;
|
||||
|
||||
class G4ComponentGGNuclNuclXsc : public G4VComponentCrossSection
|
||||
{
|
||||
@@ -54,68 +58,62 @@ public:
|
||||
G4ComponentGGNuclNuclXsc ();
|
||||
virtual ~G4ComponentGGNuclNuclXsc ();
|
||||
|
||||
|
||||
// virtual interface methods
|
||||
|
||||
virtual
|
||||
G4double GetTotalIsotopeCrossSection(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4int A);
|
||||
|
||||
virtual
|
||||
G4double GetTotalElementCrossSection(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4double A);
|
||||
G4int Z, G4double A) final;
|
||||
|
||||
virtual
|
||||
G4double GetInelasticIsotopeCrossSection(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4int A);
|
||||
G4double GetTotalIsotopeCrossSection(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4int A) final;
|
||||
|
||||
virtual
|
||||
G4double GetInelasticElementCrossSection(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4double A);
|
||||
G4int Z, G4double A) final;
|
||||
|
||||
G4double GetInelasticIsotopeCrossSection(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4int A) final;
|
||||
|
||||
virtual
|
||||
G4double GetElasticElementCrossSection(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4double A);
|
||||
G4int Z, G4double A) final;
|
||||
|
||||
virtual
|
||||
G4double GetElasticIsotopeCrossSection(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4int A);
|
||||
G4int Z, G4int A) final;
|
||||
|
||||
virtual
|
||||
G4double ComputeQuasiElasticRatio(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4int A);
|
||||
|
||||
G4double kinEnergy,
|
||||
G4int Z, G4int A) final;
|
||||
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&) final;
|
||||
|
||||
void DumpPhysicsTable(const G4ParticleDefinition&) final;
|
||||
|
||||
void Description(std::ostream&) const final;
|
||||
|
||||
// virtual
|
||||
// Glauber-Gribov cross section
|
||||
void ComputeCrossSections(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy, G4int Z, G4int A);
|
||||
|
||||
// Extra methods
|
||||
G4bool IsElementApplicable(const G4DynamicParticle*,
|
||||
G4int Z, const G4Material*);
|
||||
G4int Z, const G4Material*);
|
||||
|
||||
// virtual
|
||||
G4double GetElementCrossSection(const G4DynamicParticle*,
|
||||
G4int Z, const G4Material*);
|
||||
inline G4double GetElementCrossSection(const G4DynamicParticle*,
|
||||
G4int Z, const G4Material*);
|
||||
|
||||
G4double GetZandACrossSection(const G4DynamicParticle*,
|
||||
G4int Z, G4int A);
|
||||
inline G4double GetZandACrossSection(const G4DynamicParticle*,
|
||||
G4int Z, G4int A);
|
||||
|
||||
G4double GetCoulombBarier(const G4DynamicParticle*,
|
||||
G4double Z, G4double A, G4double pR, G4double tR);
|
||||
inline G4double GetCoulombBarier(const G4DynamicParticle*,
|
||||
G4double Z, G4double A,
|
||||
G4double pR, G4double tR);
|
||||
|
||||
virtual
|
||||
void BuildPhysicsTable(const G4ParticleDefinition&)
|
||||
{}
|
||||
|
||||
virtual
|
||||
void DumpPhysicsTable(const G4ParticleDefinition&)
|
||||
{G4cout << "G4NuclNuclCrossSection: uses Glauber-Gribov formula"<<G4endl;}
|
||||
|
||||
virtual void CrossSectionDescription(std::ostream&) const;
|
||||
G4double ComputeCoulombBarier(const G4ParticleDefinition* aParticle,
|
||||
G4double kinEnergy, G4int Z, G4int A,
|
||||
G4double pR, G4double tR);
|
||||
|
||||
G4double GetRatioSD(const G4DynamicParticle*, G4double At, G4double Zt);
|
||||
G4double GetRatioQE(const G4DynamicParticle*, G4double At, G4double Zt);
|
||||
@@ -123,72 +121,94 @@ public:
|
||||
G4double GetHadronNucleonXsc(const G4DynamicParticle*, const G4Element*);
|
||||
G4double GetHadronNucleonXsc(const G4DynamicParticle*, G4int At, G4int Zt);
|
||||
|
||||
|
||||
G4double GetHadronNucleonXscPDG(const G4ParticleDefinition*,G4double sMand, const G4ParticleDefinition*);
|
||||
G4double GetHadronNucleonXscNS(const G4ParticleDefinition*,G4double pTkin, const G4ParticleDefinition*);
|
||||
G4double GetHadronNucleonXscPDG(const G4ParticleDefinition*,
|
||||
G4double pTkin, const G4ParticleDefinition*);
|
||||
G4double GetHadronNucleonXscNS(const G4ParticleDefinition*,
|
||||
G4double pTkin, const G4ParticleDefinition*);
|
||||
|
||||
G4double GetHNinelasticXscVU(const G4DynamicParticle*, G4int At, G4int Zt);
|
||||
G4double CalculateEcmValue(const G4double, const G4double, const G4double);
|
||||
G4double CalcMandelstamS( const G4double , const G4double , const G4double );
|
||||
G4double CalculateEcmValue(G4double, G4double, G4double);
|
||||
G4double CalcMandelstamS(G4double, G4double, G4double);
|
||||
|
||||
G4double GetElasticGlauberGribov(const G4DynamicParticle*,G4int Z, G4int A);
|
||||
G4double GetInelasticGlauberGribov(const G4DynamicParticle*,G4int Z, G4int A);
|
||||
inline G4double GetElasticGlauberGribov(const G4DynamicParticle*,G4int Z, G4int A);
|
||||
inline G4double GetInelasticGlauberGribov(const G4DynamicParticle*,G4int Z, G4int A);
|
||||
|
||||
G4double GetTotalGlauberGribovXsc() { return fTotalXsc; };
|
||||
G4double GetElasticGlauberGribovXsc() { return fElasticXsc; };
|
||||
G4double GetInelasticGlauberGribovXsc(){ return fInelasticXsc; };
|
||||
G4double GetProductionGlauberGribovXsc(){ return fProductionXsc; };
|
||||
G4double GetDiffractionGlauberGribovXsc(){ return fDiffractionXsc; };
|
||||
G4double GetRadiusConst() { return fRadiusConst; };
|
||||
inline G4double GetTotalGlauberGribovXsc() const { return fTotalXsc; };
|
||||
inline G4double GetElasticGlauberGribovXsc() const { return fElasticXsc; };
|
||||
inline G4double GetInelasticGlauberGribovXsc() const { return fInelasticXsc; };
|
||||
inline G4double GetProductionGlauberGribovXsc() const { return fProductionXsc; };
|
||||
inline G4double GetDiffractionGlauberGribovXsc() const { return fDiffractionXsc; };
|
||||
inline G4double GetRadiusConst() const { return fRadiusConst; };
|
||||
inline void SetEnergyLowerLimit(G4double) {}; // obsolete
|
||||
|
||||
G4double GetNucleusRadius(const G4DynamicParticle*, const G4Element*);
|
||||
|
||||
G4double GetNucleusRadius(G4double Zt, G4double At);
|
||||
G4double GetNucleusRadiusGG(G4double At);
|
||||
G4double GetNucleusRadiusDE(G4double Zt, G4double At);
|
||||
G4double GetNucleusRadiusRMS(G4double Zt, G4double At);
|
||||
|
||||
inline void SetEnergyLowerLimit(G4double E ){fLowerLimit=E;};
|
||||
G4double GetNucleusRadius(G4int Zt, G4int At);
|
||||
G4double GetNucleusRadiusGG(G4int At);
|
||||
G4double GetNucleusRadiusDE(G4int Zt, G4int At);
|
||||
G4double GetNucleusRadiusRMS(G4int Zt, G4int At);
|
||||
|
||||
private:
|
||||
|
||||
// const G4double fUpperLimit;
|
||||
G4double fLowerLimit;
|
||||
const G4double fRadiusConst;
|
||||
G4double fRadiusConst;
|
||||
|
||||
G4double fTotalXsc, fElasticXsc, fInelasticXsc, fProductionXsc, fDiffractionXsc;
|
||||
// G4double fHadronNucleonXsc;
|
||||
|
||||
const G4ParticleDefinition* theProton;
|
||||
const G4ParticleDefinition* theNeutron;
|
||||
G4HadronNucleonXsc* hnXsc;
|
||||
|
||||
//Used internally as cache to reduce memory churn
|
||||
G4DynamicParticle cacheDP;
|
||||
G4DynamicParticle dProton;
|
||||
G4DynamicParticle dNeutron;
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Inlines
|
||||
G4ComponentGGHadronNucleusXsc* fHadrNucl;
|
||||
G4HadronNucleonXsc* fHNXsc;
|
||||
G4Pow* fCalc;
|
||||
G4NistManager* fNist;
|
||||
|
||||
// Cache
|
||||
const G4ParticleDefinition* fParticle;
|
||||
G4double fEnergy;
|
||||
G4int fZ, fA;
|
||||
};
|
||||
|
||||
inline G4double
|
||||
G4ComponentGGNuclNuclXsc::GetElasticGlauberGribov(const G4DynamicParticle* dp,
|
||||
G4int Z, G4int A)
|
||||
{
|
||||
GetZandACrossSection(dp, Z, A);
|
||||
ComputeCrossSections(dp->GetDefinition(), dp->GetKineticEnergy(), Z, A);
|
||||
return fElasticXsc;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
inline G4double
|
||||
G4ComponentGGNuclNuclXsc::GetInelasticGlauberGribov(const G4DynamicParticle* dp,
|
||||
G4int Z, G4int A)
|
||||
{
|
||||
GetZandACrossSection(dp, Z, A);
|
||||
ComputeCrossSections(dp->GetDefinition(), dp->GetKineticEnergy(), Z, A);
|
||||
return fInelasticXsc;
|
||||
}
|
||||
|
||||
inline G4double
|
||||
G4ComponentGGNuclNuclXsc::GetElementCrossSection(const G4DynamicParticle* dp,
|
||||
G4int Z, const G4Material*)
|
||||
{
|
||||
G4int A = G4lrint(fNist->GetAtomicMassAmu(Z));
|
||||
ComputeCrossSections(dp->GetDefinition(), dp->GetKineticEnergy(), Z, A);
|
||||
return fInelasticXsc;
|
||||
}
|
||||
|
||||
inline G4double
|
||||
G4ComponentGGNuclNuclXsc::GetZandACrossSection(const G4DynamicParticle* dp,
|
||||
G4int Z, G4int A)
|
||||
{
|
||||
ComputeCrossSections(dp->GetDefinition(), dp->GetKineticEnergy(), Z, A);
|
||||
return fInelasticXsc;
|
||||
}
|
||||
|
||||
inline G4double
|
||||
G4ComponentGGNuclNuclXsc::GetCoulombBarier(const G4DynamicParticle* dp,
|
||||
G4double Z, G4double A,
|
||||
G4double pR, G4double tR)
|
||||
{
|
||||
return ComputeCoulombBarier(dp->GetDefinition(), dp->GetKineticEnergy(),
|
||||
G4lrint(Z), G4lrint(A), pR, tR);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user