Import Geant4 6.1.0 source tree
This commit is contained in:
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuBetheBlochModel.hh,v 1.8 2003/07/21 12:52:35 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// $Id: G4MuBetheBlochModel.hh,v 1.9 2004/02/10 18:07:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -39,6 +39,7 @@
|
||||
// 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
|
||||
// 24-01-03 Make models region aware (V.Ivanchenko)
|
||||
// 13-02-03 Add Nama (V.Ivanchenko)
|
||||
// 10-02-04 Calculation of radiative corrections using R.Kokoulin model (V.Ivanchenko)
|
||||
//
|
||||
|
||||
//
|
||||
@@ -113,30 +114,23 @@ private:
|
||||
|
||||
void SetParticle(const G4ParticleDefinition* p);
|
||||
|
||||
G4double CrossSectionPerAtom(G4double Z,
|
||||
G4double kineticEnergy,
|
||||
G4double tmin,
|
||||
G4double tmax,
|
||||
G4double tmaxSecondary);
|
||||
|
||||
G4double DifCrossSectionPerAtom(G4double kineticEnergy,
|
||||
G4double knockonEnergy,
|
||||
G4double tmaxSecondary);
|
||||
|
||||
// hide assignment operator
|
||||
// hide assignment operator
|
||||
G4MuBetheBlochModel & operator=(const G4MuBetheBlochModel &right);
|
||||
G4MuBetheBlochModel(const G4MuBetheBlochModel&);
|
||||
|
||||
const G4ParticleDefinition* particle;
|
||||
G4double limitKinEnergy;
|
||||
G4double logLimitKinEnergy;
|
||||
G4double mass;
|
||||
G4double chargeSquare;
|
||||
G4double massSquare;
|
||||
G4double ratio;
|
||||
G4double highKinEnergy;
|
||||
G4double lowKinEnergy;
|
||||
G4double twoln10;
|
||||
G4double bg2lim;
|
||||
G4double taulim;
|
||||
G4double qc;
|
||||
G4double alphaprime;
|
||||
static G4double xgi[8],wgi[8];
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -145,11 +139,9 @@ inline G4double G4MuBetheBlochModel::MaxSecondaryEnergy(
|
||||
const G4ParticleDefinition*,
|
||||
G4double kinEnergy)
|
||||
{
|
||||
|
||||
G4double gamma= kinEnergy/mass + 1.0;
|
||||
G4double tmax = 2.0*electron_mass_c2*(gamma*gamma - 1.) /
|
||||
(1. + 2.0*gamma*ratio + ratio*ratio);
|
||||
|
||||
G4double tau = kinEnergy/mass;
|
||||
G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) /
|
||||
(1. + 2.0*(tau + 1.)*ratio + ratio*ratio);
|
||||
return tmax;
|
||||
}
|
||||
|
||||
@@ -157,12 +149,9 @@ inline G4double G4MuBetheBlochModel::MaxSecondaryEnergy(
|
||||
|
||||
inline G4double G4MuBetheBlochModel::MaxSecondaryEnergy(const G4DynamicParticle* dp)
|
||||
{
|
||||
|
||||
G4double kineticEnergy = dp->GetKineticEnergy();
|
||||
G4double gamma= kineticEnergy/mass + 1.0;
|
||||
G4double tmax = 2.0*electron_mass_c2*(gamma*gamma - 1.) /
|
||||
(1. + 2.0*gamma*ratio + ratio*ratio);
|
||||
|
||||
G4double tau = dp->GetKineticEnergy()/mass;
|
||||
G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.) /
|
||||
(1. + 2.0*(tau + 1.)*ratio + ratio*ratio);
|
||||
return tmax;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuBremsstrahlung.hh,v 1.17 2003/11/12 16:18:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// $Id: G4MuBremsstrahlung.hh,v 1.19 2004/02/10 18:07:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -45,6 +45,8 @@
|
||||
// 05-02-03 Fix compilation warnings (V.Ivanchenko)
|
||||
// 08-08-03 STD substitute standard (V.Ivanchenko)
|
||||
// 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
|
||||
// 21-01-04 Migrade to G4ParticleChangeForLoss (V.Ivanchenko)
|
||||
// 10-02-04 Add lowestKinEnergy (V.Ivanchenko)
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
@@ -113,16 +115,18 @@ private:
|
||||
const G4ParticleDefinition* theParticle;
|
||||
const G4ParticleDefinition* theBaseParticle;
|
||||
|
||||
G4double lowestKinEnergy;
|
||||
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4MuBremsstrahlung::MinPrimaryEnergy(const G4ParticleDefinition*,
|
||||
const G4Material*,
|
||||
G4double cut)
|
||||
const G4Material*,
|
||||
G4double)
|
||||
{
|
||||
return cut;
|
||||
return lowestKinEnergy;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -144,11 +148,9 @@ inline void G4MuBremsstrahlung::SecondariesPostStep(
|
||||
G4double& kinEnergy)
|
||||
{
|
||||
G4DynamicParticle* gamma = model->SampleSecondary(couple, dp, tcut, kinEnergy);
|
||||
if(gamma) {
|
||||
aParticleChange.SetNumberOfSecondaries(1);
|
||||
aParticleChange.AddSecondary(gamma);
|
||||
kinEnergy -= gamma->GetKineticEnergy();
|
||||
}
|
||||
fParticleChange.SetNumberOfSecondaries(1);
|
||||
fParticleChange.AddSecondary(gamma);
|
||||
kinEnergy -= gamma->GetKineticEnergy();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4MuBremsstrahlung52.hh,v 1.1 2003/08/08 11:28:39 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
//--------------- G4MuBremsstrahlung52 physics process ------------------
|
||||
// by Laszlo Urban, September 1997
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4MuBremsstrahlung52.icc,v 1.1 2003/08/08 11:28:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
//--------------- G4MuBremsstrahlung52 physics process ------------------
|
||||
// by Laszlo Urban, September 1997
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuBremsstrahlungModel.hh,v 1.8 2003/07/21 12:52:35 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// $Id: G4MuBremsstrahlungModel.hh,v 1.9 2004/02/10 18:07:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -39,6 +39,7 @@
|
||||
// 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
|
||||
// 27-01-03 Make models region aware (V.Ivanchenko)
|
||||
// 13-02-03 Add name (V.Ivanchenko)
|
||||
// 10-02-04 Add lowestKinEnergy (V.Ivanchenko)
|
||||
//
|
||||
|
||||
//
|
||||
@@ -75,6 +76,8 @@ public:
|
||||
|
||||
void SetLowEnergyLimit(G4double e) {lowKinEnergy = e;};
|
||||
|
||||
void SetLowestKineticEnergy(G4double e) {lowestKinEnergy = e;};
|
||||
|
||||
G4double MinEnergyCut(const G4ParticleDefinition*,
|
||||
const G4MaterialCutsCouple*);
|
||||
|
||||
@@ -110,7 +113,7 @@ protected:
|
||||
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
|
||||
G4double kineticEnergy);
|
||||
|
||||
private:
|
||||
public:
|
||||
|
||||
G4double ComputMuBremLoss(G4double Z, G4double A, G4double tkin, G4double cut);
|
||||
|
||||
@@ -124,6 +127,8 @@ private:
|
||||
G4double A,
|
||||
G4double gammaEnergy);
|
||||
|
||||
private:
|
||||
|
||||
G4DataVector* ComputePartialSumSigma(const G4Material* material,
|
||||
G4double tkin, G4double cut);
|
||||
|
||||
@@ -138,6 +143,7 @@ private:
|
||||
|
||||
G4double highKinEnergy;
|
||||
G4double lowKinEnergy;
|
||||
G4double lowestKinEnergy;
|
||||
G4double minThreshold;
|
||||
|
||||
// tables for sampling
|
||||
@@ -158,7 +164,7 @@ G4double G4MuBremsstrahlungModel::MaxSecondaryEnergy(
|
||||
const G4DynamicParticle* dynParticle)
|
||||
{
|
||||
return dynParticle->GetKineticEnergy();
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuIonisation.hh,v 1.17 2003/11/12 16:18:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// $Id: G4MuIonisation.hh,v 1.19 2004/02/10 18:07:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -55,6 +55,7 @@
|
||||
// 03-06-03 Fix initialisation problem for STD ionisation (V.Ivanchenko)
|
||||
// 08-08-03 STD substitute standard (V.Ivanchenko)
|
||||
// 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
|
||||
// 21-01-04 Migrade to G4ParticleChangeForLoss (V.Ivanchenko)
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
@@ -142,19 +143,18 @@ inline G4double G4MuIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,
|
||||
G4double cut)
|
||||
{
|
||||
G4double x = 0.5*cut/electron_mass_c2;
|
||||
G4double y = electron_mass_c2/mass;
|
||||
G4double g = x*y + sqrt((1. + x)*(1. + x*y*y));
|
||||
return mass*(g - 1.0);
|
||||
G4double g = x*ratio + sqrt((1. + x)*(1. + x*ratio*ratio));
|
||||
return mass*(g - 1.0);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4MuIonisation::MaxSecondaryEnergy(const G4DynamicParticle* dynParticle)
|
||||
{
|
||||
G4double gamma= dynParticle->GetKineticEnergy()/mass + 1.0;
|
||||
G4double tmax = 2.0*electron_mass_c2*(gamma*gamma - 1.) /
|
||||
(1. + 2.0*gamma*ratio + ratio*ratio);
|
||||
|
||||
G4double tau = dynParticle->GetKineticEnergy()/mass;
|
||||
G4double tmax = 2.0*electron_mass_c2*tau*(tau + 2.0)/
|
||||
(1. + 2.0*(tau + 1.0)*ratio + ratio*ratio);
|
||||
|
||||
return tmax;
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ inline G4double G4MuIonisation::MaxSecondaryEnergy(const G4DynamicParticle* dynP
|
||||
#include "G4VSubCutoffProcessor.hh"
|
||||
|
||||
inline std::vector<G4Track*>* G4MuIonisation::SecondariesAlongStep(
|
||||
const G4Step& step,
|
||||
const G4Step& step,
|
||||
G4double& tmax,
|
||||
G4double& eloss,
|
||||
G4double& kinEnergy)
|
||||
@@ -191,13 +191,13 @@ inline void G4MuIonisation::SecondariesPostStep(
|
||||
G4double& kinEnergy)
|
||||
{
|
||||
G4DynamicParticle* delta = model->SampleSecondary(couple, dp, tcut, kinEnergy);
|
||||
aParticleChange.SetNumberOfSecondaries(1);
|
||||
aParticleChange.AddSecondary(delta);
|
||||
fParticleChange.SetNumberOfSecondaries(1);
|
||||
fParticleChange.AddSecondary(delta);
|
||||
G4ThreeVector finalP = dp->GetMomentum();
|
||||
kinEnergy -= delta->GetKineticEnergy();
|
||||
finalP -= delta->GetMomentum();
|
||||
finalP = finalP.unit();
|
||||
aParticleChange.SetMomentumDirectionChange(finalP);
|
||||
fParticleChange.SetProposedMomentumDirection(finalP);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4MuIonisation52.hh,v 1.1 2003/08/08 11:28:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
// --------------- G4MuIonisation52 physics process ------------------------------
|
||||
// by Laszlo Urban, September 1997
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4MuIonisation52.icc,v 1.1 2003/08/08 11:28:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
//
|
||||
// GEANT 4 class inlined methods file
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuPairProduction.hh,v 1.16 2003/11/12 16:18:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// $Id: G4MuPairProduction.hh,v 1.18 2004/02/10 18:07:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -46,6 +46,7 @@
|
||||
// 13-02-03 SubCutoff regime is assigned to a region (V.Ivanchenko)
|
||||
// 08-08-03 STD substitute standard (V.Ivanchenko)
|
||||
// 12-11-03 G4EnergyLossSTD -> G4EnergyLossProcess (V.Ivanchenko)
|
||||
// 21-01-04 Migrade to G4ParticleChangeForLoss (V.Ivanchenko)
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
@@ -116,6 +117,7 @@ private:
|
||||
const G4ParticleDefinition* theParticle;
|
||||
const G4ParticleDefinition* theBaseParticle;
|
||||
|
||||
G4double lowestKinEnergy;
|
||||
G4bool subCutoff;
|
||||
|
||||
};
|
||||
@@ -124,10 +126,10 @@ private:
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline G4double G4MuPairProduction::MinPrimaryEnergy(const G4ParticleDefinition*,
|
||||
const G4Material*,
|
||||
G4double cut)
|
||||
const G4Material*,
|
||||
G4double)
|
||||
{
|
||||
return std::max(cut, 2.0*electron_mass_c2);
|
||||
return lowestKinEnergy;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
@@ -171,16 +173,15 @@ inline void G4MuPairProduction::SecondariesPostStep(
|
||||
{
|
||||
std::vector<G4DynamicParticle*>* newp =
|
||||
model->SampleSecondaries(couple, dp, tcut, kinEnergy);
|
||||
if(newp) {
|
||||
aParticleChange.SetNumberOfSecondaries(2);
|
||||
G4DynamicParticle* elpos = (*newp)[0];
|
||||
aParticleChange.AddSecondary(elpos);
|
||||
kinEnergy -= elpos->GetKineticEnergy();
|
||||
elpos = (*newp)[1];
|
||||
aParticleChange.AddSecondary(elpos);
|
||||
kinEnergy -= elpos->GetKineticEnergy();
|
||||
delete newp;
|
||||
}
|
||||
|
||||
fParticleChange.SetNumberOfSecondaries(2);
|
||||
G4DynamicParticle* elpos = (*newp)[0];
|
||||
fParticleChange.AddSecondary(elpos);
|
||||
kinEnergy -= elpos->GetKineticEnergy();
|
||||
elpos = (*newp)[1];
|
||||
fParticleChange.AddSecondary(elpos);
|
||||
kinEnergy -= elpos->GetKineticEnergy();
|
||||
delete newp;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4MuPairProduction52.hh,v 1.1 2003/08/08 11:28:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
//--------------- G4MuPairProduction52 physics process ------------------
|
||||
// by Laszlo Urban, May 1998
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4MuPairProduction52.icc,v 1.1 2003/08/08 11:28:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-06-00-patch-01 $
|
||||
//
|
||||
//--------------- G4MuPairProduction52 physics process ------------------
|
||||
// by Laszlo Urban, May 1998
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4MuPairProductionModel.hh,v 1.10 2003/07/21 12:52:35 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// $Id: G4MuPairProductionModel.hh,v 1.11 2004/02/10 18:07:23 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-01 $
|
||||
//
|
||||
// -------------------------------------------------------------------
|
||||
//
|
||||
@@ -39,6 +39,8 @@
|
||||
// 23-12-02 Change interface in order to move to cut per region (V.Ivanchenko)
|
||||
// 27-01-03 Make models region aware (V.Ivanchenko)
|
||||
// 13-02-03 Add name (V.Ivanchenko)
|
||||
// 10-02-04 Update parameterisation using R.Kokoulin model (V.Ivanchenko)
|
||||
// 10-02-04 Add lowestKinEnergy (V.Ivanchenko)
|
||||
//
|
||||
|
||||
//
|
||||
@@ -54,6 +56,7 @@
|
||||
#define G4MuPairProductionModel_h 1
|
||||
|
||||
#include "G4VEmModel.hh"
|
||||
#include <vector>
|
||||
|
||||
class G4Element;
|
||||
|
||||
@@ -76,6 +79,8 @@ public:
|
||||
|
||||
void SetLowEnergyLimit(G4double e) {lowKinEnergy = e;};
|
||||
|
||||
void SetLowestKineticEnergy(G4double e) {lowestKinEnergy = e;};
|
||||
|
||||
G4double MinEnergyCut(const G4ParticleDefinition*,
|
||||
const G4MaterialCutsCouple*);
|
||||
|
||||
@@ -112,7 +117,8 @@ protected:
|
||||
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition*,
|
||||
G4double kineticEnergy);
|
||||
|
||||
private:
|
||||
//private:
|
||||
public:
|
||||
|
||||
G4double ComputMuPairLoss(G4double Z, G4double tkin, G4double cut);
|
||||
|
||||
@@ -123,19 +129,18 @@ private:
|
||||
G4double ComputeDMicroscopicCrossSection(G4double tkin,
|
||||
G4double Z,
|
||||
G4double pairEnergy);
|
||||
private:
|
||||
|
||||
G4double ComputeDDMicroscopicCrossSection(G4double tkin,
|
||||
G4double Z,
|
||||
G4double pairEnergy,
|
||||
G4double asymmetry);
|
||||
|
||||
G4DataVector* ComputePartialSumSigma(const G4Material* material,
|
||||
G4double tkin, G4double cut);
|
||||
|
||||
const G4Element* SelectRandomAtom(const G4MaterialCutsCouple* couple) const;
|
||||
const G4Element* SelectRandomAtom(G4double dt, G4int it, G4int iy,
|
||||
const G4MaterialCutsCouple* couple);
|
||||
|
||||
void MakeSamplingTables();
|
||||
|
||||
void SetCurrentElement(G4double Z);
|
||||
|
||||
G4double InterpolatedIntegralCrossSection(G4double dt, G4double dz,
|
||||
G4int iz, G4int it, G4int iy, G4double z);
|
||||
|
||||
// hide assignment operator
|
||||
G4MuPairProductionModel & operator=(const G4MuPairProductionModel &right);
|
||||
G4MuPairProductionModel(const G4MuPairProductionModel&);
|
||||
@@ -143,35 +148,83 @@ private:
|
||||
G4double minPairEnergy;
|
||||
G4double highKinEnergy;
|
||||
G4double lowKinEnergy;
|
||||
G4double lowestKinEnergy;
|
||||
|
||||
G4double factorForCross;
|
||||
G4double sqrte;
|
||||
G4double particleMass;
|
||||
G4double currentZ;
|
||||
G4double z13;
|
||||
G4double z23;
|
||||
G4double lnZ;
|
||||
|
||||
|
||||
const G4ParticleDefinition* particle;
|
||||
|
||||
// tables for sampling
|
||||
G4int nzdat,ntdat,NBIN;
|
||||
static G4double zdat[5],adat[5],tdat[8];
|
||||
G4int nzdat;
|
||||
G4int ntdat;
|
||||
G4int nbiny;
|
||||
size_t nmaxElements;
|
||||
static G4double zdat[5],adat[5],tdat[8],xgi[8],wgi[8];
|
||||
G4double ya[1001],proba[5][8][1001];
|
||||
|
||||
std::vector<G4DataVector*> partialSumSigma;
|
||||
G4double ymin;
|
||||
G4double ymax;
|
||||
G4double dy;
|
||||
|
||||
G4bool samplingTablesAreFilled;
|
||||
std::vector<G4double> partialSum;
|
||||
};
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
inline
|
||||
G4double G4MuPairProductionModel::MaxSecondaryEnergy(
|
||||
const G4DynamicParticle* dynParticle)
|
||||
{
|
||||
return dynParticle->GetKineticEnergy();
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
G4double G4MuPairProductionModel::MaxSecondaryEnergy(
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy)
|
||||
{
|
||||
return kineticEnergy;
|
||||
G4double e = dynParticle->GetKineticEnergy();
|
||||
G4double maxPairEnergy = e + particleMass*(1.0 - 0.75*sqrte*z13);
|
||||
return maxPairEnergy;
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
G4double G4MuPairProductionModel::MaxSecondaryEnergy(
|
||||
const G4ParticleDefinition*,
|
||||
G4double kineticEnergy)
|
||||
{
|
||||
G4double maxPairEnergy = kineticEnergy + particleMass*(1.0 - 0.75*sqrte*z13);
|
||||
return maxPairEnergy;
|
||||
}
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
void G4MuPairProductionModel::SetCurrentElement(G4double Z)
|
||||
{
|
||||
if(Z != currentZ) {
|
||||
currentZ = Z;
|
||||
z13 = pow(Z,0.333333333);
|
||||
z23 = z13*z13;
|
||||
lnZ = log(Z);
|
||||
}
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
inline
|
||||
G4double G4MuPairProductionModel::InterpolatedIntegralCrossSection(G4double dt, G4double dz,
|
||||
G4int iz, G4int it, G4int iy, G4double z)
|
||||
{
|
||||
G4double fac = 1./(zdat[iz] *(zdat[iz] +1.));
|
||||
G4double fac1 = 1./(zdat[iz-1]*(zdat[iz-1]+1.));
|
||||
G4double f0 = fac1*proba[iz-1][it-1][iy] + (fac*proba[iz][it-1][iy]-fac1*proba[iz-1][it-1][iy])*dz;
|
||||
G4double f1 = fac1*proba[iz-1][it ][iy] + (fac*proba[iz][it ][iy]-fac1*proba[iz-1][it ][iy])*dz;
|
||||
return (f0 + (f1-f0)*dt)*z*(z+1.);
|
||||
}
|
||||
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#endif
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VMuEnergyLoss.hh,v 1.9 2003/06/16 17:01:45 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// -------------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
//
|
||||
//
|
||||
// $Id: G4VMuEnergyLoss.icc,v 1.4 2003/01/17 18:54:40 vnivanch Exp $
|
||||
// GEANT4 tag $Name: geant4-06-00 $
|
||||
// GEANT4 tag $Name: geant4-05-02-patch-01 $
|
||||
// ---------------------------------------------------------------
|
||||
// GEANT 4 class inlined methods file
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user