142 if(
IsMaster() && mass < GeV && part->GetParticleName() !=
"GenericIon") {
174 for (
G4int j=0; j<nelm; ++j) {
175 Z =
std::min(Z,(*theElementVector)[j]->GetZasInt());
199 if(kinEnergy <= 0.0) {
return cross; }
216 if(costmin > costmax) {
235 std::vector<G4DynamicParticle*>* fvect,
249 kinEnergy,cut,kinEnergy);
260 if(costmin <= costmax) {
return; }
264 G4double ratio = ecross/(cross + ecross);
279 G4double momCM = gam*(ptot - bet*e1);
287 G4LorentzVector v1(pxCM , pyCM, gam*(pzCM + bet*eCM), gam*(eCM + bet*pzCM));
308 fvect->push_back(newdp);
309 }
else if(trec > 0.0) {
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
void SetElementSelectors(std::vector< G4EmElementSelector * > *)
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4ThreeVector & SampleSingleScattering(G4double CosThetaMin, G4double CosThetaMax, G4double elecRatio)
static G4ParticleTable * GetParticleTable()
const G4ParticleDefinition * particle
virtual G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double) final
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A, G4double cut, G4double emax) override
void SetupParticle(const G4ParticleDefinition *)
G4int SelectIsotopeNumber(const G4Element *)
const G4ThreeVector & GetMomentumDirection() const
const std::vector< G4double > * pCuts
const G4ElementVector * GetElementVector() const
G4IonTable * GetIonTable() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
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 &) override
static G4Proton * Proton()
std::vector< G4EmElementSelector * > * GetElementSelectors()
G4double GetAtomicMassAmu(const G4String &symb) const
void ProposeNonIonizingEnergyDeposit(G4double anEnergyPart)
static constexpr double proton_mass_c2
static constexpr double amu_c2
G4ParticleDefinition * GetDefinition() const
G4double PolarAngleLimit() const
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
void SetTargetMass(G4double value)
void ProposeMomentumDirection(G4double Px, G4double Py, G4double Pz)
G4NistManager * fNistManager
G4double ComputeNuclearCrossSection(G4double CosThetaMin, G4double CosThetaMax)
double A(double temperature)
static G4double GetNuclearMass(const G4double A, const G4double Z)
virtual G4double SetupKinematic(G4double kinEnergy, const G4Material *mat)
G4hCoulombScatteringModel(G4bool combined=true)
const G4ParticleDefinition * theProton
const G4MaterialCutsCouple * CurrentCouple() const
G4double SetupTarget(G4int Z, G4double cut)
virtual ~G4hCoulombScatteringModel()
void Initialise(const G4ParticleDefinition *, G4double CosThetaLim)
std::vector< G4Element * > G4ElementVector
void DefineMaterial(const G4MaterialCutsCouple *)
G4double GetKineticEnergy() const
G4int currentMaterialIndex
const G4MaterialCutsCouple * currentCouple
const G4Material * currentMaterial
G4double GetTotalMomentum() const
CLHEP::HepLorentzVector G4LorentzVector
G4double GetTotalEnergy() const
G4ParticleDefinition * GetIon(G4int Z, G4int A, G4int lvl=0)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
virtual void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel) override
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
G4WentzelVIRelXSection * wokvi
G4ParticleChangeForGamma * fParticleChange
static constexpr double pi
size_t GetNumberOfElements() const
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
G4double ComputeElectronCrossSection(G4double CosThetaMin, G4double CosThetaMax)
static G4NistManager * Instance()