Import Geant4 9.2.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:58:43 +02:00
parent 96c8bcd0af
commit b79225fb37
7544 changed files with 245407 additions and 91099 deletions
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ChargeExchange.hh,v 1.3 2006/08/02 10:55:54 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4ChargeExchange.hh,v 1.4 2008/11/19 18:28:36 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// G4 Model: Charge and strangness exchange based on G4LightMedia model
@@ -49,17 +49,12 @@
#include "G4Nucleus.hh"
class G4ParticleDefinition;
class G4VQCrossSection;
class G4ElasticHadrNucleusHE;
class G4HadronElastic;
class G4ChargeExchange : public G4HadronicInteraction
{
public:
G4ChargeExchange(G4HadronElastic* hel = 0,
G4double elim = 100.*keV,
G4double ehigh= GeV);
G4ChargeExchange();
virtual ~G4ChargeExchange();
@@ -67,17 +62,14 @@ public:
const G4HadProjectile & aTrack,
G4Nucleus & targetNucleus);
void SetKinEnergyLow(G4double value);
void SetLowestEnergyLimit(G4double value);
void SetKinEnergyHigh(G4double value);
void SetRecoilKinEnergyLimit(G4double value);
G4double SampleT(G4double p, G4double A);
private:
G4VQCrossSection* qCManager;
G4ElasticHadrNucleusHE* hElastic;
G4HadronElastic* fElastic;
G4bool native;
G4ParticleDefinition* theProton;
G4ParticleDefinition* theNeutron;
G4ParticleDefinition* theAProton;
@@ -108,19 +100,19 @@ private:
G4ParticleDefinition* theA;
G4ParticleDefinition* theHe3;
G4double ekinlim;
G4double ekinlow;
G4double ekinhigh;
G4double lowEnergyRecoilLimit;
G4double lowestEnergyLimit;
};
inline void G4ChargeExchange::SetKinEnergyLow(G4double value)
inline void G4ChargeExchange::SetRecoilKinEnergyLimit(G4double value)
{
ekinlow = value;
lowEnergyRecoilLimit = value;
}
inline void G4ChargeExchange::SetKinEnergyHigh(G4double value)
inline void G4ChargeExchange::SetLowestEnergyLimit(G4double value)
{
ekinhigh = value;
lowestEnergyLimit = value;
}
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ChargeExchangeProcess.hh,v 1.2 2006/06/29 20:08:57 gunter Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4ChargeExchangeProcess.hh,v 1.3 2008/11/20 12:35:19 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// Geant4 Hadron Elastic Charge Exchange Process -- header file
@@ -47,7 +47,6 @@
#include "G4HadronicProcess.hh"
#include "G4Nucleus.hh"
class G4VQCrossSection;
class G4ParticleDefinition;
class G4CrossSectionDataStore;
class G4PhysicsLinearVector;
@@ -56,31 +55,22 @@ class G4ChargeExchangeProcess : public G4HadronicProcess
{
public:
G4ChargeExchangeProcess(const G4String& procName = "chargeExc");
G4ChargeExchangeProcess(const G4String& procName = "chargeExchange");
virtual ~G4ChargeExchangeProcess();
virtual G4VParticleChange* PostStepDoIt(const G4Track& aTrack,
const G4Step& aStep);
virtual G4bool IsApplicable(const G4ParticleDefinition& aParticleType);
virtual void BuildPhysicsTable(const G4ParticleDefinition& aParticleType);
virtual void DumpPhysicsTable(const G4ParticleDefinition& aParticleType);
virtual G4double GetMeanFreePath(const G4Track&, G4double, G4ForceCondition*);
virtual G4double GetMicroscopicCrossSection(const G4DynamicParticle* aParticle,
const G4Element* anElement,
G4double aTemp);
void SetQElasticCrossSection(G4VQCrossSection*);
private:
G4VQCrossSection* qCManager;
const G4ParticleDefinition* theParticle;
const G4ParticleDefinition* theProton;
@@ -114,11 +104,8 @@ private:
const G4ParticleDefinition* theHe3;
G4CrossSectionDataStore* store;
G4Nucleus targetNucleus;
G4PhysicsLinearVector* factors;
G4double xsec[40];
G4double cross;
G4double thEnergy;
G4int pPDG;
@@ -25,7 +25,7 @@
//
//
// $Id: G4DiffuseElastic.hh,v 1.13 2007/11/06 17:01:20 grichine Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// G4 Model: optical elastic scattering with 4-momentum balance
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4ElasticHadrNucleusHE.hh,v 1.43 2007/11/13 17:22:51 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4ElasticHadrNucleusHE.hh,v 1.45 2007/12/19 18:27:16 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
// G4ElasticHadrNucleusHe.hh
@@ -156,15 +156,10 @@ public:
void GetKinematics(const G4ParticleDefinition * aHadron,
G4double MomentumH);
public:
// G4double R1, R2, Pnucl, Aeff, HadrTot1, HadrSlope1, HadrReIm1, Tott1;
private:
void Binom();
// fields
G4int iHadrCode;
@@ -272,5 +267,12 @@ G4double G4ElasticHadrNucleusHE::GetBinomCof( G4int n, G4int m )
else return 0.;
}
////////////////////////////////////////////////////////////////
inline
G4double G4ElasticHadrNucleusHE::GetDistrFun(G4double Q2)
{
return GetFt(Q2)/FmaxT;
}
#endif
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4HadronElastic.hh,v 1.26 2007/05/15 16:06:47 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4HadronElastic.hh,v 1.27 2008/05/19 09:59:44 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
//
// G4 Model: Low energy elastic scattering with 4-momentum balance
@@ -122,6 +122,12 @@ private:
G4double lowEnergyLimitQ;
G4double lowestEnergyLimit;
G4double plabLowLimit;
G4int nnans;
G4int npos;
G4int nneg;
G4int neneg;
};
inline void G4HadronElastic::SetRecoilKinEnergyLimit(G4double value)
@@ -25,7 +25,7 @@
//
//
// $Id: G4UHadronElasticProcess.hh,v 1.10 2006/11/16 20:09:13 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// GEANT4 tag $Name: geant4-09-02 $
//
// Geant4 Hadron Elastic Scattering Process -- header file
//