74 fParticleChange =
nullptr;
78 currentMaterial =
nullptr;
83 recoilThreshold = 0.0;
86 currentCouple =
nullptr;
90 currentMaterialIndex = 0;
91 mass = CLHEP::proton_mass_c2;
108 currentCouple =
nullptr;
114 if(tet >= pi) { cosThetaMin = -1.0; }
115 else if(tet > 0.0) { cosThetaMin = cos(tet); }
126 if(
nullptr == fParticleChange) {
129 if(
IsMaster() && mass < GeV && part->GetParticleName() !=
"GenericIon") {
153 std::max(recoilThreshold, (*pCuts)[
CurrentCouple()->GetIndex()]);
161 for (std::size_t j=0; j<nelm; ++j) {
162 Z = std::min(
Z,(*theElementVector)[j]->GetZasInt());
166 G4double t = std::max(cut, 0.5*(cut + sqrt(2*cut*targetMass)));
189 if(kinEnergy <= 0.0) {
return cross; }
195 if(cosThetaMax < costmin) {
197 G4double cut = (0.0 < fixedCut) ? fixedCut : cutEnergy;
201 G4double costmax = (1 == iz && particle == theProton && cosThetaMax < 0.0)
203 if(costmin > costmax) {
224 std::vector<G4DynamicParticle*>* fvect,
239 G4double cut = (0.0 < fixedCut) ? fixedCut : cutEnergy;
248 G4double costmax = (1 == iz && particle == theProton && cosThetaMax < 0.0)
250 if(costmin <= costmax) {
return; }
254 G4double ratio = ecross/(cross + ecross);
280 /(targetMass + (mass + kinEnergy)*(1.0 - cost));
283 trec = std::min(trec, kinEnergy);
292 if(pCuts) { tcut= std::max(tcut,(*pCuts)[currentMaterialIndex]); }
297 newDirection*sqrt(finalT*(2*mass + finalT))).unit();
299 fvect->push_back(newdp);
312 edep = std::max(edep, 0.0);
std::vector< const G4Element * > G4ElementVector
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)
const G4ElementVector * GetElementVector() const
size_t GetNumberOfElements() const
static G4NistManager * Instance()
G4double GetAtomicMassAmu(const G4String &symb) const
static G4double GetNuclearMass(const G4double A, const G4double Z)
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void ProposeMomentumDirection(const G4ThreeVector &Pfinal)
G4IonTable * GetIonTable() const
static G4ParticleTable * GetParticleTable()
static G4Proton * Proton()
G4int SelectIsotopeNumber(const G4Element *) const
void SetElementSelectors(std::vector< G4EmElementSelector * > *)
G4double PolarAngleLimit() const
G4ParticleChangeForGamma * GetParticleChangeForGamma()
std::vector< G4EmElementSelector * > * GetElementSelectors()
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
G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double) final
~G4eCoulombScatteringModel() override
void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel) override
G4eCoulombScatteringModel(G4bool combined=true)
void DefineMaterial(const G4MaterialCutsCouple *)
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
void SetupParticle(const G4ParticleDefinition *)