69 G4cout <<
"CPA100 excitation model is constructed " <<
G4endl;
84 std::map< G4String,G4DNACrossSectionDataSet*,std::less<G4String> >::iterator
pos;
100 G4cout <<
"Calling G4DNACPA100ExcitationModel::Initialise()" <<
G4endl;
102 G4String fileElectron(
"dna/sigma_excitation_e_cpa100");
136 if (particle==electronDef)
145 G4cout <<
"CPA100 excitation model is initialized " << G4endl
172 G4cout <<
"Calling CrossSectionPerVolume() of G4DNACPA100ExcitationModel" <<
G4endl;
184 if(waterDensity!= 0.0)
188 std::map< G4String,G4double,std::less<G4String> >::iterator pos1;
192 lowLim = pos1->second;
195 std::map< G4String,G4double,std::less<G4String> >::iterator pos2;
199 highLim = pos2->second;
202 if (ekin > lowLim && ekin < highLim)
204 std::map< G4String,G4DNACrossSectionDataSet*,std::less<G4String> >::iterator
pos;
217 G4Exception(
"G4DNACPA100ExcitationModel::CrossSectionPerVolume",
"em0002",
224 G4cout <<
"__________________________________" <<
G4endl;
225 G4cout <<
"G4DNACPA100ExcitationModel - XS INFO START" <<
G4endl;
226 G4cout <<
"Kinetic energy(eV)=" << ekin/
eV <<
" particle : " << particleName <<
G4endl;
227 G4cout <<
"Cross section per water molecule (cm^2)=" << sigma/
cm/
cm <<
G4endl;
228 G4cout <<
"Cross section per water molecule (cm^-1)=" << sigma*waterDensity/(1./
cm) << G4endl;
230 G4cout <<
"G4DNACPA100ExcitationModel - XS INFO END" <<
G4endl;
235 return sigma*waterDensity;
249 G4cout <<
"Calling SampleSecondaries() of G4DNACPA100ExcitationModel" <<
G4endl;
257 G4double newEnergy = k - excitationEnergy;
267 (excitationEnergy/k) / (1. + (k/(2*
electron_mass_c2))*(1.-excitationEnergy/k) );
269 cosTheta = std::sqrt(1.-cosTheta);
285 G4double CT1, ST1, CF1, SF1, CT2, ST2, CF2, SF2;
286 G4double sinTheta = std::sqrt (1-cosTheta*cosTheta);
298 ST1=std::sqrt(1.-CT1*CT1);
300 if (ST1!=0) CF1 = zVers.
x()/ST1;
else CF1 = std::cos(2. *
pi *
G4UniformRand());
301 if (ST1!=0) SF1 = zVers.
y()/ST1;
else SF1 = std::sqrt(1.-CF1*CF1);
310 A3 = sinTheta*std::cos(phi);
311 A4 = A3*CT1 + ST1*cosTheta;
312 A5 = sinTheta * std::sin(phi);
313 A2 = A4 * SF1 + A5 * CF1;
314 A1 = A4 * CF1 - A5 * SF1;
316 CT2 = CT1*cosTheta - ST1*A3;
317 ST2 = std::sqrt(1.-CT2*CT2);
319 if (ST2==0) ST2=1
E-6;
366 std::map< G4String,G4DNACrossSectionDataSet*,std::less<G4String> >::iterator
pos;
438 value += valuesBuffer[i];
449 if (valuesBuffer[i] > value)
451 delete[] valuesBuffer;
454 value -= valuesBuffer[i];
457 if (valuesBuffer)
delete[] valuesBuffer;
463 G4Exception(
"G4DNACPA100ExcitationModel::RandomSelect",
"em0002",
virtual G4bool LoadData(const G4String &argFileName)
static const G4double pos
void SetHighEnergyLimit(G4double)
virtual size_t NumberOfComponents(void) const
G4DNACPA100WaterExcitationStructure waterStructure
G4DNACPA100ExcitationModel(const G4ParticleDefinition *p=0, const G4String &nam="DNACPA100ExcitationModel")
static constexpr double keV
const std::vector< G4double > * fpMolWaterDensity
const G4ThreeVector & GetMomentumDirection() const
const G4String & GetParticleName() const
G4ParticleChangeForGamma * fParticleChangeForGamma
void SetProposedKineticEnergy(G4double proposedKinEnergy)
G4double ExcitationEnergy(G4int level)
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
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...
std::map< G4String, G4double, std::less< G4String > > highEnergyLimit
static constexpr double m
G4ParticleDefinition * GetDefinition() const
const XML_Char int const XML_Char * value
static constexpr double electron_mass_c2
static G4DNAMolecularMaterial * Instance()
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
void CreateWaterMolecule(ElectronicModification, G4int, const G4Track *)
static constexpr double eV
const G4Track * GetCurrentTrack() const
G4int RandomSelect(G4double energy, const G4String &particle)
std::map< G4String, G4double, std::less< G4String > > lowEnergyLimit
virtual G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)
static G4Electron * ElectronDefinition()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
void SetLowEnergyLimit(G4double)
G4double GetKineticEnergy() const
virtual G4double FindValue(G4double e, G4int componentId=0) const
static constexpr double cm
G4GLOB_DLL std::ostream G4cout
virtual const G4VEMDataSet * GetComponent(G4int componentId) const
static constexpr double pi
G4ParticleChangeForGamma * GetParticleChangeForGamma()
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &=*(new G4DataVector()))
virtual ~G4DNACPA100ExcitationModel()
G4double HighEnergyLimit() const
static G4DNAChemistryManager * Instance()
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
virtual G4double FindValue(G4double x, G4int componentId=0) const =0