129 if(
IsMaster() && mass < GeV && part->GetParticleName() !=
"GenericIon") {
161 for (
G4int j=0; j<nelm; ++j) {
162 Z =
std::min(
Z,(*theElementVector)[j]->GetZasInt());
189 if(kinEnergy <= 0.0) {
return cross; }
203 if(costmin > costmax) {
224 std::vector<G4DynamicParticle*>* fvect,
250 if(costmin <= costmax) {
return; }
254 G4double ratio = ecross/(cross + ecross);
280 /(targetMass + (
mass + kinEnergy)*(1.0 - cost));
297 newDirection*sqrt(finalT*(2*
mass + finalT))).unit();
299 fvect->push_back(newdp);
std::vector< const G4Element * > G4ElementVector
static constexpr double pi
Hep3Vector & rotateUz(const Hep3Vector &)
const G4ThreeVector & GetMomentumDirection() const
G4double GetLogKineticEnergy() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
static G4NistManager * Instance()
G4double GetAtomicMassAmu(const G4String &symb) const
static G4double GetNuclearMass(const G4double A, const G4double Z)
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
static G4Proton * Proton()
void SetElementSelectors(std::vector< G4EmElementSelector * > *)
G4double PolarAngleLimit() const
G4ParticleChangeForGamma * GetParticleChangeForGamma()
std::vector< G4EmElementSelector * > * GetElementSelectors()
G4int SelectIsotopeNumber(const G4Element *)
const G4MaterialCutsCouple * CurrentCouple() const
const G4Element * SelectTargetAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double logKineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
void ProposeNonIonizingEnergyDeposit(G4double anEnergyPart)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
G4double SetupTarget(G4int Z, G4double cut)
void SetTargetMass(G4double value)
G4double GetMomentumSquare() const
G4double ComputeElectronCrossSection(G4double CosThetaMin, G4double CosThetaMax)
void Initialise(const G4ParticleDefinition *, G4double CosThetaLim)
virtual G4double SetupKinematic(G4double kinEnergy, const G4Material *mat)
G4double ComputeNuclearCrossSection(G4double CosThetaMin, G4double CosThetaMax)
G4ThreeVector & SampleSingleScattering(G4double CosThetaMin, G4double CosThetaMax, G4double elecRatio)
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A, G4double cut, G4double emax) override
G4WentzelOKandVIxSection * wokvi
G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double) final
G4NistManager * fNistManager
~G4eCoulombScatteringModel() override
const G4ParticleDefinition * particle
const G4MaterialCutsCouple * currentCouple
void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel) override
G4eCoulombScatteringModel(G4bool combined=true)
G4int currentMaterialIndex
G4ParticleChangeForGamma * fParticleChange
const G4Material * currentMaterial
void DefineMaterial(const G4MaterialCutsCouple *)
const std::vector< G4double > * pCuts
const G4ParticleDefinition * theProton
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
void SetupParticle(const G4ParticleDefinition *)
static constexpr double proton_mass_c2
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments