84 currentMaterial =
nullptr;
85 currentElement =
nullptr;
86 currentCouple =
nullptr;
87 fParticleChange =
nullptr;
89 recoilThreshold = 0.*eV;
93 currentMaterialIndex = -1;
113 currentMaterialIndex = -1;
118 if(!fParticleChange) {
153 std::vector<G4DynamicParticle*>* fvect,
159 DefineMaterial(couple);
175 if(z1 > 2.0) { z1 = 2.0; }
176 else if(z1 < 0.0) { z1 = 0.0; }
185 G4double sint = sqrt(z1*(1.0 + cost));
189 G4double ptot = sqrt(kinEnergy*(kinEnergy + 2.0*mass));
201 v1.
setX(momCM*sint*cos(phi));
202 v1.
setY(momCM*sint*sin(phi));
217 G4double trec = std::max(v0.
e() - mass2, 0.0);
222 tcut= std::max(tcut,(*pCuts)[currentMaterialIndex]);
232 fvect->push_back(newdp);
233 }
else if(trec > 0.0) {
244 edep = std::max(edep, 0.0);
CLHEP::HepLorentzVector G4LorentzVector
Hep3Vector & rotateUz(const Hep3Vector &)
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
const G4ThreeVector & GetMomentumDirection() const
G4double GetLogKineticEnergy() const
G4ParticleDefinition * GetDefinition() const
G4double GetKineticEnergy() const
void Initialise(const G4ParticleDefinition *, G4double cosThetaLim)
void SetupTarget(G4double Z, G4double kinEnergy, G4int heavycorr)
void SetupKinematic(G4double kinEnergy, G4double tmass)
G4double SampleCosineTheta()
G4double NuclearCrossSection()
virtual ~G4IonCoulombScatteringModel()
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) final
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A, G4double cut, G4double emax) final
G4IonCoulombScatteringModel(const G4String &nam="IonCoulombScattering")
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) final
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()
G4ParticleChangeForGamma * GetParticleChangeForGamma()
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 ProposeNonIonizingEnergyDeposit(G4double anEnergyPart)
void ProposeLocalEnergyDeposit(G4double anEnergyPart)