45 intermediateEnergyLimit = 200. * eV;
46 iLowEnergyLimit = 9.*eV;
47 iHighEnergyLimit = 1.*MeV;
67 if(isInitialised) {
return; }
74 G4Exception(
"*** WARNING: the G4DNAUeharaScreenedRutherfordElasticModel is "
75 "not intented to be used with another particle than the electron",
82 G4cout <<
"G4DNAUeharaScreenedRutherfordElasticModel::Initialise()"
137 isInitialised =
true;
151 if (verboseLevel > 3)
154 <<
"Calling CrossSectionPerVolume() of G4DNAUeharaScreenedRutherfordElasticModel"
162 if(ekin < iLowEnergyLimit || ekin > iHighEnergyLimit) {
return sigma; }
167 G4double n = ScreeningFactor(ekin,z);
168 G4double crossSection = RutherfordCrossSection(ekin, z);
169 sigma = pi * crossSection / (n * (n + 1.));
172 if (verboseLevel > 2)
174 G4cout <<
"__________________________________" <<
G4endl;
175 G4cout <<
"=== G4DNAUeharaScreenedRutherfordElasticModel - XS INFO START"
177 G4cout <<
"=== Kinetic energy(eV)=" << ekin/eV
178 <<
" particle : " << particleDefinition->GetParticleName() <<
G4endl;
179 G4cout <<
"=== Cross section per water molecule (cm^2)=" << sigma/cm/cm
181 G4cout <<
"=== Cross section per water molecule (cm^-1)="
182 << sigma*waterDensity/(1./cm) <<
G4endl;
183 G4cout <<
"=== G4DNAUeharaScreenedRutherfordElasticModel - XS INFO END"
188 return sigma*waterDensity;
194G4DNAUeharaScreenedRutherfordElasticModel::RutherfordCrossSection(
G4double k,
206 G4double length = (e_squared * (k + electron_mass_c2))
207 / (4 * pi * epsilon0 * k * (k + 2 * electron_mass_c2));
208 G4double cross = z * (z + 1) * length * length;
215G4double G4DNAUeharaScreenedRutherfordElasticModel::ScreeningFactor(
G4double k,
224 beta2 = 1. - 1. / ((1. + k / electron_mass_c2) * (1. + k / electron_mass_c2));
230 etaC = 1.13 + 3.76 * (z * z / (137 * 137 * beta2));
232 G4double numerator = etaC * constK * std::pow(z, 2. / 3.);
234 k /= electron_mass_c2;
239 if (denominator > 0.)
240 value = numerator / denominator;
256 if (verboseLevel > 3)
259 <<
"Calling SampleSecondaries() of G4DNAUeharaScreenedRutherfordElasticModel"
265 if(electronEnergy0 < iLowEnergyLimit || electronEnergy0 > iHighEnergyLimit)
270 if (electronEnergy0<intermediateEnergyLimit)
273 if (verboseLevel > 3)
274 G4cout <<
"---> Using Brenner & Zaider model" <<
G4endl;
276 cosTheta = BrennerZaiderRandomizeCosTheta(electronEnergy0);
281 if (verboseLevel > 3)
282 G4cout <<
"---> Using Screened Rutherford model" <<
G4endl;
285 cosTheta = ScreenedRutherfordRandomizeCosTheta(electronEnergy0,z);
294 G4double xDir = std::sqrt(1. - cosTheta*cosTheta);
296 xDir *= std::cos(phi);
297 yDir *= std::sin(phi);
299 G4ThreeVector zPrimeVers((xDir*xVers + yDir*yVers + cosTheta*zVers));
309G4DNAUeharaScreenedRutherfordElasticModel::
310BrennerZaiderRandomizeCosTheta(
G4double k)
330 gamma = CalculatePolynomial(k, gamma100_200Coeff);
336 gamma =
G4Exp(CalculatePolynomial(k, gamma10_100Coeff));
340 gamma =
G4Exp(CalculatePolynomial(k, gamma035_10Coeff));
349 / (1. / (4. * gamma * gamma)
350 + beta / ((2. + 2. * delta) * (2. + 2. * delta)));
361 leftDenominator = (1. + 2.*gamma - cosTheta);
362 rightDenominator = (1. + 2.*delta + cosTheta);
363 if ( (leftDenominator * rightDenominator) != 0. )
365 fCosTheta = oneOverMax * (1./(leftDenominator*leftDenominator)
366 + beta/(rightDenominator*rightDenominator));
424 G4double S = 2.0 / (a1 * a2) + 2.0 * beta / (b1 * b2);
S = 1.0 /
S;
427 G4double A =
S * (b1 - beta * a2) + cp * a2 * b1;
428 G4double B =
S * (b1 * b2 + beta * a1 * a2) - cp * a2 * b1 * c1;
429 G4double C =
S * (b * b1 + beta * a * a2) - cp * a2 * b1 * c2;
432 return (-1.0 * B + std::sqrt(B * B - 4.0 *
A * C)) / (2.0 *
A);
480G4DNAUeharaScreenedRutherfordElasticModel::
482 std::vector<G4double>& vec)
489 size_t size = vec.size();
505G4DNAUeharaScreenedRutherfordElasticModel::
506ScreenedRutherfordRandomizeCosTheta(
G4double k,
535 fCosTheta = (1 + 2.*
n - cosTheta);
536 if (fCosTheta !=0.) fCosTheta = oneOverMax / (fCosTheta*fCosTheta);
567 G4double numerator = cp * (1.0 + 2.0 *
n) - n;
569 return numerator / denominator;
G4double C(G4double temp)
G4double S(G4double temp)
G4double B(G4double temperature)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4GLOB_DLL std::ostream G4cout
Hep3Vector orthogonal() const
Hep3Vector cross(const Hep3Vector &) const
static G4DNAMolecularMaterial * Instance()
G4DNAUeharaScreenedRutherfordElasticModel(const G4ParticleDefinition *p=nullptr, const G4String &nam="DNAUeharaScreenedRutherfordElasticModel")
G4ParticleChangeForGamma * fParticleChangeForGamma
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax) override
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
std::size_t GetIndex() const
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void ProposeMomentumDirection(const G4ThreeVector &Pfinal)
const G4String & GetParticleName() const
G4ParticleChangeForGamma * GetParticleChangeForGamma()
G4double LowEnergyLimit() const
G4double HighEnergyLimit() const