Import Geant4 10.6.0.beta source tree
This commit is contained in:
@@ -47,16 +47,15 @@ class G4AntiNuclElastic : public G4HadronElastic
|
||||
{
|
||||
public:
|
||||
|
||||
G4AntiNuclElastic();
|
||||
explicit G4AntiNuclElastic();
|
||||
|
||||
virtual ~G4AntiNuclElastic();
|
||||
~G4AntiNuclElastic() override;
|
||||
|
||||
virtual G4double SampleInvariantT(const G4ParticleDefinition* p,
|
||||
G4double plab,
|
||||
G4int Z, G4int A);
|
||||
G4double SampleInvariantT(const G4ParticleDefinition* p,
|
||||
G4double plab, G4int Z, G4int A) override;
|
||||
|
||||
G4double SampleThetaCMS(const G4ParticleDefinition* p, G4double plab,
|
||||
G4int Z, G4int A);
|
||||
G4int Z, G4int A);
|
||||
|
||||
G4double SampleThetaLab(const G4ParticleDefinition* p,
|
||||
G4double plab, G4int Z, G4int A);
|
||||
@@ -88,10 +87,10 @@ private:
|
||||
G4AntiNuclElastic(const G4AntiNuclElastic&);
|
||||
|
||||
G4ComponentAntiNuclNuclearXS* cs; //cross section of antiA-A interaction
|
||||
const G4ParticleDefinition* fParticle;
|
||||
|
||||
G4double fTetaCMS; // sampled Theta in CMS
|
||||
G4double fThetaLab; //sampled Theta in Lab system
|
||||
const G4ParticleDefinition* fParticle;
|
||||
G4double fWaveVector;
|
||||
G4double fBeta; // velosity of projectile
|
||||
G4double fZommerfeld; // parameter of Zommerfeld for calculation of Coulomb cross-section
|
||||
|
||||
@@ -52,19 +52,16 @@ class G4ChargeExchange : public G4HadronicInteraction
|
||||
{
|
||||
public:
|
||||
|
||||
G4ChargeExchange();
|
||||
explicit G4ChargeExchange();
|
||||
|
||||
virtual ~G4ChargeExchange();
|
||||
~G4ChargeExchange() override;
|
||||
|
||||
virtual G4HadFinalState * ApplyYourself(
|
||||
const G4HadProjectile & aTrack,
|
||||
G4Nucleus & targetNucleus);
|
||||
G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
|
||||
G4Nucleus& targetNucleus) override;
|
||||
|
||||
void SetLowestEnergyLimit(G4double value);
|
||||
|
||||
void SetRecoilKinEnergyLimit(G4double value);
|
||||
|
||||
G4double SampleT(G4double p, G4double A);
|
||||
G4double SampleT(G4double p, G4int A);
|
||||
|
||||
private:
|
||||
|
||||
@@ -98,16 +95,9 @@ private:
|
||||
G4ParticleDefinition* theA;
|
||||
G4ParticleDefinition* theHe3;
|
||||
|
||||
G4double lowEnergyRecoilLimit;
|
||||
G4double lowestEnergyLimit;
|
||||
|
||||
};
|
||||
|
||||
inline void G4ChargeExchange::SetRecoilKinEnergyLimit(G4double value)
|
||||
{
|
||||
lowEnergyRecoilLimit = value;
|
||||
}
|
||||
|
||||
inline void G4ChargeExchange::SetLowestEnergyLimit(G4double value)
|
||||
{
|
||||
lowestEnergyLimit = value;
|
||||
|
||||
+39
-78
@@ -51,34 +51,31 @@
|
||||
#include "G4ParticleChange.hh"
|
||||
#include "G4Nucleus.hh"
|
||||
#include "G4HadronElastic.hh"
|
||||
#include "G4Threading.hh"
|
||||
|
||||
class G4NistManager;
|
||||
|
||||
static const G4int NHADRONS = 26; // Number of hadrons for which model is applied
|
||||
static const G4int NHADRONS = 26; // Number of hadrons
|
||||
static const G4int ONQ0 = 5; // The initial number of steps on Q2
|
||||
static const G4int ONQ2 = 100; // The total number of steps on Q2
|
||||
static const G4int NENERGY = 30;
|
||||
static const G4int ZMAX = 93;
|
||||
static const G4int NQTABLE = NENERGY*ONQ2;
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
//
|
||||
|
||||
class G4ElasticData
|
||||
{
|
||||
public:
|
||||
|
||||
G4ElasticData(const G4ParticleDefinition* h,
|
||||
G4int Z, G4double A, G4double* eGeV);
|
||||
G4ElasticData(const G4ParticleDefinition* h, G4int Z, G4int A, G4double* e);
|
||||
|
||||
~G4ElasticData(){}
|
||||
|
||||
const G4ParticleDefinition* Hadron() {return hadr;}
|
||||
|
||||
private:
|
||||
void DefineNucleusParameters(G4double A);
|
||||
void DefineNucleusParameters(G4int A);
|
||||
const G4ParticleDefinition* hadr;
|
||||
|
||||
// hide assignment operator
|
||||
@@ -86,11 +83,8 @@ private:
|
||||
G4ElasticData(const G4ElasticData&);
|
||||
|
||||
public:
|
||||
G4int AtomicWeight;
|
||||
G4double R1, R2, Pnucl, Aeff;
|
||||
G4double limitQ2;
|
||||
G4double massGeV;
|
||||
G4double mass2GeV2;
|
||||
G4double massA;
|
||||
G4double massA2;
|
||||
G4int dnkE[NENERGY];
|
||||
@@ -101,26 +95,23 @@ public:
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
//
|
||||
|
||||
class G4ElasticHadrNucleusHE : public G4HadronElastic
|
||||
{
|
||||
public:
|
||||
|
||||
G4ElasticHadrNucleusHE(const G4String& name = "hElasticGlauber");
|
||||
explicit G4ElasticHadrNucleusHE(const G4String& name = "hElasticGlauber");
|
||||
|
||||
virtual ~G4ElasticHadrNucleusHE();
|
||||
~G4ElasticHadrNucleusHE() override;
|
||||
|
||||
virtual G4double SampleInvariantT(const G4ParticleDefinition* p,
|
||||
G4double plab,
|
||||
G4int Z, G4int A);
|
||||
G4double SampleInvariantT(const G4ParticleDefinition* p, G4double plab,
|
||||
G4int Z, G4int A) override;
|
||||
|
||||
virtual void ModelDescription(std::ostream&) const;
|
||||
void InitialiseModel() override;
|
||||
|
||||
G4double SampleT(const G4ParticleDefinition* p,
|
||||
G4double plab,
|
||||
G4int Z, G4int A);
|
||||
void ModelDescription(std::ostream&) const override;
|
||||
|
||||
private:
|
||||
|
||||
G4double HadronNucleusQ2_2(G4ElasticData * pElD, G4int Z,
|
||||
G4double plabGeV, G4double tmax);
|
||||
@@ -130,8 +121,7 @@ public:
|
||||
G4double GetLightFq2(G4int Z, G4int A, G4double Q);
|
||||
G4double GetHeavyFq2(G4int Z, G4int Nucleus, G4double *LineFq2);
|
||||
|
||||
G4double GetQ2_2(G4int N, G4double * Q,
|
||||
G4double * F, G4double R);
|
||||
G4double GetQ2_2(G4int N, G4double* Q, G4double* F, G4double R);
|
||||
|
||||
G4double LineInterpol(G4double p0, G4double p2,
|
||||
G4double c1, G4double c2,
|
||||
@@ -158,28 +148,25 @@ public:
|
||||
G4double HadronProtonQ2(const G4ParticleDefinition * aHadron,
|
||||
G4double inLabMom);
|
||||
|
||||
void GetKinematics(const G4ParticleDefinition * aHadron,
|
||||
G4double MomentumH);
|
||||
private:
|
||||
void GetKinematics(const G4ParticleDefinition * aHadron,
|
||||
G4double MomentumH);
|
||||
|
||||
void Binom();
|
||||
void Binom();
|
||||
|
||||
void FillData(const G4ParticleDefinition* p, G4int idx, G4int Z);
|
||||
|
||||
// fields
|
||||
|
||||
G4int iHadrCode;
|
||||
G4int iHadron;
|
||||
G4int HadronCode[NHADRONS];
|
||||
G4int HadronType[NHADRONS];
|
||||
G4int HadronType1[NHADRONS];
|
||||
static const G4int HadronCode[NHADRONS];
|
||||
static const G4int HadronType[NHADRONS];
|
||||
static const G4int HadronType1[NHADRONS];
|
||||
|
||||
// protection energy and momemtum
|
||||
|
||||
G4double lowestEnergyLimit;
|
||||
// momemtum limits
|
||||
G4double plabLowLimit;
|
||||
G4double dQ2;
|
||||
|
||||
// transition between internal and CLHEP units
|
||||
|
||||
G4double MbToGeV2;
|
||||
G4double sqMbToGeV;
|
||||
G4double Fm2ToGeV2;
|
||||
@@ -188,7 +175,6 @@ private:
|
||||
G4double protonM2; // GeV^2
|
||||
|
||||
// projectile kinematics in GeV
|
||||
|
||||
G4double hMass;
|
||||
G4double hMass2;
|
||||
G4double hLabMomentum;
|
||||
@@ -196,13 +182,7 @@ private:
|
||||
G4double MomentumCM;
|
||||
G4double HadrEnergy;
|
||||
|
||||
// nucleaus parameters
|
||||
|
||||
G4double R1, R2, Pnucl, Aeff;
|
||||
G4int NumbN;
|
||||
|
||||
// elastic parameters
|
||||
|
||||
G4double HadrTot, HadrSlope, HadrReIm, TotP,
|
||||
DDSect2, DDSect3, ConstU, FmaxT;
|
||||
|
||||
@@ -210,22 +190,28 @@ private:
|
||||
G4double BoundaryP[7], BoundaryTL[7], BoundaryTG[7];
|
||||
|
||||
// parameterisation of scattering
|
||||
|
||||
G4double Slope1, Slope2, Coeff1, Coeff2, MaxTR;
|
||||
G4double Slope0, Coeff0;
|
||||
|
||||
G4double aAIm, aDIm, Dtot11;
|
||||
|
||||
G4double Energy[NENERGY];
|
||||
G4double LowEdgeEnergy[NENERGY];
|
||||
// nucleaus parameters
|
||||
G4double R1, R2, Pnucl, Aeff;
|
||||
G4int NumbN;
|
||||
|
||||
G4double SetBinom[240][240];
|
||||
static G4double Energy[NENERGY];
|
||||
static G4double LowEdgeEnergy[NENERGY];
|
||||
static G4double ABinom[240][240];
|
||||
|
||||
static G4ElasticData* SetOfElasticData[NHADRONS][ZMAX];
|
||||
static G4ElasticData* SetOfElasticData[NHADRONS][ZMAX];
|
||||
G4NistManager* nistManager;
|
||||
static G4Mutex eldata_m[NHADRONS][ZMAX];
|
||||
G4bool isMaster;
|
||||
|
||||
}; // The end of the class description
|
||||
#ifdef G4MULTITHREADED
|
||||
static G4Mutex elasticMutex;
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -234,42 +220,15 @@ G4double G4ElasticHadrNucleusHE::LineInterpol(G4double p1, G4double p2,
|
||||
G4double c1, G4double c2,
|
||||
G4double p)
|
||||
{
|
||||
// G4cout<<" LineInterpol: p1 p2 c1 c2 "<<p1<<" "<<p2<<" "
|
||||
// <<c1<<" "<<c2<<" c "<<c1+(p-p1)*(c2-c1)/(p2-p1)<<G4endl;
|
||||
|
||||
|
||||
return c1+(p-p1)*(c2-c1)/(p2-p1);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
inline
|
||||
void G4ElasticHadrNucleusHE::InterpolateHN(G4int n, const G4double EnP[],
|
||||
const G4double C0P[], const G4double C1P[],
|
||||
const G4double B0P[], const G4double B1P[])
|
||||
G4double G4ElasticHadrNucleusHE::GetBinomCof(G4int numN, G4int numM)
|
||||
{
|
||||
G4int i;
|
||||
|
||||
for(i=1; i<n; i++) if(hLabMomentum <= EnP[i]) break;
|
||||
|
||||
if(i == n) i = n - 1;
|
||||
|
||||
Coeff0 = LineInterpol(EnP[i], EnP[i-1], C0P[i], C0P[i-1], hLabMomentum);
|
||||
Coeff1 = LineInterpol(EnP[i], EnP[i-1], C1P[i], C1P[i-1], hLabMomentum);
|
||||
Slope0 = LineInterpol(EnP[i], EnP[i-1], B0P[i], B0P[i-1], hLabMomentum);
|
||||
Slope1 = LineInterpol(EnP[i], EnP[i-1], B1P[i], B1P[i-1], hLabMomentum);
|
||||
|
||||
// G4cout<<" InterpolHN: n i "<<n<<" "<<i<<" Mom "
|
||||
// <<hLabMomentum<<G4endl;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
inline
|
||||
G4double G4ElasticHadrNucleusHE::GetBinomCof( G4int numN, G4int numM )
|
||||
{
|
||||
if ( numN >= numM && numN <= 240) return SetBinom[numN][numM];
|
||||
else return 0.;
|
||||
return (numN >= numM && numN < 240) ? ABinom[numN][numM] : 0.0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
@@ -280,4 +239,6 @@ G4double G4ElasticHadrNucleusHE::GetDistrFun(G4double Q2)
|
||||
return GetFt(Q2)/FmaxT;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
// Geant4 Header : G4HadronElastic
|
||||
//
|
||||
// Author : V.Ivanchenko 29 June 2009 (redesign old elastic model)
|
||||
@@ -50,18 +49,17 @@ class G4HadronElastic : public G4HadronicInteraction
|
||||
{
|
||||
public:
|
||||
|
||||
G4HadronElastic(const G4String& name = "hElasticLHEP");
|
||||
explicit G4HadronElastic(const G4String& name = "hElasticLHEP");
|
||||
|
||||
virtual ~G4HadronElastic();
|
||||
~G4HadronElastic() override;
|
||||
|
||||
// implementation of the G4HadronicInteraction interface
|
||||
virtual G4HadFinalState * ApplyYourself(const G4HadProjectile & aTrack,
|
||||
G4Nucleus & targetNucleus);
|
||||
G4HadFinalState* ApplyYourself(const G4HadProjectile & aTrack,
|
||||
G4Nucleus & targetNucleus) override;
|
||||
|
||||
// sample momentum transfer using Lab. momentum
|
||||
virtual G4double SampleInvariantT(const G4ParticleDefinition* p,
|
||||
G4double plab,
|
||||
G4int Z, G4int A);
|
||||
G4double SampleInvariantT(const G4ParticleDefinition* p, G4double plab,
|
||||
G4int Z, G4int A) override;
|
||||
|
||||
inline void SetLowestEnergyLimit(G4double value);
|
||||
|
||||
@@ -70,7 +68,11 @@ public:
|
||||
inline G4double ComputeMomentumCMS(const G4ParticleDefinition* p,
|
||||
G4double plab, G4int Z, G4int A);
|
||||
|
||||
virtual void ModelDescription(std::ostream&) const;
|
||||
void ModelDescription(std::ostream&) const override;
|
||||
|
||||
protected:
|
||||
|
||||
G4double pLocalTmax;
|
||||
|
||||
private:
|
||||
|
||||
@@ -79,8 +81,7 @@ private:
|
||||
G4ParticleDefinition* theDeuteron;
|
||||
G4ParticleDefinition* theAlpha;
|
||||
|
||||
G4double lowestEnergyLimit;
|
||||
|
||||
G4double lowestEnergyLimit;
|
||||
};
|
||||
|
||||
inline void G4HadronElastic::SetLowestEnergyLimit(G4double value)
|
||||
@@ -95,7 +96,7 @@ inline G4double G4HadronElastic::LowestEnergyLimit() const
|
||||
|
||||
inline G4double
|
||||
G4HadronElastic::ComputeMomentumCMS(const G4ParticleDefinition* p,
|
||||
G4double plab, G4int Z, G4int A)
|
||||
G4double plab, G4int Z, G4int A)
|
||||
{
|
||||
G4double m1 = p->GetPDGMass();
|
||||
G4double m12= m1*m1;
|
||||
|
||||
@@ -35,56 +35,35 @@
|
||||
#define G4LEnp_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4Element.hh"
|
||||
#include "G4ElementVector.hh"
|
||||
#include "G4ElementTable.hh"
|
||||
#include "G4PhysicsTable.hh"
|
||||
#include "G4PhysicsVector.hh"
|
||||
#include "G4LPhysicsFreeVector.hh"
|
||||
#include "G4Gamma.hh"
|
||||
#include "G4Step.hh"
|
||||
#include "G4TrackStatus.hh"
|
||||
// #include "G4HadronicInteraction.hh"
|
||||
#include "G4HadronElastic.hh"
|
||||
|
||||
#ifdef NPDEBUG
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#endif
|
||||
|
||||
|
||||
class G4LEnp : public G4HadronElastic // G4HadronicInteraction
|
||||
{
|
||||
private:
|
||||
private:
|
||||
|
||||
//enum { NENERGY=21, NANGLE=180 };
|
||||
enum { NENERGY=39, NANGLE=180 };
|
||||
enum { NENERGY=39, NANGLE=180 };
|
||||
|
||||
public:
|
||||
public:
|
||||
|
||||
G4LEnp();
|
||||
explicit G4LEnp();
|
||||
|
||||
~G4LEnp();
|
||||
~G4LEnp() override;
|
||||
|
||||
G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
|
||||
G4Nucleus& targetNucleus);
|
||||
G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
|
||||
G4Nucleus& targetNucleus) override;
|
||||
|
||||
// sample momentum transfer using Lab. momentum
|
||||
|
||||
G4double SampleInvariantT(const G4ParticleDefinition* p,
|
||||
G4double plab, G4int Z, G4int A);
|
||||
private:
|
||||
|
||||
// std::ofstream* outFile;
|
||||
// std::ofstream* outFile1;
|
||||
G4double plab, G4int Z, G4int A) override;
|
||||
private:
|
||||
|
||||
// The following arrays are declared static to allow the use of initializers.
|
||||
// They are initialized in G4LEnpData.hh
|
||||
|
||||
static const G4float sig[NENERGY][NANGLE];
|
||||
static const G4float pcm[NENERGY], elab[NENERGY],
|
||||
dsigmax[NENERGY], sigtot[NENERGY];
|
||||
static const G4float sig[NENERGY][NANGLE];
|
||||
static const G4float pcm[NENERGY], elab[NENERGY];
|
||||
static const G4float dsigmax[NENERGY], sigtot[NENERGY];
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -36,16 +36,6 @@
|
||||
#define G4LEpp_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4Element.hh"
|
||||
#include "G4ElementVector.hh"
|
||||
#include "G4ElementTable.hh"
|
||||
#include "G4PhysicsTable.hh"
|
||||
#include "G4PhysicsVector.hh"
|
||||
#include "G4LPhysicsFreeVector.hh"
|
||||
#include "G4Gamma.hh"
|
||||
#include "G4Step.hh"
|
||||
#include "G4TrackStatus.hh"
|
||||
#include "G4HadronElastic.hh"
|
||||
|
||||
class G4LEpp : public G4HadronElastic
|
||||
@@ -56,15 +46,15 @@ private:
|
||||
|
||||
public:
|
||||
|
||||
G4LEpp();
|
||||
explicit G4LEpp();
|
||||
|
||||
virtual ~G4LEpp();
|
||||
~G4LEpp() override;
|
||||
|
||||
G4HadFinalState* ApplyYourself(const G4HadProjectile& aTrack,
|
||||
G4Nucleus& targetNucleus);
|
||||
G4Nucleus& targetNucleus) override;
|
||||
|
||||
G4double SampleInvariantT(const G4ParticleDefinition* p,
|
||||
G4double plab, G4int Z, G4int A);
|
||||
G4double plab, G4int Z, G4int A) override;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * 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 : G4LowEHadronElastic
|
||||
//
|
||||
// Author : V.Ivanchenko 10 May 2019
|
||||
//
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Elastic scattering in resonance energy region
|
||||
//
|
||||
|
||||
#ifndef G4LowEHadronElastic_h
|
||||
#define G4LowEHadronElastic_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4HadronElastic.hh"
|
||||
|
||||
class G4LowEHadronElastic : public G4HadronElastic
|
||||
{
|
||||
public:
|
||||
|
||||
explicit G4LowEHadronElastic();
|
||||
|
||||
~G4LowEHadronElastic() override;
|
||||
|
||||
G4double SampleInvariantT(const G4ParticleDefinition* p,
|
||||
G4double plab, G4int Z, G4int A) override;
|
||||
|
||||
private:
|
||||
|
||||
G4bool IsResonanseScattering(const G4ParticleDefinition* p,
|
||||
G4double plab, G4int Z, G4int A);
|
||||
|
||||
G4double plabLowLimit;
|
||||
G4double plabHighLimit;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user