34 fParticleChangeForGamma =
nullptr;
85 G4double P1KinEn = std::max(0., P0KinEn - Energylost);
89 G4cout <<
" G4LEPTSIonisationModel::SampleSecondaries( SetProposedKineticEnergy " << P1KinEn <<
" " << P0KinEn <<
" - " << Energylost <<
G4endl;
97 P2KinEn = std::max(0.001*CLHEP::eV, (Energylost -
theIonisPot[aMaterial]) );
102 P2KinEn = std::max(0.0, (Energylost -
theIonisPotInt[aMaterial]) );
109 P3Dir /= P3Dir.
mag();
112 fvect->push_back(e3);
118 G4double cp0 = std::sqrt(P0KinEn*(P0KinEn + 2.*CLHEP::electron_mass_c2));
119 G4double cp1 = std::sqrt(P1KinEn*(P1KinEn + 2.*CLHEP::electron_mass_c2));
124 fvect->push_back(e2);
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
const G4ThreeVector & GetMomentumDirection() const
G4double GetKineticEnergy() const
static G4Electron * Electron()
void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double tmax=DBL_MAX) override
~G4LEPTSIonisationModel() override
G4LEPTSIonisationModel(const G4String &modelName="G4LEPTSIonisationModel")
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX) override
const G4Material * GetMaterial() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void ProposeMomentumDirection(const G4ThreeVector &Pfinal)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
void SetDeexcitationFlag(G4bool val)
G4ThreeVector SampleNewDirection(const G4Material *aMaterial, G4ThreeVector Dir, G4double e, G4double el)
G4double SampleEnergyLoss(const G4Material *aMaterial, G4double eMin, G4double eMax)
G4double GetMeanFreePath(const G4Material *mate, const G4ParticleDefinition *aParticle, G4double kineticEnergy)
std::map< const G4Material *, G4double > theIonisPotInt
std::map< const G4Material *, G4double > theIonisPot
void BuildPhysicsTable(const G4ParticleDefinition &aParticleType)
G4double theLowestEnergyLimit
void ProposeLocalEnergyDeposit(G4double anEnergyPart)