66 G4cout <<
"Ion elastic model is constructed " <<
G4endl<<
"Energy range: "
100 G4cout <<
"Calling G4DNAIonElasticModel::Initialise()" <<
G4endl;
107 G4cout <<
"G4DNAIonElasticModel: low energy limit increased from " <<
114 G4cout <<
"G4DNAIonElasticModel: high energy limit decreased from " <<
123 char *path = getenv(
"G4LEDATA");
127 G4Exception(
"G4IonElasticModel::Initialise",
"em0006",
133 std::ostringstream fullFileName;
146 (particleDefinition == protonDef && protonDef != 0)
148 (particleDefinition == hydrogenDef && hydrogenDef != 0)
153 totalXSFile =
"dna/sigma_elastic_proton_HTran";
156 fullFileName << path <<
"/dna/sigmadiff_cumulated_elastic_proton_HTran.dat";
160 (particleDefinition == instance->
GetIon(
"helium") && heliumDef)
162 (particleDefinition == instance->
GetIon(
"alpha+") && alphaplusDef)
164 (particleDefinition == instance->
GetIon(
"alpha++") && alphaplusplusDef)
169 totalXSFile =
"dna/sigma_elastic_alpha_HTran";
172 fullFileName << path <<
"/dna/sigmadiff_cumulated_elastic_alpha_HTran.dat";
177 std::ifstream diffCrossSection(fullFileName.str().c_str());
179 if (!diffCrossSection)
182 description <<
"Missing data file:"
183 <<fullFileName.str().c_str()<<
G4endl;
184 G4Exception(
"G4IonElasticModel::Initialise",
"em0003",
199 while(!diffCrossSection.eof())
203 diffCrossSection>>tDummy>>eDummy;
210 eVecm[tDummy].push_back(0.);
215 if (eDummy !=
eVecm[tDummy].back())
eVecm[tDummy].push_back(eDummy);
224 G4cout <<
"Loaded cross section files for ion elastic model" <<
G4endl;
252 G4cout <<
"Calling CrossSectionPerVolume() of G4DNAIonElasticModel"
276 G4Exception(
"G4DNAIonElasticModel::ComputeCrossSectionPerVolume",
"em0002",
283 G4cout <<
"__________________________________" <<
G4endl;
284 G4cout <<
"G4DNAIonElasticModel - XS INFO START" <<
G4endl;
285 G4cout <<
"Kinetic energy(eV)=" << ekin/
eV <<
" particle : " << particleName <<
G4endl;
286 G4cout <<
"Cross section per water molecule (cm^2)=" << sigma/
cm/
cm <<
G4endl;
287 G4cout <<
"Cross section per water molecule (cm^-1)=" << sigma*waterDensity/(1./
cm) << G4endl;
288 G4cout <<
"G4DNAIonElasticModel - XS INFO END" <<
G4endl;
291 return sigma*waterDensity;
298 std::vector<G4DynamicParticle*>* ,
305 G4cout <<
"Calling SampleSecondaries() of G4DNAIonElasticModel" <<
G4endl;
339 G4double xDir = std::sqrt(1. - cosTheta*cosTheta);
341 xDir *= std::cos(phi);
342 yDir *= std::sin(phi);
344 G4ThreeVector zPrimeVers((xDir*xVers + yDir*yVers + cosTheta*zVers));
351 depositEnergyCM = 4. * particleEnergy0 *
fParticle_Mass * water_mass *
356 if (!
statCode && (particleEnergy0 >= depositEnergyCM) )
388 std::vector<G4double>::iterator
t2 = std::upper_bound(
eTdummyVec.begin(),
390 std::vector<G4double>::iterator
t1 = t2 - 1;
392 std::vector<G4double>::iterator e12 = std::upper_bound(
eVecm[(*t1)].begin(),
395 std::vector<G4double>::iterator e11 = e12 - 1;
397 std::vector<G4double>::iterator e22 = std::upper_bound(
eVecm[(*t2)].begin(),
400 std::vector<G4double>::iterator e21 = e22 - 1;
414 if(xs11 == 0 && xs12 == 0 && xs21 == 0 && xs22 == 0)
return (0.);
416 theta =
QuadInterpolator(valueE11, valueE12, valueE21, valueE22, xs11, xs12,
417 xs21, xs22, valueT1, valueT2, k, integrDiff);
452 G4double a = (std::log10(xs2) - std::log10(xs1))
453 / (std::log10(e2) - std::log10(e1));
454 G4double b = std::log10(xs2) - a * std::log10(e2);
500 return Theta(particleDefinition, k /
eV, integrdiff);
512 G4cout <<
"*** WARNING : the G4DNAIonElasticModel class is not "
513 "activated below 100 eV !"