47#define G4VEmProcess_h 1
135 G4bool ascii =
false)
override;
211 size_t idxRegion)
const;
315 void BuildLambdaTable();
320 void FindLambdaMax();
352 std::vector<G4VEmModel*> emModels;
353 G4int numberOfModels;
358 std::vector<G4double> theEnergyOfCrossSectionMax;
359 std::vector<G4double> theCrossSectionMax;
361 const std::vector<G4double>* theCuts;
362 const std::vector<G4double>* theCutsGamma;
363 const std::vector<G4double>* theCutsElectron;
364 const std::vector<G4double>* theCutsPositron;
492 if(1 < numberOfModels) {
493 currentModel = modelManager->
SelectModel(kinEnergy, index);
503 size_t idxRegion)
const
505 return modelManager->
SelectModel(kinEnergy, idxRegion);
519 return ((*theLambdaTablePrim)[
basedCoupleIndex])->LogVectorValue(e, loge)/e;
534 if(e >= minKinEnergyPrim) { x = GetLambdaFromTablePrim(e, loge); }
535 else if(theLambdaTable) { x = GetLambdaFromTable(e, loge); }
536 else if(currentModel) { x = ComputeCurrentLambda(e); }
554 return GetCurrentLambda(kinEnergy, logKinEnergy);
563 return fFactor*ComputeCurrentLambda(e);
607 return theLambdaTable;
614 return theLambdaTablePrim;
628 return secondaryParticle;
649 buildLambdaTable = val;
671 secondaryParticle = p;
G4double condition(const G4ErrorSymMatrix &m)
G4VEmModel * SelectModel(G4double &energy, size_t &index)
G4double MscThetaLimit() const
const G4Material * GetMaterial() const
const G4Material * GetBaseMaterial() const
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
void SetCurrentCouple(const G4MaterialCutsCouple *)
const G4Element * GetCurrentElement() const
const G4Isotope * GetCurrentIsotope() const
void DefineMaterial(const G4MaterialCutsCouple *couple)
G4double RecalculateLambda(G4double kinEnergy, const G4MaterialCutsCouple *couple)
G4double GetGammaEnergyCut()
void SetIntegral(G4bool val)
G4VEmModel * GetModelByIndex(G4int idx=0, G4bool ver=false) const
G4double MeanFreePath(const G4Track &track)
G4PhysicsVector * LambdaPhysicsVector(const G4MaterialCutsCouple *)
void CurrentSetup(const G4MaterialCutsCouple *, G4double energy)
G4double CrossSectionPerVolume(G4double kineticEnergy, const G4MaterialCutsCouple *couple, G4double logKinEnergy=DBL_MAX)
const G4ParticleDefinition * Particle() const
virtual void StreamProcessInfo(std::ostream &) const
G4LossTableManager * lManager
G4EmBiasingManager * biasManager
virtual void BuildPhysicsTable(const G4ParticleDefinition &) override
G4VEmModel * EmModel(size_t index=0) const
void SetBuildTableFlag(G4bool val)
G4double preStepLogKinEnergy
virtual G4double MinPrimaryEnergy(const G4ParticleDefinition *, const G4Material *)
G4double ComputeCrossSectionPerAtom(G4double kineticEnergy, G4double Z, G4double A=0., G4double cut=0.0)
G4PhysicsTable * LambdaTable() const
virtual G4bool IsApplicable(const G4ParticleDefinition &p) override=0
void SetMinKinEnergy(G4double e)
G4double GetElectronEnergyCut()
virtual G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &) override
G4VEmModel * SelectModelForMaterial(G4double kinEnergy, size_t idxRegion) const
virtual void StartTracking(G4Track *) override
G4double CrossSectionBiasingFactor() const
void AddEmModel(G4int, G4VEmModel *, const G4Region *region=nullptr)
void SetEmModel(G4VEmModel *, G4int index=0)
void SetCrossSectionBiasingFactor(G4double f, G4bool flag=true)
void SetEmMasterProcess(const G4VEmProcess *)
virtual void InitialiseProcess(const G4ParticleDefinition *)=0
void SetLambdaBinning(G4int nbins)
const std::vector< G4double > * theDensityFactor
virtual G4bool RetrievePhysicsTable(const G4ParticleDefinition *, const G4String &directory, G4bool ascii) override
void SetSecondaryParticle(const G4ParticleDefinition *p)
const G4VEmModel * GetCurrentModel() const
void SetSplineFlag(G4bool val)
virtual void ProcessDescription(std::ostream &outFile) const override
virtual G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
void UpdateEmModel(const G4String &, G4double, G4double)
const G4Element * GetTargetElement() const
virtual G4VEmProcess * GetEmProcess(const G4String &name)
G4double MaxKinEnergy() const
G4ParticleChangeForGamma * GetParticleChange()
const G4Isotope * GetTargetIsotope() const
G4VEmModel * SelectModel(G4double kinEnergy, size_t index)
G4double MinKinEnergy() const
std::vector< G4DynamicParticle * > secParticles
void ActivateForcedInteraction(G4double length=0.0, const G4String &r="", G4bool flag=true)
const G4ParticleDefinition * theElectron
G4EmParameters * theParameters
const G4MaterialCutsCouple * currentCouple
const G4ParticleDefinition * theGamma
void SetStartFromNullFlag(G4bool val)
G4PhysicsTable * LambdaTablePrim() const
virtual G4bool StorePhysicsTable(const G4ParticleDefinition *, const G4String &directory, G4bool ascii=false) override
void ActivateSecondaryBiasing(const G4String ®ion, G4double factor, G4double energyLimit)
const G4MaterialCutsCouple * MaterialCutsCouple() const
G4double preStepKinEnergy
G4double PolarAngleLimit() const
size_t currentCoupleIndex
G4double GetLambda(G4double kinEnergy, const G4MaterialCutsCouple *couple)
G4ParticleChangeForGamma fParticleChange
const std::vector< G4int > * theDensityIdx
G4bool IsIntegral() const
G4int LambdaBinning() const
void SetParticle(const G4ParticleDefinition *p)
G4VEmModel * GetRegionModel(G4int idx, size_t couple_index) const
void SetMinKinEnergyPrim(G4double e)
virtual void PreparePhysicsTable(const G4ParticleDefinition &) override
void SetMaxKinEnergy(G4double e)
G4int GetNumberOfRegionModels(size_t couple_index) const
const G4Material * currentMaterial
size_t CurrentMaterialCutsCoupleIndex() const
const G4Element * GetCurrentElement() const
virtual G4double GetMeanFreePath(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition) override
G4int GetNumberOfModels() const
const G4ParticleDefinition * SecondaryParticle() const