72 G4cout <<
"CPA100 excitation model is constructed " <<
G4endl;
87 std::map< G4String,G4DNACrossSectionDataSet*,std::less<G4String> >::iterator
pos;
103 G4cout <<
"Calling G4DNACPA100ExcitationModel::Initialise()" <<
G4endl;
105 G4String fileElectron(
"dna/sigma_excitation_e_cpa100");
135 G4cout <<
"CPA100 excitation model is initialized " << G4endl
162 G4cout <<
"Calling CrossSectionPerVolume() of G4DNACPA100ExcitationModel" <<
G4endl;
176 std::map< G4String,G4DNACrossSectionDataSet*,std::less<G4String> >::iterator
pos;
189 G4Exception(
"G4DNACPA100ExcitationModel::CrossSectionPerVolume",
"em0002",
196 G4cout <<
"__________________________________" <<
G4endl;
197 G4cout <<
"G4DNACPA100ExcitationModel - XS INFO START" <<
G4endl;
198 G4cout <<
"Kinetic energy(eV)=" << ekin/
eV <<
" particle : " << particleName <<
G4endl;
199 G4cout <<
"Cross section per water molecule (cm^2)=" << sigma/
cm/
cm <<
G4endl;
200 G4cout <<
"Cross section per water molecule (cm^-1)=" << sigma*waterDensity/(1./
cm) << G4endl;
203 G4cout <<
"G4DNACPA100ExcitationModel - XS INFO END" <<
G4endl;
206 return sigma*waterDensity;
220 G4cout <<
"Calling SampleSecondaries() of G4DNACPA100ExcitationModel" <<
G4endl;
228 G4double newEnergy = k - excitationEnergy;
240 cosTheta = std::sqrt(1.-cosTheta);
256 G4double CT1, ST1, CF1, SF1, CT2, ST2, CF2, SF2;
257 G4double sinTheta = std::sqrt (1-cosTheta*cosTheta);
269 ST1=std::sqrt(1.-CT1*CT1);
271 if (ST1!=0) CF1 = zVers.
x()/ST1;
else CF1 = std::cos(2. *
pi *
G4UniformRand());
272 if (ST1!=0) SF1 = zVers.
y()/ST1;
else SF1 = std::sqrt(1.-CF1*CF1);
281 A3 = sinTheta*std::cos(phi);
282 A4 = A3*CT1 + ST1*cosTheta;
283 A5 = sinTheta * std::sin(phi);
284 A2 = A4 * SF1 + A5 * CF1;
285 A1 = A4 * CF1 - A5 * SF1;
287 CT2 = CT1*cosTheta - ST1*A3;
288 ST2 = std::sqrt(1.-CT2*CT2);
290 if (ST2==0) ST2=1
E-6;
337 std::map< G4String,G4DNACrossSectionDataSet*,std::less<G4String> >::iterator
pos;
409 value += valuesBuffer[i];
420 if (valuesBuffer[i] > value)
422 delete[] valuesBuffer;
425 value -= valuesBuffer[i];
428 if (valuesBuffer)
delete[] valuesBuffer;
434 G4Exception(
"G4DNACPA100ExcitationModel::RandomSelect",
"em0002",