97 for(
size_t i=0; i<nmat; ++i) {
99 ->GetSandiaTable()->GetSandiaCofForMaterial(0, 0);
140 return x1 * (SandiaCof[0] + x1 * (SandiaCof[1] +
141 x1 * (SandiaCof[2] + x1 * SandiaCof[3])));
168 for(; i<nShells; ++i) {
200 G4int nbefore = fvect->size();
202 G4int nafter = fvect->size();
203 for (
G4int j=nbefore; j<nafter; ++j) {
204 G4double e = ((*fvect)[j])->GetKineticEnergy();
205 if(esec + e > edep) {
208 ((*fvect)[j])->SetKineticEnergy(e);
221 for (
G4int jj=nafter-1; jj>j; --jj) {
241 fvect->push_back(aParticle);
243 edep += elecKineEnergy;
244 elecKineEnergy = 0.0;
247 G4cout <<
"### G4PEffectFluoModel dE(eV)= "
248 << (
energy - elecKineEnergy - esec - edep)/
eV
252 <<
" Ee(keV)= " << elecKineEnergy/
keV
253 <<
" Esec(keV)= " << esec/
keV
254 <<
" Edep(keV)= " << edep/
keV
static constexpr double keV
static constexpr double eV
G4GLOB_DLL std::ostream G4cout
G4double BindingEnergy() const
G4double GetKineticEnergy() const
static G4Electron * Electron()
G4int GetNbOfAtomicShells() const
G4double GetAtomicShell(G4int index) const
static G4LossTableManager * Instance()
G4VAtomDeexcitation * AtomDeexcitation()
const G4Material * GetMaterial() const
static size_t GetNumberOfMaterials()
G4SandiaTable * GetSandiaTable() const
static G4MaterialTable * GetMaterialTable()
G4VAtomDeexcitation * fAtomDeexcitation
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4ParticleDefinition * theGamma
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4ParticleDefinition * theElectron
std::vector< G4double > fSandiaCof
std::vector< G4double > fMatEnergyTh
~G4PEEffectFluoModel() override
G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy, G4double maxEnergy) override
G4ParticleChangeForGamma * fParticleChange
G4PEEffectFluoModel(const G4String &nam="PhotoElectric")
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A, G4double, G4double) override
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void GetSandiaCofPerAtom(G4int Z, G4double energy, std::vector< G4double > &coeff) const
G4bool CheckDeexcitationActiveRegion(G4int coupleIndex)
virtual const G4AtomicShell * GetAtomicShell(G4int Z, G4AtomicShellEnumerator shell)=0
void GenerateParticles(std::vector< G4DynamicParticle * > *secVect, const G4AtomicShell *, G4int Z, G4int coupleIndex)
G4VEmAngularDistribution * GetAngularDistribution()
G4ParticleChangeForGamma * GetParticleChangeForGamma()
void SetCurrentCouple(const G4MaterialCutsCouple *)
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
void SetDeexcitationFlag(G4bool val)
void SetAngularDistribution(G4VEmAngularDistribution *)
const G4MaterialCutsCouple * CurrentCouple() const
void ProposeTrackStatus(G4TrackStatus status)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
static constexpr double eV
G4double energy(const ThreeVector &p, const G4double m)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4double bindingEnergy(G4int A, G4int Z)