61 G4cout <<
"Dingfelder charge decrease model is constructed " <<
G4endl;
84 G4cout <<
"Calling G4DNADingfelderChargeDecreaseModel::Initialise()"
116 if (particle==protonDef)
122 if (particle==alphaPlusPlusDef)
128 if (particle==alphaPlusDef)
150 f0[0][1]=1.;
a0[0][1]=0.95;
191 G4cout <<
"Dingfelder charge decrease model is initialized " <<
G4endl
220 <<
"Calling CrossSectionPerVolume() of G4DNADingfelderChargeDecreaseModel"
232 particleDefinition != instance->
GetIon(
"alpha++")
234 particleDefinition != instance->
GetIon(
"alpha+")
245 if(waterDensity!= 0.0)
250 std::map< G4String,G4double,std::less<G4String> >::iterator pos1;
255 lowLim = pos1->second;
258 std::map< G4String,G4double,std::less<G4String> >::iterator pos2;
263 highLim = pos2->second;
266 if (k >= lowLim && k < highLim)
268 crossSection =
Sum(k,particleDefinition);
273 G4cout <<
"_______________________________________" <<
G4endl;
274 G4cout <<
"G4DNADingfelderChargeDecreaeModel" <<
G4endl;
275 G4cout <<
"Kinetic energy(eV)=" << k/
eV <<
"particle :" << particleName <<
G4endl;
276 G4cout <<
"Cross section per water molecule (cm^2)=" << crossSection/
cm/
cm <<
G4endl;
277 G4cout <<
"Cross section per water molecule (cm^-1)=" << crossSection*
278 waterDensity/(1./
cm) << G4endl;
283 return crossSection*waterDensity;
300 <<
"Calling SampleSecondaries() of G4DNADingfelderChargeDecreaseModel"
321 - waterBindingEnergy + outgoingParticleBindingEnergy;
328 - waterBindingEnergy + outgoingParticleBindingEnergy;
334 G4Exception(
"G4DNADingfelderChargeDecreaseModel::SampleSecondaries",
"em0004",
347 + waterBindingEnergy - outgoingParticleBindingEnergy);
350 + waterBindingEnergy - outgoingParticleBindingEnergy);
356 fvect->push_back(dp);
368 G4int finalStateIndex)
377 if (particleDefinition == instance->
GetIon(
"alpha++"))
379 if (finalStateIndex == 0)
384 if (particleDefinition == instance->
GetIon(
"alpha+"))
393 G4int finalStateIndex)
398 return instance->
GetIon(
"hydrogen");
400 if (particleDefinition == instance->
GetIon(
"alpha++"))
402 if (finalStateIndex == 0)
403 return instance->
GetIon(
"alpha+");
404 return instance->
GetIon(
"helium");
407 if (particleDefinition == instance->
GetIon(
"alpha+"))
408 return instance->
GetIon(
"helium");
416 G4int finalStateIndex)
427 if (particleDefinition == instance->
GetIon(
"alpha++"))
435 if (finalStateIndex == 0)
438 return 10.79 * 2 *
eV;
441 if (particleDefinition == instance->
GetIon(
"alpha+"))
458 G4int finalStateIndex)
465 if (particleDefinition == instance->
GetIon(
"alpha++"))
470 if (finalStateIndex == 0)
473 return (54.509 + 24.587) *
eV;
476 if (particleDefinition == instance->
GetIon(
"alpha+"))
493 G4int particleTypeIndex = 0;
498 particleTypeIndex = 0;
499 if (particleDefinition == instance->
GetIon(
"alpha++"))
500 particleTypeIndex = 1;
501 if (particleDefinition == instance->
GetIon(
"alpha+"))
502 particleTypeIndex = 2;
522 if (
x1[index][particleTypeIndex] <
x0[index][particleTypeIndex])
532 x1[index][particleTypeIndex] =
x0[index][particleTypeIndex]
533 + std::pow((
a0[index][particleTypeIndex] -
a1[index][particleTypeIndex])
534 / (
c0[index][particleTypeIndex]
535 *
d0[index][particleTypeIndex]),
536 1. / (
d0[index][particleTypeIndex] - 1.));
537 b1[index][particleTypeIndex] = (
a0[index][particleTypeIndex]
538 -
a1[index][particleTypeIndex]) *
x1[index][particleTypeIndex]
539 +
b0[index][particleTypeIndex]
540 -
c0[index][particleTypeIndex]
541 * std::pow(
x1[index][particleTypeIndex]
542 -
x0[index][particleTypeIndex],
543 d0[index][particleTypeIndex]);
549 if (x <
x0[index][particleTypeIndex])
550 y =
a0[index][particleTypeIndex] * x +
b0[index][particleTypeIndex];
551 else if (x <
x1[index][particleTypeIndex])
552 y =
a0[index][particleTypeIndex] * x + b0[index][particleTypeIndex]
553 -
c0[index][particleTypeIndex]
554 * std::pow(x -
x0[index][particleTypeIndex],
555 d0[index][particleTypeIndex]);
557 y =
a1[index][particleTypeIndex] * x +
b1[index][particleTypeIndex];
559 return f0[index][particleTypeIndex] * std::pow(10., y) *
m *
m;
566 G4int particleTypeIndex = 0;
571 particleTypeIndex = 0;
572 if (particleDefinition == instance->
GetIon(
"alpha++"))
573 particleTypeIndex = 1;
574 if (particleDefinition == instance->
GetIon(
"alpha+"))
575 particleTypeIndex = 2;
596 if (values[i] > value)
612 G4int particleTypeIndex = 0;
617 particleTypeIndex = 0;
618 if (particleDefinition == instance->
GetIon(
"alpha++"))
619 particleTypeIndex = 1;
620 if (particleDefinition == instance->
GetIon(
"alpha+"))
621 particleTypeIndex = 2;
629 return totalCrossSection;
G4int RandomSelect(G4double energy, const G4ParticleDefinition *particle)
virtual G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)
static constexpr double MeV
void SetHighEnergyLimit(G4double)
G4int numberOfPartialCrossSections[3]
static constexpr double keV
G4double PartialCrossSection(G4double energy, G4int level, const G4ParticleDefinition *particle)
const G4ThreeVector & GetMomentumDirection() const
const G4String & GetParticleName() const
static G4Proton * Proton()
G4double Sum(G4double energy, const G4ParticleDefinition *particle)
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
G4double GetPDGMass() const
G4double LowEnergyLimit() const
const std::vector< double > * GetNumMolPerVolTableFor(const G4Material *) const
Retrieve a table of molecular densities (number of molecules per unit volume) in the G4 unit system f...
static constexpr double proton_mass_c2
static constexpr double m
std::map< G4String, G4double, std::less< G4String > > highEnergyLimit
G4ParticleDefinition * GetDefinition() const
const XML_Char int const XML_Char * value
static G4Proton * ProtonDefinition()
const std::vector< G4double > * fpMolWaterDensity
static constexpr double electron_mass_c2
static G4DNAMolecularMaterial * Instance()
void CreateWaterMolecule(ElectronicModification, G4int, const G4Track *)
static constexpr double eV
const G4Track * GetCurrentTrack() const
G4double WaterBindingEnergyConstant(G4ParticleDefinition *particleDefinition, G4int finalStateIndex)
G4double OutgoingParticleBindingEnergyConstant(G4ParticleDefinition *particleDefinition, G4int finalStateIndex)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
G4ParticleChangeForGamma * fParticleChangeForGamma
G4DNADingfelderChargeDecreaseModel(const G4ParticleDefinition *p=0, const G4String &nam="DNADingfelderChargeDecreaseModel")
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
G4ParticleDefinition * GetIon(const G4String &name)
void SetLowEnergyLimit(G4double)
static MCTruthManager * instance
static G4DNAGenericIonsManager * Instance(void)
G4int NumberOfFinalStates(G4ParticleDefinition *particleDefinition, G4int finalStateIndex)
std::map< G4String, G4double, std::less< G4String > > lowEnergyLimit
G4double GetKineticEnergy() const
static constexpr double cm
G4GLOB_DLL std::ostream G4cout
G4ParticleDefinition * OutgoingParticleDefinition(G4ParticleDefinition *particleDefinition, G4int finalStateIndex)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
G4double HighEnergyLimit() const
void ProposeTrackStatus(G4TrackStatus status)
static G4DNAChemistryManager * Instance()
virtual ~G4DNADingfelderChargeDecreaseModel()