76 G4cout <<
"Rudd ionisation model is constructed " <<
G4endl;
98 std::map<G4String, G4DNACrossSectionDataSet*, std::less<G4String> >::iterator
pos;
119 G4cout <<
"Calling G4DNARuddIonisationModel::Initialise()" <<
G4endl;
124 G4String fileProton(
"dna/sigma_ionisation_p_rudd");
125 G4String fileHydrogen(
"dna/sigma_ionisation_h_rudd");
126 G4String fileAlphaPlusPlus(
"dna/sigma_ionisation_alphaplusplus_rudd");
127 G4String fileAlphaPlus(
"dna/sigma_ionisation_alphaplus_rudd");
128 G4String fileHelium(
"dna/sigma_ionisation_he_rudd");
177 tableHydrogen->
LoadData(fileHydrogen);
184 tableFile[alphaPlusPlus] = fileAlphaPlusPlus;
194 tableAlphaPlusPlus->
LoadData(fileAlphaPlusPlus);
196 tableData[alphaPlusPlus] = tableAlphaPlusPlus;
211 tableAlphaPlus->
LoadData(fileAlphaPlus);
232 if (particle==protonDef)
238 if (particle==hydrogenDef)
244 if (particle==heliumDef)
250 if (particle==alphaPlusDef)
256 if (particle==alphaPlusPlusDef)
264 G4cout <<
"Rudd ionisation model is initialized " <<
G4endl
296 G4cout <<
"Calling CrossSectionPerVolume() of G4DNARuddIonisationModel"
308 particleDefinition != instance->
GetIon(
"hydrogen")
310 particleDefinition != instance->
GetIon(
"alpha++")
312 particleDefinition != instance->
GetIon(
"alpha+")
314 particleDefinition != instance->
GetIon(
"helium")
322 || particleDefinition == instance->
GetIon(
"hydrogen")
327 if ( particleDefinition == instance->
GetIon(
"alpha++")
328 || particleDefinition == instance->
GetIon(
"alpha+")
329 || particleDefinition == instance->
GetIon(
"helium")
339 if(waterDensity!= 0.0)
355 std::map< G4String,G4double,std::less<G4String> >::iterator pos2;
360 highLim = pos2->second;
367 if (k < lowLim) k = lowLim;
371 std::map< G4String,G4DNACrossSectionDataSet*,std::less<G4String> >::iterator
pos;
384 G4Exception(
"G4DNARuddIonisationModel::CrossSectionPerVolume",
"em0002",
392 G4cout <<
"__________________________________" <<
G4endl;
393 G4cout <<
"G4DNARuddIonisationModel - XS INFO START" <<
G4endl;
395 G4cout <<
"Cross section per water molecule (cm^2)=" << sigma/
cm/
cm <<
G4endl;
396 G4cout <<
"Cross section per water molecule (cm^-1)=" << sigma*waterDensity/(1./
cm) << G4endl;
398 G4cout <<
"G4DNARuddIonisationModel - XS INFO END" <<
G4endl;
406 G4cout <<
"Warning : RuddIonisationModel: WATER DENSITY IS NULL" <<
G4endl;
410 return sigma*waterDensity;
425 G4cout <<
"Calling SampleSecondaries() of G4DNARuddIonisationModel"
463 std::map< G4String,G4double,std::less<G4String> >::iterator pos2;
468 highLim = pos2->second;
471 if (k >= lowLim && k <= highLim)
488 G4int secNumberInit = 0;
489 G4int secNumberFinal = 0;
499 if (ionizationShell <5 && ionizationShell >1)
503 else if (ionizationShell <2)
518 secNumberInit = fvect->size();
520 secNumberFinal = fvect->size();
549 G4double scatteredEnergy = k-bindingEnergy-secondaryKinetic;
551 for (
G4int j=secNumberInit; j < secNumberFinal; j++)
554 deexSecEnergy = deexSecEnergy + (*fvect)[j]->GetKineticEnergy();
576 fvect->push_back(dp);
601 G4double maximumKineticEnergyTransfer = 0.;
607 || particleDefinition == instance->
GetIon(
"hydrogen"))
609 maximumKineticEnergyTransfer = 4. * (electron_mass_c2 / proton_mass_c2) * k;
612 else if (particleDefinition == instance->
GetIon(
"helium")
613 || particleDefinition == instance->
GetIon(
"alpha+")
614 || particleDefinition == instance->
GetIon(
"alpha++"))
616 maximumKineticEnergyTransfer = 4. * (0.511 / 3728) * k;
627 if (differentialCrossSection >= crossSectionMaximum)
628 crossSectionMaximum = differentialCrossSection;
635 secElecKinetic =
G4UniformRand()* maximumKineticEnergyTransfer;
641 return (secElecKinetic);
689 G4int ionizationLevelIndex)
707 const G4int j = ionizationLevelIndex;
722 const G4double Bj[5] = { 12.60 *
eV, 14.70 *
eV, 18.40 *
eV, 32.20 *
eV, 540
756 const G4double Gj[5] = { 0.99, 1.11, 1.11, 0.52, 1. };
766 G4double w = wBig / Bj[ionizationLevelIndex];
775 G4bool isProtonOrHydrogen =
false;
779 || particleDefinition == instance->
GetIon(
"hydrogen"))
781 isProtonOrHydrogen =
true;
782 tau = (electron_mass_c2 / proton_mass_c2) * k;
785 else if (particleDefinition == instance->
GetIon(
"helium")
786 || particleDefinition == instance->
GetIon(
"alpha+")
787 || particleDefinition == instance->
GetIon(
"alpha++"))
790 tau = (0.511 / 3728.) * k;
793 G4double S = 4. *
pi * Bohr_radius * Bohr_radius * n
794 * std::pow((Ry / Bj[ionizationLevelIndex]), 2);
796 S = 4. *
pi * Bohr_radius * Bohr_radius * n
800 G4double v2 = tau / Bj[ionizationLevelIndex];
805 G4double wc = 4. * v2 - 2. * v - (Ry / (4. * Bj[ionizationLevelIndex]));
807 wc = 4. * v2 - 2. * v
810 G4double L1 = (C1 * std::pow(v, (D1))) / (1. + E1 * std::pow(v, (D1 + 4.)));
811 G4double L2 = C2 * std::pow(v, (D2));
812 G4double H1 = (A1 * std::log(1. + v2)) / (v2 + (B1 / v2));
813 G4double H2 = (A2 / v2) + (B2 / (v2 * v2));
816 G4double F2 = (L2 * H2) / (L2 + H2);
820 * (S / Bj[ionizationLevelIndex])
822 / (std::pow((1. + w), 3)
823 * (1. + std::exp(alphaConst * (w - wc) / v))));
829 / (std::pow((1. + w), 3)
830 * (1. + std::exp(alphaConst * (w - wc) / v))));
832 if ((particleDefinition == instance->
GetIon(
"hydrogen"))
833 && (ionizationLevelIndex == 4))
838 / (std::pow((1. + w), 3)
839 * (1. + std::exp(alphaConst * (w - wc) / v))));
844 if (isProtonOrHydrogen)
849 if (particleDefinition == instance->
GetIon(
"alpha++"))
859 else if (particleDefinition == instance->
GetIon(
"alpha+"))
871 else if (particleDefinition == instance->
GetIon(
"helium"))
887 sigma = Gj[j] * (S / Bj[ionizationLevelIndex])
889 / (std::pow((1. + w), 3)
890 * (1. + std::exp(alphaConst * (w - wc) / v))));
896 / (std::pow((1. + w), 3)
897 * (1. + std::exp(alphaConst * (w - wc) / v))));
909 return zEff * zEff * sigma;
925 G4double r =
R(t, energyTransferred, slaterEffectiveChg, shellNumber);
926 G4double value = 1. - std::exp(-2 * r) * ((2. * r + 2.) * r + 1.);
941 G4double r =
R(t, energyTransferred, slaterEffectiveChg, shellNumber);
943 - std::exp(-2 * r) * (((2. * r * r + 2.) * r + 2.) * r + 1.);
959 G4double r =
R(t, energyTransferred, slaterEffectiveChg, shellNumber);
962 * ((((2. / 3. * r + 4. / 3.) * r + 2.) * r + 2.) * r + 1.);
977 G4double tElectron = 0.511 / 3728. * t;
980 G4double value = std::sqrt(2. * tElectron / H) / (energyTransferred / H)
981 * (slaterEffectiveChg / shellNumber);
997 }
else if (particleDefinition == instance->
GetIon(
"hydrogen"))
999 G4double value = (std::log10(k /
eV) - 4.2) / 0.5;
1001 return ((0.6 / (1 + std::exp(value))) + 0.9);
1022 std::map<G4String, G4DNACrossSectionDataSet*, std::less<G4String> >::iterator
pos;
1041 value += valuesBuffer[i];
1052 if (valuesBuffer[i] > value)
1054 delete[] valuesBuffer;
1057 value -= valuesBuffer[i];
1061 delete[] valuesBuffer;
1066 G4Exception(
"G4DNARuddIonisationModel::RandomSelect",
1069 "Model not applicable to particle type.");
1089 std::map<G4String, G4double, std::less<G4String> >::iterator pos1;
1094 lowLim = pos1->second;
1097 std::map<G4String, G4double, std::less<G4String> >::iterator pos2;
1102 highLim = pos2->second;
1105 if (k >= lowLim && k <= highLim)
1107 std::map<G4String, G4DNACrossSectionDataSet*, std::less<G4String> >::iterator
pos;
1119 G4Exception(
"G4DNARuddIonisationModel::PartialCrossSection",
1122 "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()
const G4double w[NPOINTSGL]
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
G4double lowEnergyLimitForZ2
const G4ThreeVector & GetMomentumDirection() const
const std::vector< G4double > * fpWaterDensity
G4double R(G4double t, G4double energyTransferred, G4double slaterEffectiveChg, G4double shellNumber)
std::map< G4String, G4double, std::less< G4String > > highEnergyLimit
static G4Proton * Proton()
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)
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 MCTruthManager * instance
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)
static const double eplus
G4double GetPDGCharge() const
G4ThreeVector G4ParticleMomentum
G4double bindingEnergy(G4int A, G4int Z)
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)