48 intermediateEnergyLimit = 200. * eV;
65 G4cout <<
"Screened Rutherford Elastic model is constructed " <<
G4endl
97 G4cout <<
"Calling G4DNAUeharaScreenedRutherfordElasticModel::Initialise()"
104 G4Exception(
"*** WARNING: the G4DNAUeharaScreenedRutherfordElasticModel is "
105 "not intented to be used with another particle than the electron",
113 G4Exception(
"*** WARNING : the G4DNAUeharaScreenedRutherfordElasticModel "
114 "class is not validated below 9 eV",
120 G4Exception(
"*** WARNING: the G4DNAUeharaScreenedRutherfordElasticModel "
121 "class is used above 10 keV",
128 G4cout <<
"Screened Rutherford elastic model is initialized " <<
G4endl
136 if (isInitialised){
return; }
186 isInitialised =
true;
200 if (verboseLevel > 3)
203 <<
"Calling CrossSectionPerVolume() of G4DNAUeharaScreenedRutherfordElasticModel"
214 G4double n = ScreeningFactor(ekin,z);
215 G4double crossSection = RutherfordCrossSection(ekin, z);
216 sigma = pi * crossSection / (n * (n + 1.));
219 if (verboseLevel > 2)
221 G4cout <<
"__________________________________" <<
G4endl;
222 G4cout <<
"=== G4DNAUeharaScreenedRutherfordElasticModel - XS INFO START"
224 G4cout <<
"=== Kinetic energy(eV)=" << ekin/eV
225 <<
" particle : " << particleDefinition->GetParticleName() <<
G4endl;
226 G4cout <<
"=== Cross section per water molecule (cm^2)=" << sigma/cm/cm
228 G4cout <<
"=== Cross section per water molecule (cm^-1)="
229 << sigma*waterDensity/(1./cm) <<
G4endl;
230 G4cout <<
"=== G4DNAUeharaScreenedRutherfordElasticModel - XS INFO END"
235 return sigma*waterDensity;
241G4DNAUeharaScreenedRutherfordElasticModel::RutherfordCrossSection(
G4double k,
253 G4double length = (e_squared * (k + electron_mass_c2))
254 / (4 * pi * epsilon0 * k * (k + 2 * electron_mass_c2));
255 G4double cross = z * (z + 1) * length * length;
262G4double G4DNAUeharaScreenedRutherfordElasticModel::ScreeningFactor(
G4double k,
271 beta2 = 1. - 1. / ((1. + k / electron_mass_c2) * (1. + k / electron_mass_c2));
277 etaC = 1.13 + 3.76 * (z * z / (137 * 137 * beta2));
279 G4double numerator = etaC * constK * std::pow(z, 2. / 3.);
281 k /= electron_mass_c2;
286 if (denominator > 0.)
287 value = numerator / denominator;
303 if (verboseLevel > 3)
306 <<
"Calling SampleSecondaries() of G4DNAUeharaScreenedRutherfordElasticModel"
315 if (electronEnergy0<intermediateEnergyLimit)
318 if (verboseLevel > 3)
319 G4cout <<
"---> Using Brenner & Zaider model" <<
G4endl;
321 cosTheta = BrennerZaiderRandomizeCosTheta(electronEnergy0);
326 if (verboseLevel > 3)
327 G4cout <<
"---> Using Screened Rutherford model" <<
G4endl;
330 cosTheta = ScreenedRutherfordRandomizeCosTheta(electronEnergy0,z);
339 G4double xDir = std::sqrt(1. - cosTheta*cosTheta);
341 xDir *= std::cos(phi);
342 yDir *= std::sin(phi);
344 G4ThreeVector zPrimeVers((xDir*xVers + yDir*yVers + cosTheta*zVers));
354G4DNAUeharaScreenedRutherfordElasticModel::
355BrennerZaiderRandomizeCosTheta(
G4double k)
375 gamma = CalculatePolynomial(k, gamma100_200Coeff);
381 gamma =
G4Exp(CalculatePolynomial(k, gamma10_100Coeff));
385 gamma =
G4Exp(CalculatePolynomial(k, gamma035_10Coeff));
391 if (fasterCode ==
false)
394 / (1. / (4. * gamma * gamma)
395 + beta / ((2. + 2. * delta) * (2. + 2. * delta)));
406 leftDenominator = (1. + 2.*gamma - cosTheta);
407 rightDenominator = (1. + 2.*delta + cosTheta);
408 if ( (leftDenominator * rightDenominator) != 0. )
410 fCosTheta = oneOverMax * (1./(leftDenominator*leftDenominator)
411 + beta/(rightDenominator*rightDenominator));
470 G4double S = 2.0 / (a1 * a2) + 2.0 * beta / (b1 * b2);
S = 1.0 /
S;
473 G4double A =
S * (b1 - beta * a2) + cp * a2 * b1;
474 G4double B =
S * (b1 * b2 + beta * a1 * a2) - cp * a2 * b1 * c1;
475 G4double C =
S * (b * b1 + beta * a * a2) - cp * a2 * b1 * c2;
478 return (-1.0 * B + std::sqrt(B * B - 4.0 * A * C)) / (2.0 * A);
526G4DNAUeharaScreenedRutherfordElasticModel::
528 std::vector<G4double>& vec)
535 size_t size = vec.size();
551G4DNAUeharaScreenedRutherfordElasticModel::
552ScreenedRutherfordRandomizeCosTheta(
G4double k,
569 if (fasterCode ==
false)
581 fCosTheta = (1 + 2.*
n - cosTheta);
582 if (fCosTheta !=0.) fCosTheta = oneOverMax / (fCosTheta*fCosTheta);
614 G4double numerator = cp * (1.0 + 2.0 *
n) - n;
616 return numerator / denominator;
double B(double temperature)
double A(double 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=0, const G4String &nam="DNAUeharaScreenedRutherfordElasticModel")
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
virtual ~G4DNAUeharaScreenedRutherfordElasticModel()
G4ParticleChangeForGamma * fParticleChangeForGamma
virtual G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
const G4String & GetParticleName() const
void SetHighEnergyLimit(G4double)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
G4double LowEnergyLimit() const
G4double HighEnergyLimit() const
void SetLowEnergyLimit(G4double)