Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4LowEWentzelVIModel Class Reference

#include <G4LowEWentzelVIModel.hh>

+ Inheritance diagram for G4LowEWentzelVIModel:

Public Member Functions

 G4LowEWentzelVIModel ()
 
 ~G4LowEWentzelVIModel () override=default
 
G4double ComputeTruePathLengthLimit (const G4Track &track, G4double &currentMinimalStep) override
 
G4LowEWentzelVIModeloperator= (const G4LowEWentzelVIModel &right)=delete
 
 G4LowEWentzelVIModel (const G4LowEWentzelVIModel &)=delete
 
- Public Member Functions inherited from G4WentzelVIModel
 G4WentzelVIModel (G4bool comb=true, const G4String &nam="WentzelVIUni")
 
 ~G4WentzelVIModel () override
 
void Initialise (const G4ParticleDefinition *, const G4DataVector &) override
 
void InitialiseLocal (const G4ParticleDefinition *, G4VEmModel *masterModel) override
 
void StartTracking (G4Track *) override
 
G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, G4double KineticEnergy, G4double AtomicNumber, G4double AtomicWeight=0., G4double cut=DBL_MAX, G4double emax=DBL_MAX) override
 
G4ThreeVectorSampleScattering (const G4ThreeVector &, G4double safety) override
 
G4double ComputeTruePathLengthLimit (const G4Track &track, G4double &currentMinimalStep) override
 
G4double ComputeGeomPathLength (G4double truePathLength) override
 
G4double ComputeTrueStepLength (G4double geomStepLength) override
 
void SetFixedCut (G4double)
 
G4double GetFixedCut () const
 
void SetWVICrossSection (G4WentzelOKandVIxSection *)
 
G4WentzelOKandVIxSectionGetWVICrossSection ()
 
void SetUseSecondMoment (G4bool)
 
G4bool UseSecondMoment () const
 
G4PhysicsTableGetSecondMomentTable ()
 
G4double SecondMoment (const G4ParticleDefinition *, const G4MaterialCutsCouple *, G4double kineticEnergy)
 
void SetSingleScatteringFactor (G4double)
 
void DefineMaterial (const G4MaterialCutsCouple *)
 
G4WentzelVIModeloperator= (const G4WentzelVIModel &right)=delete
 
 G4WentzelVIModel (const G4WentzelVIModel &)=delete
 
- Public Member Functions inherited from G4VMscModel
 G4VMscModel (const G4String &nam)
 
 ~G4VMscModel () override
 
void InitialiseParameters (const G4ParticleDefinition *)
 
void DumpParameters (std::ostream &out) const
 
void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double tmax) override
 
void SetStepLimitType (G4MscStepLimitType)
 
void SetLateralDisplasmentFlag (G4bool val)
 
void SetRangeFactor (G4double)
 
void SetGeomFactor (G4double)
 
void SetSkin (G4double)
 
void SetLambdaLimit (G4double)
 
void SetSafetyFactor (G4double)
 
void SetSampleZ (G4bool)
 
G4VEnergyLossProcessGetIonisation () const
 
void SetIonisation (G4VEnergyLossProcess *, const G4ParticleDefinition *part)
 
G4double ComputeSafety (const G4ThreeVector &position, G4double limit=DBL_MAX)
 
G4double ComputeGeomLimit (const G4Track &, G4double &presafety, G4double limit)
 
G4double GetDEDX (const G4ParticleDefinition *part, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
 
G4double GetDEDX (const G4ParticleDefinition *part, G4double kineticEnergy, const G4MaterialCutsCouple *couple, G4double logKineticEnergy)
 
G4double GetRange (const G4ParticleDefinition *part, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
 
G4double GetRange (const G4ParticleDefinition *part, G4double kineticEnergy, const G4MaterialCutsCouple *couple, G4double logKineticEnergy)
 
G4double GetEnergy (const G4ParticleDefinition *part, G4double range, const G4MaterialCutsCouple *couple)
 
G4double GetTransportMeanFreePath (const G4ParticleDefinition *part, G4double kinEnergy)
 
G4double GetTransportMeanFreePath (const G4ParticleDefinition *part, G4double kinEnergy, G4double logKinEnergy)
 
G4VMscModeloperator= (const G4VMscModel &right)=delete
 
 G4VMscModel (const G4VMscModel &)=delete
 
- Public Member Functions inherited from G4VEmModel
 G4VEmModel (const G4String &nam)
 
virtual ~G4VEmModel ()
 
virtual void InitialiseForMaterial (const G4ParticleDefinition *, const G4Material *)
 
virtual void InitialiseForElement (const G4ParticleDefinition *, G4int Z)
 
virtual G4double ComputeDEDXPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
 
virtual G4double CrossSectionPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double GetPartialCrossSection (const G4Material *, G4int level, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual G4double ComputeCrossSectionPerShell (const G4ParticleDefinition *, G4int Z, G4int shellIdx, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double ChargeSquareRatio (const G4Track &)
 
virtual G4double GetChargeSquareRatio (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual G4double GetParticleCharge (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void CorrectionsAlongStep (const G4MaterialCutsCouple *, const G4DynamicParticle *, const G4double &length, G4double &eloss)
 
virtual G4double Value (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual G4double MinPrimaryEnergy (const G4Material *, const G4ParticleDefinition *, G4double cut=0.0)
 
virtual G4double MinEnergyCut (const G4ParticleDefinition *, const G4MaterialCutsCouple *)
 
virtual void SetupForMaterial (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void DefineForRegion (const G4Region *)
 
virtual void FillNumberOfSecondaries (G4int &numberOfTriplets, G4int &numberOfRecoil)
 
virtual void ModelDescription (std::ostream &outFile) const
 
void InitialiseElementSelectors (const G4ParticleDefinition *, const G4DataVector &)
 
std::vector< G4EmElementSelector * > * GetElementSelectors ()
 
void SetElementSelectors (std::vector< G4EmElementSelector * > *)
 
G4double ComputeDEDX (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
 
G4double CrossSection (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeMeanFreePath (const G4ParticleDefinition *, G4double kineticEnergy, const G4Material *, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, const G4Element *, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectTargetAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double logKineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementGetCurrentElement (const G4Material *mat=nullptr) const
 
G4int SelectRandomAtomNumber (const G4Material *) const
 
const G4IsotopeGetCurrentIsotope (const G4Element *elm=nullptr) const
 
G4int SelectIsotopeNumber (const G4Element *) const
 
void SetParticleChange (G4VParticleChange *, G4VEmFluctuationModel *f=nullptr)
 
void SetCrossSectionTable (G4PhysicsTable *, G4bool isLocal)
 
G4ElementDataGetElementData ()
 
G4PhysicsTableGetCrossSectionTable ()
 
G4VEmFluctuationModelGetModelOfFluctuations ()
 
G4VEmAngularDistributionGetAngularDistribution ()
 
G4VEmModelGetTripletModel ()
 
void SetTripletModel (G4VEmModel *)
 
void SetAngularDistribution (G4VEmAngularDistribution *)
 
G4double HighEnergyLimit () const
 
G4double LowEnergyLimit () const
 
G4double HighEnergyActivationLimit () const
 
G4double LowEnergyActivationLimit () const
 
G4double PolarAngleLimit () const
 
G4double SecondaryThreshold () const
 
G4bool DeexcitationFlag () const
 
G4bool ForceBuildTableFlag () const
 
G4bool UseAngularGeneratorFlag () const
 
void SetAngularGeneratorFlag (G4bool)
 
void SetHighEnergyLimit (G4double)
 
void SetLowEnergyLimit (G4double)
 
void SetActivationHighEnergyLimit (G4double)
 
void SetActivationLowEnergyLimit (G4double)
 
G4bool IsActive (G4double kinEnergy) const
 
void SetPolarAngleLimit (G4double)
 
void SetSecondaryThreshold (G4double)
 
void SetDeexcitationFlag (G4bool val)
 
void SetForceBuildTable (G4bool val)
 
void SetFluctuationFlag (G4bool val)
 
void SetMasterThread (G4bool val)
 
G4bool IsMaster () const
 
void SetUseBaseMaterials (G4bool val)
 
G4bool UseBaseMaterials () const
 
G4double MaxSecondaryKinEnergy (const G4DynamicParticle *dynParticle)
 
const G4StringGetName () const
 
void SetCurrentCouple (const G4MaterialCutsCouple *)
 
G4bool IsLocked () const
 
void SetLocked (G4bool)
 
void SetLPMFlag (G4bool)
 
G4VEmModeloperator= (const G4VEmModel &right)=delete
 
 G4VEmModel (const G4VEmModel &)=delete
 

Additional Inherited Members

- Protected Member Functions inherited from G4WentzelVIModel
G4double ComputeTransportXSectionPerVolume (G4double cosTheta)
 
void SetupParticle (const G4ParticleDefinition *)
 
- Protected Member Functions inherited from G4VMscModel
G4ParticleChangeForMSCGetParticleChangeForMSC (const G4ParticleDefinition *p=nullptr)
 
G4double ConvertTrueToGeom (G4double &tLength, G4double &gLength)
 
void SetUseSplineForMSC (G4bool val)
 
- Protected Member Functions inherited from G4VEmModel
G4ParticleChangeForLossGetParticleChangeForLoss ()
 
G4ParticleChangeForGammaGetParticleChangeForGamma ()
 
virtual G4double MaxSecondaryEnergy (const G4ParticleDefinition *, G4double kineticEnergy)
 
const G4MaterialCutsCoupleCurrentCouple () const
 
void SetCurrentElement (const G4Element *)
 
- Protected Attributes inherited from G4WentzelVIModel
G4WentzelOKandVIxSectionwokvi
 
const G4MaterialCutsCouplecurrentCouple = nullptr
 
const G4MaterialcurrentMaterial = nullptr
 
const G4ParticleDefinitionparticle = nullptr
 
G4ParticleChangeForMSCfParticleChange = nullptr
 
const G4DataVectorcurrentCuts = nullptr
 
G4PhysicsTablefSecondMoments = nullptr
 
G4double lowEnergyLimit
 
G4double tlimitminfix
 
G4double ssFactor = 1.05
 
G4double invssFactor = 1.0
 
G4double preKinEnergy = 0.0
 
G4double tPathLength = 0.0
 
G4double zPathLength = 0.0
 
G4double lambdaeff = 0.0
 
G4double currentRange = 0.0
 
G4double cosTetMaxNuc = 0.0
 
G4double fixedCut = -1.0
 
G4double effKinEnergy = 0.0
 
G4double cosThetaMin = 1.0
 
G4double cosThetaMax = -1.0
 
G4double xtsec = 0.0
 
G4int currentMaterialIndex = 0
 
size_t idx2 = 0
 
G4int nelments = 0
 
G4bool singleScatteringMode
 
G4bool isCombined
 
G4bool useSecondMoment
 
std::vector< G4doublexsecn
 
std::vector< G4doubleprob
 
- Protected Attributes inherited from G4VMscModel
G4double facrange = 0.04
 
G4double facgeom = 2.5
 
G4double facsafety = 0.6
 
G4double skin = 1.0
 
G4double dtrl = 0.05
 
G4double lambdalimit
 
G4double geomMin
 
G4double geomMax
 
G4ThreeVector fDisplacement
 
G4MscStepLimitType steppingAlgorithm
 
G4bool samplez = false
 
G4bool latDisplasment = true
 
- Protected Attributes inherited from G4VEmModel
G4ElementDatafElementData = nullptr
 
G4VParticleChangepParticleChange = nullptr
 
G4PhysicsTablexSectionTable = nullptr
 
const G4MaterialpBaseMaterial = nullptr
 
const std::vector< G4double > * theDensityFactor = nullptr
 
const std::vector< G4int > * theDensityIdx = nullptr
 
G4double inveplus
 
G4double pFactor = 1.0
 
std::size_t currentCoupleIndex = 0
 
std::size_t basedCoupleIndex = 0
 
G4bool lossFlucFlag = true
 

Detailed Description

Definition at line 57 of file G4LowEWentzelVIModel.hh.

Constructor & Destructor Documentation

◆ G4LowEWentzelVIModel() [1/2]

G4LowEWentzelVIModel::G4LowEWentzelVIModel ( )
explicit

Definition at line 55 of file G4LowEWentzelVIModel.cc.

55 :
56 G4WentzelVIModel(true, "LowEnWentzelVI")
57{
59}
G4WentzelVIModel(G4bool comb=true, const G4String &nam="WentzelVIUni")
void SetSingleScatteringFactor(G4double)

◆ ~G4LowEWentzelVIModel()

G4LowEWentzelVIModel::~G4LowEWentzelVIModel ( )
overridedefault

◆ G4LowEWentzelVIModel() [2/2]

G4LowEWentzelVIModel::G4LowEWentzelVIModel ( const G4LowEWentzelVIModel & )
delete

Member Function Documentation

◆ ComputeTruePathLengthLimit()

G4double G4LowEWentzelVIModel::ComputeTruePathLengthLimit ( const G4Track & track,
G4double & currentMinimalStep )
overridevirtual

Implements G4VMscModel.

Definition at line 63 of file G4LowEWentzelVIModel.cc.

66{
67 G4double tlimit = currentMinimalStep;
68 const G4DynamicParticle* dp = track.GetDynamicParticle();
70 G4StepStatus stepStatus = sp->GetStepStatus();
72
73 // initialisation for each step, lambda may be computed from scratch
79
80 // extra check for abnormal situation
81 // this check needed to run MSC with eIoni and eBrem inactivated
82 tlimit = std::min(tlimit, currentRange);
83
84 // stop here if small range particle
85 if(tlimit < tlimitminfix) {
86 return ConvertTrueToGeom(tlimit, currentMinimalStep);
87 }
88
89 // pre step
90 G4double presafety = sp->GetSafety();
91 // far from geometry boundary
92 if(currentRange < presafety) {
93 return ConvertTrueToGeom(tlimit, currentMinimalStep);
94 }
95
96 // compute presafety again if presafety <= 0 and no boundary
97 // i.e. when it is needed for optimization purposes
98 if(stepStatus != fGeomBoundary && presafety < tlimitminfix) {
99 presafety = ComputeSafety(sp->GetPosition(), tlimit);
100 if(currentRange < presafety) {
101 return ConvertTrueToGeom(tlimit, currentMinimalStep);
102 }
103 }
104 /*
105 G4cout << "e(MeV)= " << preKinEnergy/MeV
106 << " " << particle->GetParticleName()
107 << " CurLimit(mm)= " << tlimit/mm <<" safety(mm)= " << presafety/mm
108 << " R(mm)= " <<currentRange/mm
109 << " L0(mm^-1)= " << lambdaeff*mm
110 <<G4endl;
111 */
112 // natural limit for high energy
113 G4double rlimit = std::max(facrange*currentRange, lambdaeff);
114
115 // low-energy e-
116 rlimit = std::max(rlimit, facsafety*presafety);
117
118 tlimit = std::min(tlimit, rlimit);
119 tlimit = std::max(tlimit, tlimitminfix);
120
121 // step limit in infinite media
122 tlimit = std::min(tlimit, 50*currentMaterial->GetRadlen()/facgeom);
123
124 //compute geomlimit and force few steps within a volume
126 && stepStatus == fGeomBoundary) {
127
128 G4double geomlimit = ComputeGeomLimit(track, presafety, currentRange);
129 tlimit = std::min(tlimit, geomlimit/facgeom);
130 }
131 /*
132 G4cout << particle->GetParticleName() << " E(MeV)= " << preKinEnergy
133 << " L0= " << lambdaeff << " R= " << currentRange
134 << " tlimit= " << tlimit
135 << " currentMinimalStep= " << currentMinimalStep << G4endl;
136 */
137 return ConvertTrueToGeom(tlimit, currentMinimalStep);
138}
@ fUseDistanceToBoundary
G4StepStatus
@ fGeomBoundary
double G4double
Definition G4Types.hh:83
G4double GetKineticEnergy() const
G4double GetRadlen() const
G4StepPoint * GetPreStepPoint() const
const G4DynamicParticle * GetDynamicParticle() const
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
const G4Step * GetStep() const
G4double facrange
G4double ComputeGeomLimit(const G4Track &, G4double &presafety, G4double limit)
G4double GetTransportMeanFreePath(const G4ParticleDefinition *part, G4double kinEnergy)
G4double GetRange(const G4ParticleDefinition *part, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
G4MscStepLimitType steppingAlgorithm
G4double ConvertTrueToGeom(G4double &tLength, G4double &gLength)
G4double ComputeSafety(const G4ThreeVector &position, G4double limit=DBL_MAX)
G4double facsafety
G4double facgeom
virtual G4double SetupKinematic(G4double kinEnergy, const G4Material *mat)
const G4MaterialCutsCouple * currentCouple
void DefineMaterial(const G4MaterialCutsCouple *)
const G4ParticleDefinition * particle
const G4Material * currentMaterial
G4WentzelOKandVIxSection * wokvi

◆ operator=()

G4LowEWentzelVIModel & G4LowEWentzelVIModel::operator= ( const G4LowEWentzelVIModel & right)
delete

The documentation for this class was generated from the following files: