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
@@ -23,8 +23,8 @@
// * acceptance of all terms of the Geant4 Software license. *
// ********************************************************************
//
// $Id: G4MuPairProductionModel.hh,v 1.24 2007/10/11 13:52:03 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-01 $
// $Id: G4MuPairProductionModel.hh,v 1.27 2008/07/22 16:11:34 vnivanch Exp $
// GEANT4 tag $Name: geant4-09-02 $
//
// -------------------------------------------------------------------
//
@@ -47,6 +47,7 @@
// 13-02-06 Add ComputeCrossSectionPerAtom (mma)
// 12-05-06 Add parameter to SelectRandomAtom (A.Bogdanov)
// 11-10-07 Add ignoreCut flag (V.Ivanchenko)
// 28-02-08 Reorganized protected methods and members (V.Ivanchenko)
//
// Class Description:
@@ -61,6 +62,7 @@
#define G4MuPairProductionModel_h 1
#include "G4VEmModel.hh"
#include "G4NistManager.hh"
#include <vector>
class G4Element;
@@ -69,7 +71,6 @@ class G4ParticleChangeForGamma;
class G4MuPairProductionModel : public G4VEmModel
{
public:
G4MuPairProductionModel(const G4ParticleDefinition* p = 0,
@@ -77,14 +78,8 @@ public:
virtual ~G4MuPairProductionModel();
void SetParticle(const G4ParticleDefinition*);
void Initialise(const G4ParticleDefinition*, const G4DataVector&);
void SetLowestKineticEnergy(G4double e) {lowestKinEnergy = e;};
G4double MinEnergyCut(const G4ParticleDefinition*,
const G4MaterialCutsCouple*);
virtual G4double ComputeCrossSectionPerAtom(
const G4ParticleDefinition*,
@@ -93,31 +88,26 @@ public:
G4double cutEnergy,
G4double maxEnergy);
virtual G4double CrossSectionPerVolume(const G4Material*,
const G4ParticleDefinition*,
G4double kineticEnergy,
G4double cutEnergy,
G4double maxEnergy);
virtual G4double ComputeDEDXPerVolume(const G4Material*,
const G4ParticleDefinition*,
G4double kineticEnergy,
G4double cutEnergy);
void SampleSecondaries(std::vector<G4DynamicParticle*>*,
const G4MaterialCutsCouple*,
const G4DynamicParticle*,
G4double tmin,
G4double maxEnergy);
virtual void SampleSecondaries(std::vector<G4DynamicParticle*>*,
const G4MaterialCutsCouple*,
const G4DynamicParticle*,
G4double tmin,
G4double maxEnergy);
inline void SetLowestKineticEnergy(G4double e);
inline G4double MinEnergyCut(const G4ParticleDefinition*,
const G4MaterialCutsCouple*);
inline void SetParticle(const G4ParticleDefinition*);
protected:
inline G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
G4double kineticEnergy);
public:
G4double ComputMuPairLoss(G4double Z, G4double tkin, G4double cut,
G4double tmax);
@@ -125,13 +115,14 @@ public:
G4double Z,
G4double cut);
G4double ComputeDMicroscopicCrossSection(G4double tkin,
G4double Z,
G4double pairEnergy);
virtual G4double ComputeDMicroscopicCrossSection(G4double tkin,
G4double Z,
G4double pairEnergy);
inline void SetIgnoreCutFlag(G4bool);
inline G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
G4double kineticEnergy);
inline G4bool IgnoreCutFlag() const;
inline void SetCurrentElement(G4double Z);
private:
@@ -143,8 +134,6 @@ private:
void MakeSamplingTables();
void SetCurrentElement(G4double Z);
inline G4double InterpolatedIntegralCrossSection(
G4double dt, G4double dz, G4int iz,
G4int it, G4int iy, G4double z);
@@ -153,13 +142,10 @@ private:
G4MuPairProductionModel & operator=(const G4MuPairProductionModel &right);
G4MuPairProductionModel(const G4MuPairProductionModel&);
G4ParticleDefinition* theElectron;
G4ParticleDefinition* thePositron;
G4ParticleChangeForLoss* fParticleChange;
G4ParticleChangeForGamma* gParticleChange;
protected:
G4double minPairEnergy;
G4double lowestKinEnergy;
const G4ParticleDefinition* particle;
G4NistManager* nist;
G4double factorForCross;
G4double sqrte;
@@ -169,28 +155,62 @@ private:
G4double z23;
G4double lnZ;
const G4ParticleDefinition* particle;
static G4double xgi[8],wgi[8];
private:
G4ParticleDefinition* theElectron;
G4ParticleDefinition* thePositron;
G4ParticleChangeForLoss* fParticleChange;
G4double minPairEnergy;
G4double lowestKinEnergy;
// tables for sampling
G4int nzdat;
G4int ntdat;
G4int nbiny;
size_t nmaxElements;
static G4double zdat[5],adat[5],tdat[8],xgi[8],wgi[8];
static G4double zdat[5],adat[5],tdat[8];
G4double ya[1001],proba[5][8][1001];
G4double ymin;
G4double ymax;
G4double dy;
G4bool ignoreCut;
G4bool samplingTablesAreFilled;
std::vector<G4double> partialSum;
};
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
inline void G4MuPairProductionModel::SetLowestKineticEnergy(G4double e)
{
lowestKinEnergy = e;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
inline
G4double G4MuPairProductionModel::MinEnergyCut(const G4ParticleDefinition*,
const G4MaterialCutsCouple* )
{
return minPairEnergy;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
inline
void G4MuPairProductionModel::SetParticle(const G4ParticleDefinition* p)
{
if(!particle) {
particle = p;
particleMass = particle->GetPDGMass();
}
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
inline G4double G4MuPairProductionModel::MaxSecondaryEnergy(
const G4ParticleDefinition*,
G4double kineticEnergy)
@@ -205,9 +225,10 @@ inline void G4MuPairProductionModel::SetCurrentElement(G4double Z)
{
if(Z != currentZ) {
currentZ = Z;
z13 = std::pow(Z,0.333333333);
G4int iz = G4int(Z);
z13 = nist->GetZ13(iz);
z23 = z13*z13;
lnZ = std::log(Z);
lnZ = nist->GetLOGZ(iz);
}
}
@@ -228,18 +249,4 @@ inline G4double G4MuPairProductionModel::InterpolatedIntegralCrossSection(
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
inline void G4MuPairProductionModel::SetIgnoreCutFlag(G4bool val)
{
ignoreCut = val;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
inline G4bool G4MuPairProductionModel::IgnoreCutFlag() const
{
return ignoreCut;
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
#endif