223 G4int& numberOfRecoil);
393 [[deprecated(
"Use G4EmParameters::Instance()->SetLPM instead")]]
414 const G4Element* fCurrentElement =
nullptr;
415 std::vector<G4EmElementSelector*>* elmSelectors =
nullptr;
439 G4int nSelectors = 0;
450 G4bool flagDeexcitation =
false;
451 G4bool flagForceBuildTable =
false;
455 G4bool localElmSelectors =
true;
456 G4bool useAngularGenerator =
false;
457 G4bool useBaseMaterials =
false;
461 std::vector<G4double> xsec;
469 if(fCurrentCouple != ptr) {
470 fCurrentCouple = ptr;
474 if(useBaseMaterials) {
487 return fCurrentCouple;
494 fCurrentElement = elm;
527 cutEnergy,maxEnergy);
540 return (cross > 0.0) ? 1./cross :
DBL_MAX;
552 fCurrentElement = elm;
554 cutEnergy,maxEnergy);
567 fCurrentElement = (nSelectors > 0) ?
568 ((*elmSelectors)[couple->
GetIndex()])->SelectRandomAtom(kinEnergy) :
570 return fCurrentElement;
584 fCurrentElement = (nSelectors > 0)
585 ? ((*elmSelectors)[couple->
GetIndex()])->SelectRandomAtom(kinEnergy,logKinE)
587 return fCurrentElement;
618 return fTripletModel;
625 if(p != fTripletModel) {
626 delete fTripletModel;
663 return polarAngleLimit;
670 return secondaryThreshold;
677 return flagDeexcitation;
684 return flagForceBuildTable;
691 return useAngularGenerator;
698 useAngularGenerator = val;
726 useBaseMaterials = val;
733 return useBaseMaterials;
768 return (kinEnergy >= eMinActive && kinEnergy <= eMaxActive);
775 if(!isLocked) { polarAngleLimit = val; }
782 secondaryThreshold = val;
789 flagDeexcitation = val;
796 flagForceBuildTable = val;
818 if(p != elmSelectors) {
820 nSelectors = (
nullptr != elmSelectors) ?
G4int(elmSelectors->size()) : 0;
821 localElmSelectors =
false;
const G4ParticleDefinition * GetParticleDefinition() const
G4double GetKineticEnergy() const
const G4Material * GetMaterial() const
const G4Material * GetBaseMaterial() const
virtual void FillNumberOfSecondaries(G4int &numberOfTriplets, G4int &numberOfRecoil)
void SetCrossSectionTable(G4PhysicsTable *, G4bool isLocal)
G4int SelectIsotopeNumber(const G4Element *) const
void SetPolarAngleLimit(G4double)
G4VEmModel(const G4VEmModel &)=delete
virtual G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double cut=0.0)
G4PhysicsTable * xSectionTable
void SetHighEnergyLimit(G4double)
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0., G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
const std::vector< G4double > * theDensityFactor
void SetMasterThread(G4bool val)
G4VEmFluctuationModel * GetModelOfFluctuations()
void SetElementSelectors(std::vector< G4EmElementSelector * > *)
virtual G4double GetParticleCharge(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
std::size_t currentCoupleIndex
void SetActivationLowEnergyLimit(G4double)
G4double PolarAngleLimit() const
G4VEmAngularDistribution * GetAngularDistribution()
virtual void InitialiseForMaterial(const G4ParticleDefinition *, const G4Material *)
void SetForceBuildTable(G4bool val)
G4ParticleChangeForGamma * GetParticleChangeForGamma()
G4double LowEnergyLimit() const
std::vector< G4EmElementSelector * > * GetElementSelectors()
G4int SelectRandomAtomNumber(const G4Material *) const
void SetSecondaryThreshold(G4double)
G4VEmModel * GetTripletModel()
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
void SetCurrentCouple(const G4MaterialCutsCouple *)
G4double ComputeMeanFreePath(const G4ParticleDefinition *, G4double kineticEnergy, const G4Material *, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
void SetAngularGeneratorFlag(G4bool)
void SetParticleChange(G4VParticleChange *, G4VEmFluctuationModel *f=nullptr)
std::size_t basedCoupleIndex
void SetFluctuationFlag(G4bool val)
virtual void InitialiseForElement(const G4ParticleDefinition *, G4int Z)
virtual G4double Value(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy)
G4double HighEnergyLimit() const
G4double ComputeDEDX(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
void SetCurrentElement(const G4Element *)
G4VParticleChange * pParticleChange
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
const G4Material * pBaseMaterial
const G4Isotope * GetCurrentIsotope(const G4Element *elm=nullptr) const
virtual void DefineForRegion(const G4Region *)
virtual void ModelDescription(std::ostream &outFile) const
void SetLowEnergyLimit(G4double)
virtual void SetupForMaterial(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
void SetActivationHighEnergyLimit(G4double)
void SetTripletModel(G4VEmModel *)
G4ElementData * fElementData
G4double HighEnergyActivationLimit() const
void SetDeexcitationFlag(G4bool val)
G4double CrossSection(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
G4VEmModel(const G4String &nam)
void SetAngularDistribution(G4VEmAngularDistribution *)
G4bool IsActive(G4double kinEnergy) const
virtual G4double ComputeCrossSectionPerShell(const G4ParticleDefinition *, G4int Z, G4int shellIdx, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
const G4MaterialCutsCouple * CurrentCouple() const
virtual void CorrectionsAlongStep(const G4MaterialCutsCouple *, const G4DynamicParticle *, const G4double &length, G4double &eloss)
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double tmax=DBL_MAX)=0
const std::vector< G4int > * theDensityIdx
G4bool DeexcitationFlag() const
virtual G4double GetChargeSquareRatio(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
G4bool UseAngularGeneratorFlag() const
const G4String & GetName() const
const G4Element * GetCurrentElement(const G4Material *mat=nullptr) const
const G4Element * SelectTargetAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double logKineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
virtual G4double GetPartialCrossSection(const G4Material *, G4int level, const G4ParticleDefinition *, G4double kineticEnergy)
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
G4PhysicsTable * GetCrossSectionTable()
void SetUseBaseMaterials(G4bool val)
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)=0
G4bool UseBaseMaterials() const
G4double LowEnergyActivationLimit() const
virtual void StartTracking(G4Track *)
virtual void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel)
virtual G4double MinEnergyCut(const G4ParticleDefinition *, const G4MaterialCutsCouple *)
G4bool ForceBuildTableFlag() const
G4double MaxSecondaryKinEnergy(const G4DynamicParticle *dynParticle)
G4double SecondaryThreshold() const
G4VEmModel & operator=(const G4VEmModel &right)=delete
virtual G4double MaxSecondaryEnergy(const G4ParticleDefinition *, G4double kineticEnergy)
virtual G4double ChargeSquareRatio(const G4Track &)
G4ElementData * GetElementData()
G4ParticleChangeForLoss * GetParticleChangeForLoss()