60 G4cout <<
"Dingfelder charge decrease model is constructed " <<
G4endl;
77 G4cout <<
"Calling G4DNADingfelderChargeDecreaseModel::Initialise()" <<
G4endl;
107 if (particle==protonDef)
113 if (particle==alphaPlusPlusDef)
119 if (particle==alphaPlusDef)
141 f0[0][1]=1.;
a0[0][1]=0.95;
182 G4cout <<
"Dingfelder charge decrease model is initialized " << G4endl
208 G4cout <<
"Calling CrossSectionPerVolume() of G4DNADingfelderChargeDecreaseModel" <<
G4endl;
218 particleDefinition != instance->
GetIon(
"alpha++")
220 particleDefinition != instance->
GetIon(
"alpha+")
231 if(waterDensity!= 0.0)
236 std::map< G4String,G4double,std::less<G4String> >::iterator pos1;
241 lowLim = pos1->second;
244 std::map< G4String,G4double,std::less<G4String> >::iterator pos2;
249 highLim = pos2->second;
252 if (k >= lowLim && k < highLim)
254 crossSection =
Sum(k,particleDefinition);
259 G4cout <<
"_______________________________________" <<
G4endl;
260 G4cout <<
"°°° G4DNADingfelderChargeDecreaeModel" <<
G4endl;
261 G4cout <<
"---> Kinetic energy(eV)=" << k/
eV <<
"particle :" << particleName <<
G4endl;
262 G4cout <<
" - Cross section per water molecule (cm^2)=" << crossSection/
cm/
cm <<
G4endl;
263 G4cout <<
" - Cross section per water molecule (cm^-1)=" << crossSection*
264 waterDensity/(1./
cm) << G4endl;
269 return crossSection*waterDensity;
283 G4cout <<
"Calling SampleSecondaries() of G4DNADingfelderChargeDecreaseModel" <<
G4endl;
299 outK = inK - n*(inK*electron_mass_c2/proton_mass_c2) - waterBindingEnergy + outgoingParticleBindingEnergy;
301 outK = inK - n*(inK*electron_mass_c2/particleMass) - waterBindingEnergy + outgoingParticleBindingEnergy;
305 G4Exception(
"G4DNADingfelderChargeDecreaseModel::SampleSecondaries",
"em0004",
315 fvect->push_back(dp);
322 G4int finalStateIndex )
330 if (particleDefinition == instance->
GetIon(
"alpha++") )
332 if (finalStateIndex==0)
return 1;
336 if (particleDefinition == instance->
GetIon(
"alpha+") )
return 1;
344 G4int finalStateIndex)
350 if (particleDefinition == instance->
GetIon(
"alpha++") )
352 if (finalStateIndex == 0)
return instance->
GetIon(
"alpha+");
353 return instance->
GetIon(
"helium");
356 if (particleDefinition == instance->
GetIon(
"alpha+") )
return instance->
GetIon(
"helium");
364 G4int finalStateIndex )
374 if (particleDefinition == instance->
GetIon(
"alpha++") )
382 if (finalStateIndex == 0)
return 10.79*
eV;
387 if (particleDefinition == instance->
GetIon(
"alpha+") )
404 G4int finalStateIndex)
410 if (particleDefinition == instance->
GetIon(
"alpha++") )
415 if (finalStateIndex==0)
return 54.509*
eV;
417 return (54.509 + 24.587)*
eV;
420 if (particleDefinition == instance->
GetIon(
"alpha+") )
436 G4int particleTypeIndex = 0;
441 if (particleDefinition == instance->
GetIon(
"alpha++")) particleTypeIndex=1;
442 if (particleDefinition == instance->
GetIon(
"alpha+")) particleTypeIndex=2;
462 if (
x1[index][particleTypeIndex]<
x0[index][particleTypeIndex])
472 x1[index][particleTypeIndex]=
x0[index][particleTypeIndex] + std::pow((
a0[index][particleTypeIndex] -
a1[index][particleTypeIndex])
473 / (
c0[index][particleTypeIndex] *
d0[index][particleTypeIndex]), 1. / (
d0[index][particleTypeIndex] - 1.));
474 b1[index][particleTypeIndex]=(
a0[index][particleTypeIndex] -
a1[index][particleTypeIndex]) *
x1[index][particleTypeIndex]
475 +
b0[index][particleTypeIndex] -
c0[index][particleTypeIndex] * std::pow(
x1[index][particleTypeIndex]
476 -
x0[index][particleTypeIndex],
d0[index][particleTypeIndex]);
482 if (x<
x0[index][particleTypeIndex])
483 y=
a0[index][particleTypeIndex] * x +
b0[index][particleTypeIndex];
484 else if (x<
x1[index][particleTypeIndex])
485 y=
a0[index][particleTypeIndex] * x + b0[index][particleTypeIndex] -
c0[index][particleTypeIndex]
486 * std::pow(x -
x0[index][particleTypeIndex],
d0[index][particleTypeIndex]);
488 y=
a1[index][particleTypeIndex] * x +
b1[index][particleTypeIndex];
490 return f0[index][particleTypeIndex] * std::pow(10., y)*
m*
m;
497 G4int particleTypeIndex = 0;
502 if (particleDefinition == instance->
GetIon(
"alpha++")) particleTypeIndex = 1;
503 if (particleDefinition == instance->
GetIon(
"alpha+")) particleTypeIndex = 2;
539 G4int particleTypeIndex = 0;
544 if (particleDefinition == instance->
GetIon(
"alpha++")) particleTypeIndex=1;
545 if (particleDefinition == instance->
GetIon(
"alpha+")) particleTypeIndex=2;
553 return totalCrossSection;
G4DNADingfelderChargeDecreaseModel(const G4ParticleDefinition *p=0, const G4String &nam="DNADingfelderChargeDecreaseModel")
G4double LowEnergyLimit() const
G4double GetKineticEnergy() const
G4double HighEnergyLimit() const
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)
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
static G4Proton * ProtonDefinition()
G4ParticleDefinition * GetDefinition() const
virtual ~G4DNADingfelderChargeDecreaseModel()
G4ParticleChangeForGamma * fParticleChangeForGamma
const G4String & GetParticleName() const
G4double WaterBindingEnergyConstant(G4ParticleDefinition *particleDefinition, G4int finalStateIndex)
std::map< G4String, G4double, std::less< G4String > > lowEnergyLimit
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
void SetHighEnergyLimit(G4double)
G4double OutgoingParticleBindingEnergyConstant(G4ParticleDefinition *particleDefinition, G4int finalStateIndex)
G4GLOB_DLL std::ostream G4cout
const std::vector< double > * GetNumMolPerVolTableFor(const G4Material *) const
G4double PartialCrossSection(G4double energy, G4int level, const G4ParticleDefinition *particle)
const G4ThreeVector & GetMomentumDirection() const
static G4Proton * Proton()
static G4DNAGenericIonsManager * Instance(void)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
std::map< G4String, G4double, std::less< G4String > > highEnergyLimit
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double Sum(G4double energy, const G4ParticleDefinition *particle)
static G4DNAMolecularMaterial * Instance()
G4double GetPDGMass() const
G4int NumberOfFinalStates(G4ParticleDefinition *particleDefinition, G4int finalStateIndex)
static MCTruthManager * instance
G4ParticleDefinition * OutgoingParticleDefinition(G4ParticleDefinition *particleDefinition, G4int finalStateIndex)
void ProposeTrackStatus(G4TrackStatus status)
void SetLowEnergyLimit(G4double)
const std::vector< G4double > * fpMolWaterDensity
G4int numberOfPartialCrossSections[3]
G4int RandomSelect(G4double energy, const G4ParticleDefinition *particle)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
G4ParticleDefinition * GetIon(const G4String &name)