155 std::vector<G4DynamicParticle*>* fvect,
169 G4int iz = currentElement->GetZasInt();
179 if(z1 > 2.0) { z1 = 2.0; }
180 else if(z1 < 0.0) { z1 = 0.0; }
183 G4double sint = sqrt(z1*(1.0 + cost));
196 G4double momCM = gam*(ptot - bet*e1);
200 G4double pxCM = momCM*sint*cos(phi);
201 G4double pyCM = momCM*sint*sin(phi);
205 G4LorentzVector v1(pxCM , pyCM, gam*(pzCM + bet*eCM), gam*(eCM + bet*pzCM));
231 fvect->push_back(newdp);
232 }
else if(trec > 0.0) {
T max(const T t1, const T t2)
brief Return the largest of the two arguments
const G4ParticleDefinition * particle
static G4ParticleTable * GetParticleTable()
G4double NuclearCrossSection()
const std::vector< G4double > * pCuts
G4int SelectIsotopeNumber(const G4Element *)
const G4ThreeVector & GetMomentumDirection() const
void DefineMaterial(const G4MaterialCutsCouple *)
const G4ParticleDefinition * theProton
const G4Element * currentElement
G4IonTable * GetIonTable() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void Initialise(const G4ParticleDefinition *, G4double cosThetaLim)
Hep3Vector & rotateUz(const Hep3Vector &)
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &) final
static G4Proton * Proton()
const G4MaterialCutsCouple * currentCouple
G4double GetAtomicMassAmu(const G4String &symb) const
void ProposeNonIonizingEnergyDeposit(G4double anEnergyPart)
void SetupParticle(const G4ParticleDefinition *)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) final
G4IonCoulombCrossSection * ioncross
static constexpr double proton_mass_c2
G4NistManager * fNistManager
static constexpr double amu_c2
G4int currentMaterialIndex
G4IonCoulombScatteringModel(const G4String &nam="IonCoulombScattering")
G4ParticleDefinition * GetDefinition() const
G4double SampleCosineTheta()
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
static constexpr double twopi
static G4double GetNuclearMass(const G4double A, const G4double Z)
static constexpr double eV
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A, G4double cut, G4double emax) final
const G4Material * currentMaterial
const G4MaterialCutsCouple * CurrentCouple() const
virtual ~G4IonCoulombScatteringModel()
void SetupTarget(G4double Z, G4double kinEnergy, G4int heavycorr)
void SetupKinematic(G4double kinEnergy, G4double tmass)
G4double GetKineticEnergy() const
G4double GetTotalMomentum() const
CLHEP::HepLorentzVector G4LorentzVector
G4double GetTotalEnergy() const
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
G4ParticleChangeForGamma * fParticleChange
static G4NistManager * Instance()