48 lowEnergyLimit = 0 * eV;
49 intermediateEnergyLimit = 200 * eV;
50 highEnergyLimit = 1. * MeV;
66 G4cout <<
"Screened Rutherford Elastic model is constructed "
69 << lowEnergyLimit / eV <<
" eV - "
70 << highEnergyLimit / MeV <<
" MeV"
96 G4cout <<
"Calling G4DNAScreenedRutherfordElasticModel::Initialise()"
103 G4Exception (
"*** WARNING: the G4DNAScreenedRutherfordElasticModel is not "
104 "intented to be used with another particle than the electron",
111 G4Exception(
"*** WARNING: the G4DNAScreenedRutherfordElasticModel class is "
112 "not validated below 9 eV",
118 G4Exception(
"*** WARNING: the G4DNAScreenedRutherfordElasticModel class is "
119 "not validated above 1 MeV",
127 G4cout <<
"Screened Rutherford elastic model is initialized " <<
G4endl
135 if (isInitialised) {
return; }
142 isInitialised =
true;
202 if (verboseLevel > 3)
204 G4cout <<
"Calling CrossSectionPerVolume() of "
205 "G4DNAScreenedRutherfordElasticModel"
218 G4double n = ScreeningFactor(ekin,z);
219 G4double crossSection = RutherfordCrossSection(ekin, z);
220 sigma = pi * crossSection / (n * (n + 1.));
224 if (verboseLevel > 2)
226 G4cout <<
"__________________________________" <<
G4endl;
227 G4cout <<
"=== G4DNAScreenedRutherfordElasticModel - XS INFO START"
229 G4cout <<
"=== Kinetic energy(eV)=" << ekin/eV
230 <<
" particle : " << particleDefinition->GetParticleName()
232 G4cout <<
"=== Cross section per water molecule (cm^2)=" << sigma/cm/cm
234 G4cout <<
"=== Cross section per water molecule (cm^-1)="
235 << sigma*waterDensity/(1./cm) <<
G4endl;
236 G4cout <<
"=== G4DNAScreenedRutherfordElasticModel - XS INFO END"
241 return sigma*waterDensity;
246G4double G4DNAScreenedRutherfordElasticModel::RutherfordCrossSection(
G4double k,
258 G4double length = (e_squared * (k + electron_mass_c2))
259 / (4 * pi * epsilon0 * k * (k + 2 * electron_mass_c2));
260 G4double cross = z * (z + 1) * length * length;
286 G4double numerator = (alpha_1 + beta_1 *
G4Log(k / eV)) * constK
287 * std::pow(z, 2. / 3.);
289 k /= electron_mass_c2;
294 if (denominator > 0.) value = numerator / denominator;
309 if (verboseLevel > 3)
311 G4cout <<
"Calling SampleSecondaries() of "
312 "G4DNAScreenedRutherfordElasticModel"
320 if (electronEnergy0<intermediateEnergyLimit)
323 if (verboseLevel > 3)
324 {
G4cout <<
"---> Using Brenner & Zaider model" <<
G4endl;}
326 cosTheta = BrennerZaiderRandomizeCosTheta(electronEnergy0);
329 if (electronEnergy0>=intermediateEnergyLimit)
332 if (verboseLevel > 3)
333 {
G4cout <<
"---> Using Screened Rutherford model" <<
G4endl;}
336 cosTheta = ScreenedRutherfordRandomizeCosTheta(electronEnergy0,z);
345 G4double xDir = std::sqrt(1. - cosTheta*cosTheta);
347 xDir *= std::cos(phi);
348 yDir *= std::sin(phi);
350 G4ThreeVector zPrimeVers((xDir*xVers + yDir*yVers + cosTheta*zVers));
359G4double G4DNAScreenedRutherfordElasticModel::
360BrennerZaiderRandomizeCosTheta(
G4double k)
380 gamma = CalculatePolynomial(k, gamma100_200Coeff);
387 gamma =
G4Exp(CalculatePolynomial(k, gamma10_100Coeff));
391 gamma =
G4Exp(CalculatePolynomial(k, gamma035_10Coeff));
401 / (1. / (4. * gamma * gamma) + beta
402 / ((2. + 2. * delta) * (2. + 2. * delta)));
413 leftDenominator = (1. + 2.*gamma - cosTheta);
414 rightDenominator = (1. + 2.*delta + cosTheta);
415 if ( (leftDenominator * rightDenominator) != 0. )
417 fCosTheta = oneOverMax * (1./(leftDenominator*leftDenominator)
418 + beta/(rightDenominator*rightDenominator));
477 G4double S = 2.0 / (a1 * a2) + 2.0 * beta / (b1 * b2);
S = 1.0 /
S;
480 G4double A =
S * (b1 - beta * a2) + cp * a2 * b1;
481 G4double B =
S * (b1 * b2 + beta * a1 * a2) - cp * a2 * b1 * c1;
482 G4double C =
S * (b * b1 + beta * a * a2) - cp * a2 * b1 * c2;
485 return (-1.0 * B + std::sqrt(B * B - 4.0 * A * C)) / (2.0 * A);
531G4double G4DNAScreenedRutherfordElasticModel::
533 std::vector<G4double>& vec)
540 size_t size = vec.size();
555G4double G4DNAScreenedRutherfordElasticModel::
556ScreenedRutherfordRandomizeCosTheta(
G4double k,
585 fCosTheta = (1 + 2.*
n - cosTheta);
586 if (fCosTheta !=0.) fCosTheta = oneOverMax / (fCosTheta*fCosTheta);
618 G4double numerator = cp * (1.0 + 2.0 *
n) - n;
620 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.
G4double G4Log(G4double x)
G4GLOB_DLL std::ostream G4cout
Hep3Vector orthogonal() const
Hep3Vector cross(const Hep3Vector &) const
static G4DNAMolecularMaterial * Instance()
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
G4ParticleChangeForGamma * fParticleChangeForGamma
G4DNAScreenedRutherfordElasticModel(const G4ParticleDefinition *p=0, const G4String &nam="DNAScreenedRutherfordElasticModel")
virtual ~G4DNAScreenedRutherfordElasticModel()
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
virtual G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)
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)