77 G4cout <<
"Rudd ionisation model is constructed " <<
G4endl;
99 std::map<G4String, G4DNACrossSectionDataSet*, std::less<G4String> >::iterator
pos;
120 G4cout <<
"Calling G4DNARuddIonisationModel::Initialise()" <<
G4endl;
125 G4String fileProton(
"dna/sigma_ionisation_p_rudd");
126 G4String fileHydrogen(
"dna/sigma_ionisation_h_rudd");
127 G4String fileAlphaPlusPlus(
"dna/sigma_ionisation_alphaplusplus_rudd");
128 G4String fileAlphaPlus(
"dna/sigma_ionisation_alphaplus_rudd");
129 G4String fileHelium(
"dna/sigma_ionisation_he_rudd");
178 tableHydrogen->
LoadData(fileHydrogen);
185 tableFile[alphaPlusPlus] = fileAlphaPlusPlus;
195 tableAlphaPlusPlus->
LoadData(fileAlphaPlusPlus);
197 tableData[alphaPlusPlus] = tableAlphaPlusPlus;
212 tableAlphaPlus->
LoadData(fileAlphaPlus);
233 if (particle==protonDef)
239 if (particle==hydrogenDef)
245 if (particle==heliumDef)
251 if (particle==alphaPlusDef)
257 if (particle==alphaPlusPlusDef)
265 G4cout <<
"Rudd ionisation model is initialized " <<
G4endl
297 G4cout <<
"Calling CrossSectionPerVolume() of G4DNARuddIonisationModel"
309 particleDefinition != instance->
GetIon(
"hydrogen")
311 particleDefinition != instance->
GetIon(
"alpha++")
313 particleDefinition != instance->
GetIon(
"alpha+")
315 particleDefinition != instance->
GetIon(
"helium")
323 || particleDefinition == instance->
GetIon(
"hydrogen")
328 if ( particleDefinition == instance->
GetIon(
"alpha++")
329 || particleDefinition == instance->
GetIon(
"alpha+")
330 || particleDefinition == instance->
GetIon(
"helium")
340 if(waterDensity!= 0.0)
356 std::map< G4String,G4double,std::less<G4String> >::iterator pos2;
361 highLim = pos2->second;
368 if (k < lowLim) k = lowLim;
372 std::map< G4String,G4DNACrossSectionDataSet*,std::less<G4String> >::iterator
pos;
385 G4Exception(
"G4DNARuddIonisationModel::CrossSectionPerVolume",
"em0002",
393 G4cout <<
"__________________________________" <<
G4endl;
394 G4cout <<
"G4DNARuddIonisationModel - XS INFO START" <<
G4endl;
396 G4cout <<
"Cross section per water molecule (cm^2)=" << sigma/
cm/
cm <<
G4endl;
397 G4cout <<
"Cross section per water molecule (cm^-1)=" << sigma*waterDensity/(1./
cm) << G4endl;
399 G4cout <<
"G4DNARuddIonisationModel - XS INFO END" <<
G4endl;
407 G4cout <<
"Warning : RuddIonisationModel: WATER DENSITY IS NULL" <<
G4endl;
411 return sigma*waterDensity;
426 G4cout <<
"Calling SampleSecondaries() of G4DNARuddIonisationModel"
464 std::map< G4String,G4double,std::less<G4String> >::iterator pos2;
469 highLim = pos2->second;
472 if (k >= lowLim && k <= highLim)
489 G4int secNumberInit = 0;
490 G4int secNumberFinal = 0;
496 if (k<bindingEnergy)
return;
504 if (ionizationShell <5 && ionizationShell >1)
508 else if (ionizationShell <2)
523 secNumberInit = fvect->size();
525 secNumberFinal = fvect->size();
554 G4double scatteredEnergy = k-bindingEnergy-secondaryKinetic;
556 for (
G4int j=secNumberInit; j < secNumberFinal; j++)
559 deexSecEnergy = deexSecEnergy + (*fvect)[j]->GetKineticEnergy();
581 fvect->push_back(dp);
606 G4double maximumKineticEnergyTransfer = 0.;
612 || particleDefinition == instance->
GetIon(
"hydrogen"))
614 maximumKineticEnergyTransfer = 4. * (electron_mass_c2 / proton_mass_c2) * k;
617 else if (particleDefinition == instance->
GetIon(
"helium")
618 || particleDefinition == instance->
GetIon(
"alpha+")
619 || particleDefinition == instance->
GetIon(
"alpha++"))
621 maximumKineticEnergyTransfer = 4. * (0.511 / 3728) * k;
632 if (differentialCrossSection >= crossSectionMaximum)
633 crossSectionMaximum = differentialCrossSection;
640 secElecKinetic =
G4UniformRand()* maximumKineticEnergyTransfer;
646 return (secElecKinetic);
694 G4int ionizationLevelIndex)
712 const G4int j = ionizationLevelIndex;
727 const G4double Bj[5] = { 12.60 *
eV, 14.70 *
eV, 18.40 *
eV, 32.20 *
eV, 540
761 const G4double Gj[5] = { 0.99, 1.11, 1.11, 0.52, 1. };
771 G4double w = wBig / Bj[ionizationLevelIndex];
780 G4bool isProtonOrHydrogen =
false;
784 || particleDefinition == instance->
GetIon(
"hydrogen"))
786 isProtonOrHydrogen =
true;
787 tau = (electron_mass_c2 / proton_mass_c2) * k;
790 else if (particleDefinition == instance->
GetIon(
"helium")
791 || particleDefinition == instance->
GetIon(
"alpha+")
792 || particleDefinition == instance->
GetIon(
"alpha++"))
795 tau = (0.511 / 3728.) * k;
798 G4double S = 4. *
pi * Bohr_radius * Bohr_radius * n
799 * std::pow((Ry / Bj[ionizationLevelIndex]), 2);
801 S = 4. *
pi * Bohr_radius * Bohr_radius * n
805 G4double v2 = tau / Bj[ionizationLevelIndex];
810 G4double wc = 4. * v2 - 2. * v - (Ry / (4. * Bj[ionizationLevelIndex]));
812 wc = 4. * v2 - 2. * v
815 G4double L1 = (C1 * std::pow(v, (D1))) / (1. + E1 * std::pow(v, (D1 + 4.)));
816 G4double L2 = C2 * std::pow(v, (D2));
817 G4double H1 = (A1 * std::log(1. + v2)) / (v2 + (B1 / v2));
818 G4double H2 = (A2 / v2) + (B2 / (v2 * v2));
821 G4double F2 = (L2 * H2) / (L2 + H2);
825 * (S / Bj[ionizationLevelIndex])
827 / (std::pow((1. + w), 3)
828 * (1. +
G4Exp(alphaConst * (w - wc) / v))));
834 / (std::pow((1. + w), 3)
835 * (1. +
G4Exp(alphaConst * (w - wc) / v))));
837 if ((particleDefinition == instance->
GetIon(
"hydrogen"))
838 && (ionizationLevelIndex == 4))
843 / (std::pow((1. + w), 3)
844 * (1. +
G4Exp(alphaConst * (w - wc) / v))));
849 if (isProtonOrHydrogen)
854 if (particleDefinition == instance->
GetIon(
"alpha++"))
864 else if (particleDefinition == instance->
GetIon(
"alpha+"))
876 else if (particleDefinition == instance->
GetIon(
"helium"))
892 sigma = Gj[j] * (S / Bj[ionizationLevelIndex])
894 / (std::pow((1. + w), 3)
895 * (1. +
G4Exp(alphaConst * (w - wc) / v))));
901 / (std::pow((1. + w), 3)
902 * (1. +
G4Exp(alphaConst * (w - wc) / v))));
914 return zEff * zEff * sigma;
930 G4double r =
R(t, energyTransferred, slaterEffectiveChg, shellNumber);
931 G4double value = 1. -
G4Exp(-2 * r) * ((2. * r + 2.) * r + 1.);
946 G4double r =
R(t, energyTransferred, slaterEffectiveChg, shellNumber);
948 -
G4Exp(-2 * r) * (((2. * r * r + 2.) * r + 2.) * r + 1.);
964 G4double r =
R(t, energyTransferred, slaterEffectiveChg, shellNumber);
967 * ((((2. / 3. * r + 4. / 3.) * r + 2.) * r + 2.) * r + 1.);
982 G4double tElectron = 0.511 / 3728. * t;
985 G4double value = std::sqrt(2. * tElectron / H) / (energyTransferred / H)
986 * (slaterEffectiveChg / shellNumber);
1002 }
else if (particleDefinition == instance->
GetIon(
"hydrogen"))
1004 G4double value = (std::log10(k /
eV) - 4.2) / 0.5;
1006 return ((0.6 / (1 +
G4Exp(value))) + 0.9);
1027 std::map<G4String, G4DNACrossSectionDataSet*, std::less<G4String> >::iterator
pos;
1046 value += valuesBuffer[i];
1057 if (valuesBuffer[i] > value)
1059 delete[] valuesBuffer;
1062 value -= valuesBuffer[i];
1066 delete[] valuesBuffer;
1071 G4Exception(
"G4DNARuddIonisationModel::RandomSelect",
1074 "Model not applicable to particle type.");
1094 std::map<G4String, G4double, std::less<G4String> >::iterator pos1;
1099 lowLim = pos1->second;
1102 std::map<G4String, G4double, std::less<G4String> >::iterator pos2;
1107 highLim = pos2->second;
1110 if (k >= lowLim && k <= highLim)
1112 std::map<G4String, G4DNACrossSectionDataSet*, std::less<G4String> >::iterator
pos;
1124 G4Exception(
"G4DNARuddIonisationModel::PartialCrossSection",
1127 "Model not applicable to particle type.");
G4double LowEnergyLimit() const
virtual G4double FindValue(G4double x, G4int componentId=0) const =0
G4double killBelowEnergyForZ1
static G4LossTableManager * Instance()
G4double GetKineticEnergy() const
CLHEP::Hep3Vector G4ThreeVector
G4double HighEnergyLimit() const
const G4DynamicParticle * GetDynamicParticle() const
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
G4ParticleChangeForGamma * fParticleChangeForGamma
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
virtual ~G4DNARuddIonisationModel()
static G4Proton * ProtonDefinition()
std::map< G4String, G4double, std::less< G4String > > lowEnergyLimit
G4VEmAngularDistribution * GetAngularDistribution()
G4double DifferentialCrossSection(G4ParticleDefinition *particleDefinition, G4double k, G4double energyTransfer, G4int shell)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
virtual G4bool LoadData(const G4String &argFileName)
G4ParticleDefinition * GetDefinition() const
G4double S_2s(G4double t, G4double energyTransferred, G4double slaterEffectiveChg, G4double shellNumber)
G4double slaterEffectiveCharge[3]
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
G4double lowEnergyLimitOfModelForZ1
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
const G4String & GetParticleName() const
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void SetHighEnergyLimit(G4double)
virtual G4ThreeVector & SampleDirectionForShell(const G4DynamicParticle *dp, G4double finalTotalEnergy, G4int Z, G4int shellID, const G4Material *)
G4DNARuddIonisationModel(const G4ParticleDefinition *p=0, const G4String &nam="DNARuddIonisationModel")
virtual const G4AtomicShell * GetAtomicShell(G4int Z, G4AtomicShellEnumerator shell)=0
G4GLOB_DLL std::ostream G4cout
const std::vector< double > * GetNumMolPerVolTableFor(const G4Material *) const
static constexpr double m
G4double lowEnergyLimitForZ2
const G4ThreeVector & GetMomentumDirection() const
const std::vector< G4double > * fpWaterDensity
G4double R(G4double t, G4double energyTransferred, G4double slaterEffectiveChg, G4double shellNumber)
static constexpr double cm
static constexpr double eplus
std::map< G4String, G4double, std::less< G4String > > highEnergyLimit
static G4Proton * Proton()
static constexpr double eV
G4int RandomSelect(G4double energy, const G4String &particle)
static G4DNAGenericIonsManager * Instance(void)
virtual G4double FindValue(G4double e, G4int componentId=0) const
virtual size_t NumberOfComponents(void) const
G4double Sum(G4double energy, const G4String &particle)
G4double PartialCrossSection(const G4Track &track)
G4double killBelowEnergyForZ2
G4double IonisationEnergy(G4int level)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
static G4DNAChemistryManager * Instance()
static G4DNAMolecularMaterial * Instance()
G4double lowEnergyLimitOfModelForZ2
void CreateWaterMolecule(ElectronicModification, G4int, const G4Track *)
Method used by DNA physics model to create a water molecule.
G4double S_1s(G4double t, G4double energyTransferred, G4double slaterEffectiveChg, G4double shellNumber)
void SetAngularDistribution(G4VEmAngularDistribution *)
G4DNAWaterIonisationStructure waterStructure
G4double CorrectionFactor(G4ParticleDefinition *particleDefinition, G4double k)
const G4Track * GetCurrentTrack() const
G4double RandomizeEjectedElectronEnergy(G4ParticleDefinition *particleDefinition, G4double incomingParticleEnergy, G4int shell)
static G4Electron * Electron()
void SetProposedKineticEnergy(G4double proposedKinEnergy)
static constexpr double MeV
static MCTruthManager * instance
static constexpr double pi
G4VAtomDeexcitation * AtomDeexcitation()
void ProposeTrackStatus(G4TrackStatus status)
void SetLowEnergyLimit(G4double)
void GenerateParticles(std::vector< G4DynamicParticle * > *secVect, const G4AtomicShell *, G4int Z, G4int coupleIndex)
void SetDeexcitationFlag(G4bool val)
G4double GetPDGCharge() const
G4ThreeVector G4ParticleMomentum
G4double bindingEnergy(G4int A, G4int Z)
static constexpr double keV
virtual G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)
G4double lowEnergyLimitForZ1
G4double S_2p(G4double t, G4double energyTransferred, G4double slaterEffectiveChg, G4double shellNumber)
G4int GetLeptonNumber() const
G4VAtomDeexcitation * fAtomDeexcitation
static const G4double pos
G4ParticleChangeForGamma * GetParticleChangeForGamma()
const G4Material * GetMaterial() const
G4ParticleDefinition * GetIon(const G4String &name)