70 fParticleChange =
nullptr;
74 currentMaterial =
nullptr;
79 recoilThreshold = 0.0;
82 currentCouple =
nullptr;
85 currentMaterialIndex = 0;
86 mass = CLHEP::proton_mass_c2;
103 currentCouple =
nullptr;
112 }
else if(tet >= CLHEP::pi) {
115 cosThetaMin = std::cos(tet);
133 if(!fParticleChange) {
136 if(
IsMaster() && mass < CLHEP::GeV && part->GetParticleName() !=
"GenericIon") {
160 std::max(recoilThreshold, (*pCuts)[
CurrentCouple()->GetIndex()]);
168 for (std::size_t j=0; j<nelm; ++j) {
169 Z = std::min(
Z,(*theElementVector)[j]->GetZasInt());
173 G4double t = std::max(cut, 0.5*(cut + std::sqrt(2*cut*targetMass)));
193 if(kinEnergy <= 0.0) {
return cross; }
197 G4double tmass = (1 == iz) ? proton_mass_c2 :
204 if(cosThetaMax < costmin) {
205 G4double cut = (0.0 < fixedCut) ? fixedCut : cutEnergy;
208 (1 == iz && particle == theProton && cosThetaMax < 0.0)
210 if(costmin > costmax) {
229 std::vector<G4DynamicParticle*>* fvect,
240 G4double cut = (0.0 < fixedCut) ? fixedCut : cutEnergy;
243 kinEnergy,cut,kinEnergy);
252 G4double costmax = (1 == iz && particle == theProton && cosThetaMax < 0.0)
254 if(costmin <= costmax) {
return; }
258 G4double ratio = ecross/(cross + ecross);
264 G4double ptot = std::sqrt(kinEnergy*(kinEnergy + 2.0*mass));
276 v1.
setX(momCM*newDirection.
x());
277 v1.
setY(momCM*newDirection.
y());
278 v1.
setZ(momCM*newDirection.
z());
291 G4double trec = std::max(v0.
e() - mass2, 0.0);
295 if(pCuts) { tcut= std::max(tcut,(*pCuts)[currentMaterialIndex]); }
302 fvect->push_back(newdp);
303 }
else if(trec > 0.0) {
314 edep = std::max(edep, 0.0);
std::vector< const G4Element * > G4ElementVector
CLHEP::HepLorentzVector G4LorentzVector
Hep3Vector & rotateUz(const Hep3Vector &)
Hep3Vector boostVector() const
HepLorentzVector & boost(double, double, double)
const G4ThreeVector & GetMomentumDirection() 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 G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
const G4MaterialCutsCouple * CurrentCouple() const
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 ComputeElectronCrossSection(G4double CosThetaMin, G4double CosThetaMax)
void Initialise(const G4ParticleDefinition *, G4double CosThetaLim)
G4double ComputeNuclearCrossSection(G4double CosThetaMin, G4double CosThetaMax)
G4ThreeVector & SampleSingleScattering(G4double CosThetaMin, G4double CosThetaMax, G4double elecRatio)
G4double SetupKinematic(G4double kinEnergy, const G4Material *mat) override
void SetupParticle(const G4ParticleDefinition *)
G4hCoulombScatteringModel(G4bool combined=true)
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A, G4double cut, G4double emax) override
~G4hCoulombScatteringModel() override
void DefineMaterial(const G4MaterialCutsCouple *)
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy) override
G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double) final
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel) override