63 G4cout <<
"Sanche Excitation model is constructed "
97 G4cout <<
"Calling G4DNASancheExcitationModel::Initialise()"
106 G4Exception(
"*** WARNING : the G4DNASancheExcitationModel class is not "
107 "validated below 2 eV !",
113 G4cout <<
"G4DNASancheExcitationModel: high energy limit decreased from " <<
122 G4cout <<
"Sanche Excitation model is initialized " <<
G4endl
139 char *path = getenv(
"G4LEDATA");
140 std::ostringstream eFullFileName;
141 eFullFileName << path <<
"/dna/sigma_excitationvib_e_sanche.dat";
142 std::ifstream input(eFullFileName.str().c_str());
146 G4Exception(
"G4DNASancheExcitationModel::Initialise",
"em0003",
147 FatalException,
"Missing data file:/dna/sigma_excitationvib_e_sanche.dat");
170 for(
size_t i = 0 ; i < 9 ;++i)
173 levelXS.push_back(xs);
197 G4cout <<
"Calling CrossSectionPerVolume() of G4DNASancheExcitationModel"
214 G4cout <<
"__________________________________" <<
G4endl;
215 G4cout <<
"=== G4DNASancheExcitationModel - XS INFO START" <<
G4endl;
216 G4cout <<
"=== Kinetic energy(eV)=" << ekin/
eV <<
" particle : " << particleDefinition->GetParticleName() <<
G4endl;
217 G4cout <<
"=== Cross section per water molecule (cm^2)=" << sigma/
cm/
cm <<
G4endl;
218 G4cout <<
"=== Cross section per water molecule (cm^-1)=" << sigma*waterDensity/(1./
cm) <<
G4endl;
219 G4cout <<
"=== G4DNASancheExcitationModel - XS INFO END" <<
G4endl;
223 return sigma*2.*waterDensity;
239 G4cout <<
"Calling SampleSecondaries() of G4DNASancheExcitationModel"
247 G4double newEnergy = electronEnergy0 - excitationEnergy;
298 std::vector<G4double>::iterator t2 = std::upper_bound(
tdummyVec.begin(),
300 std::vector<G4double>::iterator t1 = t2 - 1;
312 sigma *= conv_factor;
313 if (sigma == 0.) sigma = 1e-30;
325 std::vector<G4double>::iterator t2 = std::upper_bound(
tdummyVec.begin(),
327 std::vector<G4double>::iterator t1 = t2 - 1;
339 sigma *= conv_factor;
340 if (sigma == 0.) sigma = 1e-30;
348 static G4double energies[9] = { 0.01, 0.024, 0.061, 0.092, 0.204, 0.417, 0.460,
350 return (energies[level] *
eV);
362 std::deque<G4double> values;
368 values.push_front(partial);
379 if (values[i] > value)
403 return totalCrossSection;
static const G4double e1[44]
static const G4double e2[44]
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
static constexpr double eV
static constexpr double cm
G4GLOB_DLL std::ostream G4cout
static G4DNAMolecularMaterial * Instance()
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)
G4double TotalCrossSection(G4double t)
std::vector< G4double > fEnergyTotalXS
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
const std::vector< G4double > * fpWaterDensity
G4double LinInterpolate(G4double e1, G4double e2, G4double e, G4double xs1, G4double xs2)
G4double VibrationEnergy(G4int level)
virtual ~G4DNASancheExcitationModel()
G4int RandomSelect(G4double energy)
std::vector< std::vector< G4double > > fEnergyLevelXS
std::vector< G4double > tdummyVec
virtual G4double CrossSectionPerVolume(const G4Material *material, const G4ParticleDefinition *p, G4double ekin, G4double emin, G4double emax)
G4double PartialCrossSection(G4double energy, G4int level)
G4ParticleChangeForGamma * fParticleChangeForGamma
G4DNASancheExcitationModel(const G4ParticleDefinition *p=0, const G4String &nam="DNASancheExcitationModel")
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
static G4Material * GetMaterial(const G4String &name, G4bool warning=true)
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
void SetHighEnergyLimit(G4double)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
G4double LowEnergyLimit() const
G4double HighEnergyLimit() const
void SetLowEnergyLimit(G4double)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)