Geant4-11
Data Structures | Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes
G4UrbanMscModel Class Reference

#include <G4UrbanMscModel.hh>

Inheritance diagram for G4UrbanMscModel:
G4VMscModel G4VEmModel

Data Structures

struct  mscData
 

Public Member Functions

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

Protected Member Functions

G4double ConvertTrueToGeom (G4double &tLength, G4double &gLength)
 
const G4MaterialCutsCoupleCurrentCouple () const
 
G4ParticleChangeForGammaGetParticleChangeForGamma ()
 
G4ParticleChangeForLossGetParticleChangeForLoss ()
 
G4ParticleChangeForMSCGetParticleChangeForMSC (const G4ParticleDefinition *p=nullptr)
 
virtual G4double MaxSecondaryEnergy (const G4ParticleDefinition *, G4double kineticEnergy)
 
void SetCurrentElement (const G4Element *)
 

Protected Attributes

size_t basedCoupleIndex = 0
 
size_t currentCoupleIndex = 0
 
G4double dtrl = 0.05
 
G4double facgeom = 2.5
 
G4double facrange = 0.04
 
G4double facsafety = 0.6
 
G4ThreeVector fDisplacement
 
G4ElementDatafElementData = nullptr
 
G4double geomMax
 
G4double geomMin
 
G4double inveplus
 
G4double lambdalimit
 
G4bool latDisplasment = true
 
G4bool lossFlucFlag = true
 
const G4MaterialpBaseMaterial = nullptr
 
G4double pFactor = 1.0
 
G4VParticleChangepParticleChange = nullptr
 
G4bool samplez = false
 
G4double skin = 1.0
 
G4MscStepLimitType steppingAlgorithm
 
const std::vector< G4double > * theDensityFactor = nullptr
 
const std::vector< G4int > * theDensityIdx = nullptr
 
G4PhysicsTablexSectionTable = nullptr
 

Private Member Functions

G4double ComputeStepmin ()
 
G4double ComputeTlimitmin ()
 
void InitialiseModelCache ()
 
G4double Randomizetlimit ()
 
G4double SampleCosineTheta (G4double trueStepLength, G4double KineticEnergy)
 
void SampleDisplacement (G4double sinTheta, G4double phi)
 
void SampleDisplacementNew (G4double sinTheta, G4double phi)
 
void SetParticle (const G4ParticleDefinition *)
 
G4double SimpleScattering (G4double xmeanth, G4double x2meanth)
 

Private Attributes

G4VEmAngularDistributionanglModel = nullptr
 
G4double charge
 
G4double chargeSquare
 
const G4MaterialCutsCouplecouple
 
G4double currentKinEnergy
 
G4double currentLogKinEnergy
 
const G4ParticleDefinitioncurrentPart = nullptr
 
G4double currentRadLength
 
G4double currentRange
 
G4double currentTau
 
G4double dedx = 0.0
 
G4bool dispAlg96
 
G4double drr
 
std::vector< G4EmElementSelector * > * elmSelectors = nullptr
 
G4double eMaxActive = DBL_MAX
 
G4double eMinActive = 0.0
 
const G4MaterialCutsCouplefCurrentCouple = nullptr
 
const G4ElementfCurrentElement = nullptr
 
const G4IsotopefCurrentIsotope = nullptr
 
G4LossTableManagerfEmManager
 
G4double finalr
 
G4bool firstStep
 
G4bool flagDeexcitation = false
 
G4bool flagForceBuildTable = false
 
G4VEmFluctuationModelflucModel = nullptr
 
G4ParticleChangeForMSCfParticleChange
 
G4double fr
 
G4VEmModelfTripletModel = nullptr
 
G4double geombig
 
G4double geomlimit
 
G4double geommin
 
G4double highLimit
 
G4int idx
 
G4bool insideskin
 
G4double invmev
 
G4VEnergyLossProcessionisation = nullptr
 
G4bool isFirstInstance = false
 
G4bool isLocked = false
 
G4bool isMaster = true
 
G4double lambda0
 
G4double lambdaeff
 
G4bool latDisplasmentbackup
 
G4bool localElmSelectors = true
 
G4double localrange = DBL_MAX
 
G4bool localTable = true
 
G4double localtkin = 0.0
 
G4double lowLimit
 
G4double mass
 
G4double masslimite
 
const G4String name
 
G4int nsec = 5
 
G4int nSelectors = 0
 
G4double par1
 
G4double par2
 
G4double par3
 
const G4ParticleDefinitionparticle
 
G4double polarAngleLimit
 
const G4ParticleDefinitionpositron
 
G4double presafety
 
G4double rangecut
 
G4double rangeinit
 
G4double rndmarray [2]
 
CLHEP::HepRandomEnginerndmEngineMod
 
G4SafetyHelpersafetyHelper = nullptr
 
G4double secondaryThreshold = DBL_MAX
 
G4double skindepth
 
G4double smallstep
 
G4double stepmin
 
G4double taubig
 
G4double taulim
 
G4double tausmall
 
G4double tgeom
 
G4bool theLPMflag = false
 
G4LossTableManagertheManager
 
G4double tlimit
 
G4double tlimitmin
 
G4double tlimitminfix
 
G4double tlimitminfix2
 
G4double tlow
 
G4double tPathLength
 
G4bool useAngularGenerator = false
 
G4bool useBaseMaterials = false
 
std::vector< G4doublexsec
 
G4double zPathLength
 

Static Private Attributes

static std::vector< mscData * > msc
 

Detailed Description

Definition at line 70 of file G4UrbanMscModel.hh.

Constructor & Destructor Documentation

◆ G4UrbanMscModel() [1/2]

G4UrbanMscModel::G4UrbanMscModel ( const G4String nam = "UrbanMsc")
explicit

Definition at line 86 of file G4UrbanMscModel.cc.

87 : G4VMscModel(nam)
88{
90 fr = 0.02;
91 taubig = 8.0;
92 tausmall = 1.e-16;
93 taulim = 1.e-6;
95 tlimitminfix = 0.01*CLHEP::nm;
98 smallstep = 1.e10;
99 currentRange = 0. ;
100 rangeinit = 0.;
101 tlimit = 1.e10*CLHEP::mm;
102 tlimitmin = 10.*tlimitminfix;
103 tgeom = 1.e50*CLHEP::mm;
104 geombig = tgeom;
105 geommin = 1.e-3*CLHEP::mm;
107 presafety = 0.*CLHEP::mm;
108
109 particle = nullptr;
110
113 rndmEngineMod = G4Random::getTheEngine();
114
115 firstStep = true;
116 insideskin = false;
117 latDisplasmentbackup = false;
118 dispAlg96 = true;
119
121 drr = 0.35;
122 finalr = 10.*CLHEP::um;
123
124 tlow = 5.*CLHEP::keV;
125 invmev = 1.0/CLHEP::MeV;
126
128
130 charge = chargeSquare = 1.0;
132 = zPathLength = par1 = par2 = par3 = rndmarray[0] = rndmarray[1] = 0;
134
135 idx = 0;
136 fParticleChange = nullptr;
137 couple = nullptr;
138}
static G4LossTableManager * Instance()
static G4Positron * Positron()
Definition: G4Positron.cc:93
G4double currentKinEnergy
G4double rndmarray[2]
const G4ParticleDefinition * positron
G4double currentRadLength
const G4MaterialCutsCouple * couple
G4double currentLogKinEnergy
G4ParticleChangeForMSC * fParticleChange
const G4ParticleDefinition * particle
CLHEP::HepRandomEngine * rndmEngineMod
G4LossTableManager * theManager
G4double skin
Definition: G4VMscModel.hh:199
G4VMscModel(const G4String &nam)
Definition: G4VMscModel.cc:59
static constexpr double mm
Definition: SystemOfUnits.h:96
static constexpr double proton_mass_c2
static constexpr double um
Definition: SystemOfUnits.h:94
static constexpr double keV
static constexpr double MeV
static constexpr double nm
Definition: SystemOfUnits.h:93
#define LOG_EKIN_MIN
Definition: templates.hh:98

References charge, chargeSquare, couple, currentKinEnergy, currentLogKinEnergy, currentRadLength, currentRange, currentTau, dispAlg96, drr, finalr, firstStep, fParticleChange, fr, geombig, geomlimit, geommin, idx, insideskin, G4LossTableManager::Instance(), invmev, CLHEP::keV, lambda0, lambdaeff, latDisplasmentbackup, LOG_EKIN_MIN, mass, masslimite, CLHEP::MeV, CLHEP::mm, CLHEP::nm, par1, par2, par3, particle, G4Positron::Positron(), positron, presafety, CLHEP::proton_mass_c2, rangecut, rangeinit, rndmarray, rndmEngineMod, G4VMscModel::skin, skindepth, smallstep, stepmin, taubig, taulim, tausmall, tgeom, theManager, tlimit, tlimitmin, tlimitminfix, tlimitminfix2, tlow, tPathLength, CLHEP::um, and zPathLength.

◆ ~G4UrbanMscModel()

G4UrbanMscModel::~G4UrbanMscModel ( )
override

Definition at line 142 of file G4UrbanMscModel.cc.

143{
144 if(isFirstInstance) {
145 for(auto & ptr : msc) { delete ptr; }
146 msc.clear();
147 }
148}
static std::vector< mscData * > msc

References isFirstInstance, and msc.

◆ G4UrbanMscModel() [2/2]

G4UrbanMscModel::G4UrbanMscModel ( const G4UrbanMscModel )
delete

Member Function Documentation

◆ ChargeSquareRatio()

G4double G4VEmModel::ChargeSquareRatio ( const G4Track track)
virtualinherited

Reimplemented in G4BraggIonGasModel, and G4BetheBlochIonGasModel.

Definition at line 374 of file G4VEmModel.cc.

375{
377 track.GetMaterial(), track.GetKineticEnergy());
378}
const G4ParticleDefinition * GetParticleDefinition() const
G4Material * GetMaterial() const
G4double GetKineticEnergy() const
virtual G4double GetChargeSquareRatio(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
Definition: G4VEmModel.cc:382

References G4VEmModel::GetChargeSquareRatio(), G4Track::GetKineticEnergy(), G4Track::GetMaterial(), and G4Track::GetParticleDefinition().

Referenced by G4VEnergyLossProcess::PostStepGetPhysicalInteractionLength().

◆ ComputeCrossSectionPerAtom() [1/2]

G4double G4VEmModel::ComputeCrossSectionPerAtom ( const G4ParticleDefinition part,
const G4Element elm,
G4double  kinEnergy,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
inlineinherited

Definition at line 566 of file G4VEmModel.hh.

571{
573 return ComputeCrossSectionPerAtom(part,kinEnergy,elm->GetZ(),elm->GetN(),
574 cutEnergy,maxEnergy);
575}
G4double GetZ() const
Definition: G4Element.hh:131
G4double GetN() const
Definition: G4Element.hh:135
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kinEnergy, G4double Z, G4double A=0., G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
Definition: G4VEmModel.cc:341
void SetCurrentElement(const G4Element *)
Definition: G4VEmModel.hh:497

References G4VEmModel::ComputeCrossSectionPerAtom(), G4Element::GetN(), G4Element::GetZ(), and G4VEmModel::SetCurrentElement().

◆ ComputeCrossSectionPerAtom() [2/2]

G4double G4UrbanMscModel::ComputeCrossSectionPerAtom ( const G4ParticleDefinition particle,
G4double  KineticEnergy,
G4double  AtomicNumber,
G4double  AtomicWeight = 0.,
G4double  cut = 0.,
G4double  emax = DBL_MAX 
)
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 186 of file G4UrbanMscModel.cc.

191{
192 static const G4double epsmin = 1.e-4 , epsmax = 1.e10;
193
194 static const G4double Zdat[15] = { 4., 6., 13., 20., 26., 29., 32., 38.,47.,
195 50., 56., 64., 74., 79., 82. };
196
197 // corr. factors for e-/e+ lambda for T <= Tlim
198 static const G4double celectron[15][22] =
199 {{1.125,1.072,1.051,1.047,1.047,1.050,1.052,1.054,
200 1.054,1.057,1.062,1.069,1.075,1.090,1.105,1.111,
201 1.112,1.108,1.100,1.093,1.089,1.087 },
202 {1.408,1.246,1.143,1.096,1.077,1.059,1.053,1.051,
203 1.052,1.053,1.058,1.065,1.072,1.087,1.101,1.108,
204 1.109,1.105,1.097,1.090,1.086,1.082 },
205 {2.833,2.268,1.861,1.612,1.486,1.309,1.204,1.156,
206 1.136,1.114,1.106,1.106,1.109,1.119,1.129,1.132,
207 1.131,1.124,1.113,1.104,1.099,1.098 },
208 {3.879,3.016,2.380,2.007,1.818,1.535,1.340,1.236,
209 1.190,1.133,1.107,1.099,1.098,1.103,1.110,1.113,
210 1.112,1.105,1.096,1.089,1.085,1.098 },
211 {6.937,4.330,2.886,2.256,1.987,1.628,1.395,1.265,
212 1.203,1.122,1.080,1.065,1.061,1.063,1.070,1.073,
213 1.073,1.070,1.064,1.059,1.056,1.056 },
214 {9.616,5.708,3.424,2.551,2.204,1.762,1.485,1.330,
215 1.256,1.155,1.099,1.077,1.070,1.068,1.072,1.074,
216 1.074,1.070,1.063,1.059,1.056,1.052 },
217 {11.72,6.364,3.811,2.806,2.401,1.884,1.564,1.386,
218 1.300,1.180,1.112,1.082,1.073,1.066,1.068,1.069,
219 1.068,1.064,1.059,1.054,1.051,1.050 },
220 {18.08,8.601,4.569,3.183,2.662,2.025,1.646,1.439,
221 1.339,1.195,1.108,1.068,1.053,1.040,1.039,1.039,
222 1.039,1.037,1.034,1.031,1.030,1.036 },
223 {18.22,10.48,5.333,3.713,3.115,2.367,1.898,1.631,
224 1.498,1.301,1.171,1.105,1.077,1.048,1.036,1.033,
225 1.031,1.028,1.024,1.022,1.021,1.024 },
226 {14.14,10.65,5.710,3.929,3.266,2.453,1.951,1.669,
227 1.528,1.319,1.178,1.106,1.075,1.040,1.027,1.022,
228 1.020,1.017,1.015,1.013,1.013,1.020 },
229 {14.11,11.73,6.312,4.240,3.478,2.566,2.022,1.720,
230 1.569,1.342,1.186,1.102,1.065,1.022,1.003,0.997,
231 0.995,0.993,0.993,0.993,0.993,1.011 },
232 {22.76,20.01,8.835,5.287,4.144,2.901,2.219,1.855,
233 1.677,1.410,1.224,1.121,1.073,1.014,0.986,0.976,
234 0.974,0.972,0.973,0.974,0.975,0.987 },
235 {50.77,40.85,14.13,7.184,5.284,3.435,2.520,2.059,
236 1.837,1.512,1.283,1.153,1.091,1.010,0.969,0.954,
237 0.950,0.947,0.949,0.952,0.954,0.963 },
238 {65.87,59.06,15.87,7.570,5.567,3.650,2.682,2.182,
239 1.939,1.579,1.325,1.178,1.108,1.014,0.965,0.947,
240 0.941,0.938,0.940,0.944,0.946,0.954 },
241 {55.60,47.34,15.92,7.810,5.755,3.767,2.760,2.239,
242 1.985,1.609,1.343,1.188,1.113,1.013,0.960,0.939,
243 0.933,0.930,0.933,0.936,0.939,0.949 }};
244
245 static const G4double cpositron[15][22] = {
246 {2.589,2.044,1.658,1.446,1.347,1.217,1.144,1.110,
247 1.097,1.083,1.080,1.086,1.092,1.108,1.123,1.131,
248 1.131,1.126,1.117,1.108,1.103,1.100 },
249 {3.904,2.794,2.079,1.710,1.543,1.325,1.202,1.145,
250 1.122,1.096,1.089,1.092,1.098,1.114,1.130,1.137,
251 1.138,1.132,1.122,1.113,1.108,1.102 },
252 {7.970,6.080,4.442,3.398,2.872,2.127,1.672,1.451,
253 1.357,1.246,1.194,1.179,1.178,1.188,1.201,1.205,
254 1.203,1.190,1.173,1.159,1.151,1.145 },
255 {9.714,7.607,5.747,4.493,3.815,2.777,2.079,1.715,
256 1.553,1.353,1.253,1.219,1.211,1.214,1.225,1.228,
257 1.225,1.210,1.191,1.175,1.166,1.174 },
258 {17.97,12.95,8.628,6.065,4.849,3.222,2.275,1.820,
259 1.624,1.382,1.259,1.214,1.202,1.202,1.214,1.219,
260 1.217,1.203,1.184,1.169,1.160,1.151 },
261 {24.83,17.06,10.84,7.355,5.767,3.707,2.546,1.996,
262 1.759,1.465,1.311,1.252,1.234,1.228,1.238,1.241,
263 1.237,1.222,1.201,1.184,1.174,1.159 },
264 {23.26,17.15,11.52,8.049,6.375,4.114,2.792,2.155,
265 1.880,1.535,1.353,1.281,1.258,1.247,1.254,1.256,
266 1.252,1.234,1.212,1.194,1.183,1.170 },
267 {22.33,18.01,12.86,9.212,7.336,4.702,3.117,2.348,
268 2.015,1.602,1.385,1.297,1.268,1.251,1.256,1.258,
269 1.254,1.237,1.214,1.195,1.185,1.179 },
270 {33.91,24.13,15.71,10.80,8.507,5.467,3.692,2.808,
271 2.407,1.873,1.564,1.425,1.374,1.330,1.324,1.320,
272 1.312,1.288,1.258,1.235,1.221,1.205 },
273 {32.14,24.11,16.30,11.40,9.015,5.782,3.868,2.917,
274 2.490,1.925,1.596,1.447,1.391,1.342,1.332,1.327,
275 1.320,1.294,1.264,1.240,1.226,1.214 },
276 {29.51,24.07,17.19,12.28,9.766,6.238,4.112,3.066,
277 2.602,1.995,1.641,1.477,1.414,1.356,1.342,1.336,
278 1.328,1.302,1.270,1.245,1.231,1.233 },
279 {38.19,30.85,21.76,15.35,12.07,7.521,4.812,3.498,
280 2.926,2.188,1.763,1.563,1.484,1.405,1.382,1.371,
281 1.361,1.330,1.294,1.267,1.251,1.239 },
282 {49.71,39.80,27.96,19.63,15.36,9.407,5.863,4.155,
283 3.417,2.478,1.944,1.692,1.589,1.480,1.441,1.423,
284 1.409,1.372,1.330,1.298,1.280,1.258 },
285 {59.25,45.08,30.36,20.83,16.15,9.834,6.166,4.407,
286 3.641,2.648,2.064,1.779,1.661,1.531,1.482,1.459,
287 1.442,1.400,1.354,1.319,1.299,1.272 },
288 {56.38,44.29,30.50,21.18,16.51,10.11,6.354,4.542,
289 3.752,2.724,2.116,1.817,1.692,1.554,1.499,1.474,
290 1.456,1.412,1.364,1.328,1.307,1.282 }};
291
292 //data/corrections for T > Tlim
293
294 static const G4double hecorr[15] = {
295 120.70, 117.50, 105.00, 92.92, 79.23, 74.510, 68.29,
296 57.39, 41.97, 36.14, 24.53, 10.21, -7.855, -16.84,
297 -22.30};
298
299 G4double sigma;
300 SetParticle(part);
301
302 G4double Z23 = G4Pow::GetInstance()->Z23(G4lrint(atomicNumber));
303
304 // correction if particle .ne. e-/e+
305 // compute equivalent kinetic energy
306 // lambda depends on p*beta ....
307
308 G4double eKineticEnergy = kinEnergy;
309
311 {
312 G4double TAU = kinEnergy/mass ;
313 G4double c = mass*TAU*(TAU+2.)/(CLHEP::electron_mass_c2*(TAU+1.)) ;
314 G4double w = c-2.;
315 G4double tau = 0.5*(w+std::sqrt(w*w+4.*c)) ;
316 eKineticEnergy = CLHEP::electron_mass_c2*tau ;
317 }
318
319 G4double eTotalEnergy = eKineticEnergy + CLHEP::electron_mass_c2 ;
320 G4double beta2 = eKineticEnergy*(eTotalEnergy+CLHEP::electron_mass_c2)
321 /(eTotalEnergy*eTotalEnergy);
322 G4double bg2 = eKineticEnergy*(eTotalEnergy+CLHEP::electron_mass_c2)
324
325 static const G4double epsfactor = 2.*CLHEP::electron_mass_c2*
328 G4double eps = epsfactor*bg2/Z23;
329
330 if (eps<epsmin) sigma = 2.*eps*eps;
331 else if(eps<epsmax) sigma = G4Log(1.+2.*eps)-2.*eps/(1.+2.*eps);
332 else sigma = G4Log(2.*eps)-1.+1./eps;
333
334 sigma *= chargeSquare*atomicNumber*atomicNumber/(beta2*bg2);
335
336 // interpolate in AtomicNumber and beta2
337 G4double c1,c2,cc1;
338
339 // get bin number in Z
340 G4int iZ = 14;
341 // Loop checking, 03-Aug-2015, Vladimir Ivanchenko
342 while ((iZ>=0)&&(Zdat[iZ]>=atomicNumber)) { --iZ; }
343
344 iZ = std::min(std::max(iZ, 0), 13);
345
346 G4double ZZ1 = Zdat[iZ];
347 G4double ZZ2 = Zdat[iZ+1];
348 G4double ratZ = (atomicNumber-ZZ1)*(atomicNumber+ZZ1)/
349 ((ZZ2-ZZ1)*(ZZ2+ZZ1));
350
351 static const G4double Tlim = 10.*CLHEP::MeV;
352 static const G4double sigmafactor =
354 static const G4double beta2lim = Tlim*(Tlim+2.*CLHEP::electron_mass_c2)/
356 static const G4double bg2lim = Tlim*(Tlim+2.*CLHEP::electron_mass_c2)/
358
359 static const G4double sig0[15] = {
360 0.2672*CLHEP::barn, 0.5922*CLHEP::barn, 2.653*CLHEP::barn, 6.235*CLHEP::barn,
361 11.69*CLHEP::barn , 13.24*CLHEP::barn , 16.12*CLHEP::barn, 23.00*CLHEP::barn,
362 35.13*CLHEP::barn , 39.95*CLHEP::barn , 50.85*CLHEP::barn, 67.19*CLHEP::barn,
363 91.15*CLHEP::barn , 104.4*CLHEP::barn , 113.1*CLHEP::barn};
364
365 static const G4double Tdat[22] = {
366 100*CLHEP::eV, 200*CLHEP::eV, 400*CLHEP::eV, 700*CLHEP::eV,
369 100*CLHEP::keV, 200*CLHEP::keV, 400*CLHEP::keV, 700*CLHEP::keV,
371 10*CLHEP::MeV, 20*CLHEP::MeV};
372
373 if(eKineticEnergy <= Tlim)
374 {
375 // get bin number in T (beta2)
376 G4int iT = 21;
377 // Loop checking, 03-Aug-2015, Vladimir Ivanchenko
378 while ((iT>=0)&&(Tdat[iT]>=eKineticEnergy)) iT -= 1;
379
380 iT = std::min(std::max(iT, 0), 20);
381
382 // calculate betasquare values
383 G4double T = Tdat[iT];
385 G4double b2small = T*(E+CLHEP::electron_mass_c2)/(E*E);
386
387 T = Tdat[iT+1];
389 G4double b2big = T*(E+CLHEP::electron_mass_c2)/(E*E);
390 G4double ratb2 = (beta2-b2small)/(b2big-b2small);
391
392 if (charge < 0.)
393 {
394 c1 = celectron[iZ][iT];
395 c2 = celectron[iZ+1][iT];
396 cc1 = c1+ratZ*(c2-c1);
397
398 c1 = celectron[iZ][iT+1];
399 c2 = celectron[iZ+1][iT+1];
400 }
401 else
402 {
403 c1 = cpositron[iZ][iT];
404 c2 = cpositron[iZ+1][iT];
405 cc1 = c1+ratZ*(c2-c1);
406
407 c1 = cpositron[iZ][iT+1];
408 c2 = cpositron[iZ+1][iT+1];
409 }
410 G4double cc2 = c1+ratZ*(c2-c1);
411 sigma *= sigmafactor/(cc1+ratb2*(cc2-cc1));
412 }
413 else
414 {
415 c1 = bg2lim*sig0[iZ]*(1.+hecorr[iZ]*(beta2-beta2lim))/bg2;
416 c2 = bg2lim*sig0[iZ+1]*(1.+hecorr[iZ+1]*(beta2-beta2lim))/bg2;
417 if((atomicNumber >= ZZ1) && (atomicNumber <= ZZ2))
418 sigma = c1+ratZ*(c2-c1) ;
419 else if(atomicNumber < ZZ1)
420 sigma = atomicNumber*atomicNumber*c1/(ZZ1*ZZ1);
421 else if(atomicNumber > ZZ2)
422 sigma = atomicNumber*atomicNumber*c2/(ZZ2*ZZ2);
423 }
424 // low energy correction based on theory
425 sigma *= (1.+0.30/(1.+std::sqrt(1000.*eKineticEnergy)));
426
427 return sigma;
428}
static const G4double eps
G4double G4Log(G4double x)
Definition: G4Log.hh:226
double G4double
Definition: G4Types.hh:83
int G4int
Definition: G4Types.hh:85
static G4Pow * GetInstance()
Definition: G4Pow.cc:41
G4double Z23(G4int Z) const
Definition: G4Pow.hh:125
void SetParticle(const G4ParticleDefinition *)
static constexpr double electron_mass_c2
static constexpr double barn
Definition: SystemOfUnits.h:86
static constexpr double twopi
Definition: SystemOfUnits.h:56
static constexpr double Bohr_radius
static constexpr double classic_electr_radius
static constexpr double eV
static constexpr double hbarc
T max(const T t1, const T t2)
brief Return the largest of the two arguments
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
int G4lrint(double ad)
Definition: templates.hh:134

References CLHEP::barn, CLHEP::Bohr_radius, charge, chargeSquare, CLHEP::classic_electr_radius, CLHEP::electron_mass_c2, eps, CLHEP::eV, G4Log(), G4lrint(), G4Pow::GetInstance(), CLHEP::hbarc, CLHEP::keV, mass, G4INCL::Math::max(), CLHEP::MeV, G4INCL::Math::min(), SetParticle(), CLHEP::twopi, and G4Pow::Z23().

◆ ComputeCrossSectionPerShell()

G4double G4VEmModel::ComputeCrossSectionPerShell ( const G4ParticleDefinition ,
G4int  Z,
G4int  shellIdx,
G4double  kinEnergy,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
virtualinherited

Definition at line 351 of file G4VEmModel.cc.

354{
355 return 0.0;
356}

Referenced by G4EmCalculator::ComputeCrossSectionPerShell().

◆ ComputeDEDX()

G4double G4VEmModel::ComputeDEDX ( const G4MaterialCutsCouple couple,
const G4ParticleDefinition part,
G4double  kineticEnergy,
G4double  cutEnergy = DBL_MAX 
)
inlineinherited

Definition at line 528 of file G4VEmModel.hh.

532{
533 SetCurrentCouple(couple);
534 return pFactor*ComputeDEDXPerVolume(pBaseMaterial,part,kinEnergy,cutEnergy);
535}
void SetCurrentCouple(const G4MaterialCutsCouple *)
Definition: G4VEmModel.hh:472
const G4Material * pBaseMaterial
Definition: G4VEmModel.hh:427
G4double pFactor
Definition: G4VEmModel.hh:432
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
Definition: G4VEmModel.cc:228

References G4VEmModel::ComputeDEDXPerVolume(), G4VEmModel::pBaseMaterial, G4VEmModel::pFactor, and G4VEmModel::SetCurrentCouple().

◆ ComputeDEDXPerVolume()

G4double G4VEmModel::ComputeDEDXPerVolume ( const G4Material ,
const G4ParticleDefinition ,
G4double  kineticEnergy,
G4double  cutEnergy = DBL_MAX 
)
virtualinherited

◆ ComputeGeomLimit()

G4double G4VMscModel::ComputeGeomLimit ( const G4Track track,
G4double presafety,
G4double  limit 
)
inlineinherited

Definition at line 290 of file G4VMscModel.hh.

293{
295 track.GetStep()->GetPreStepPoint()->GetPosition(),
296 track.GetMomentumDirection(),
297 limit, presafety);
298}
G4double CheckNextStep(const G4ThreeVector &position, const G4ThreeVector &direction, const G4double currentMaxStep, G4double &newSafety)
const G4ThreeVector & GetPosition() const
G4StepPoint * GetPreStepPoint() const
const G4ThreeVector & GetMomentumDirection() const
const G4Step * GetStep() const
G4SafetyHelper * safetyHelper
Definition: G4VMscModel.hh:186

References G4SafetyHelper::CheckNextStep(), G4Track::GetMomentumDirection(), G4StepPoint::GetPosition(), G4Step::GetPreStepPoint(), G4Track::GetStep(), and G4VMscModel::safetyHelper.

Referenced by G4UrbanAdjointMscModel::ComputeTruePathLengthLimit(), G4LowEWentzelVIModel::ComputeTruePathLengthLimit(), G4GoudsmitSaundersonMscModel::ComputeTruePathLengthLimit(), ComputeTruePathLengthLimit(), and G4WentzelVIModel::ComputeTruePathLengthLimit().

◆ ComputeGeomPathLength()

G4double G4UrbanMscModel::ComputeGeomPathLength ( G4double  truePathLength)
overridevirtual

Implements G4VMscModel.

Definition at line 724 of file G4UrbanMscModel.cc.

725{
727 par1 = -1. ;
728 par2 = par3 = 0. ;
729
730 // this correction needed to run MSC with eIoni and eBrem inactivated
731 // and makes no harm for a normal run
733
734 // do the true -> geom transformation
736
737 // z = t for very small tPathLength
739
740 /*
741 G4cout << "ComputeGeomPathLength: tpl= " << tPathLength
742 << " R= " << currentRange << " L0= " << lambda0
743 << " E= " << currentKinEnergy << " "
744 << particle->GetParticleName() << G4endl;
745 */
747
748 if ((tau <= tausmall) || insideskin) {
750
751 } else if (tPathLength < currentRange*dtrl) {
752 if(tau < taulim) zPathLength = tPathLength*(1.-0.5*tau) ;
753 else zPathLength = lambda0*(1.-G4Exp(-tau));
754
755 } else if(currentKinEnergy < mass || tPathLength == currentRange) {
756 par1 = 1./currentRange ;
757 par2 = 1./(par1*lambda0) ;
758 par3 = 1.+par2 ;
760 zPathLength =
762 } else {
763 zPathLength = 1./(par1*par3);
764 }
765
766 } else {
770
771 par1 = (lambda0-lambda1)/(lambda0*tPathLength);
772 //G4cout << "par1= " << par1 << " L1= " << lambda1 << G4endl;
773 par2 = 1./(par1*lambda0);
774 par3 = 1.+par2 ;
775 zPathLength = (1.-G4Exp(par3*G4Log(lambda1/lambda0)))/(par1*par3);
776 }
777
779 //G4cout<< "zPathLength= "<< zPathLength<< " L0= " << lambda0 << G4endl;
780 return zPathLength;
781}
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition: G4Exp.hh:179
G4double dtrl
Definition: G4VMscModel.hh:200
G4double GetTransportMeanFreePath(const G4ParticleDefinition *part, G4double kinEnergy)
Definition: G4VMscModel.hh:319
G4double GetEnergy(const G4ParticleDefinition *part, G4double range, const G4MaterialCutsCouple *couple)
Definition: G4VMscModel.cc:224

References couple, currentKinEnergy, currentRange, G4VMscModel::dtrl, G4Exp(), G4Log(), G4VMscModel::GetEnergy(), G4VMscModel::GetTransportMeanFreePath(), insideskin, lambda0, lambdaeff, mass, G4INCL::Math::max(), G4INCL::Math::min(), par1, par2, par3, particle, taulim, tausmall, tlimitminfix2, tPathLength, and zPathLength.

◆ ComputeMeanFreePath()

G4double G4VEmModel::ComputeMeanFreePath ( const G4ParticleDefinition part,
G4double  kineticEnergy,
const G4Material material,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
inlineinherited

Definition at line 553 of file G4VEmModel.hh.

558{
559 G4double cross = CrossSectionPerVolume(material,part,ekin,emin,emax);
560 return (cross > 0.0) ? 1./cross : DBL_MAX;
561}
static const G4double emax
virtual G4double CrossSectionPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
Definition: G4VEmModel.cc:237
string material
Definition: eplot.py:19
#define DBL_MAX
Definition: templates.hh:62

References G4VEmModel::CrossSectionPerVolume(), DBL_MAX, emax, and eplot::material.

◆ ComputeSafety()

G4double G4VMscModel::ComputeSafety ( const G4ThreeVector position,
G4double  limit = DBL_MAX 
)
inlineinherited

◆ ComputeStepmin()

G4double G4UrbanMscModel::ComputeStepmin ( )
inlineprivate

Definition at line 242 of file G4UrbanMscModel.hh.

243{
244 // define stepmin using estimation of the ratio
245 // of lambda_elastic/lambda_transport
247 return lambda0*1.e-3/(2.e-3+rat*(msc[idx]->stepmina+msc[idx]->stepminb*rat));
248}

References currentKinEnergy, idx, invmev, lambda0, and msc.

Referenced by ComputeTruePathLengthLimit().

◆ ComputeTheta0()

G4double G4UrbanMscModel::ComputeTheta0 ( G4double  truePathLength,
G4double  KineticEnergy 
)

Definition at line 1027 of file G4UrbanMscModel.cc.

1029{
1030 // for all particles take the width of the central part
1031 // from a parametrization similar to the Highland formula
1032 // ( Highland formula: Particle Physics Booklet, July 2002, eq. 26.10)
1033 G4double invbetacp = (kinEnergy+mass)/(kinEnergy*(kinEnergy+2.*mass));
1034 if(currentKinEnergy != kinEnergy) {
1035 invbetacp = std::sqrt(invbetacp*(currentKinEnergy+mass)/
1037 }
1038 G4double y = trueStepLength/currentRadLength;
1039
1040 if(particle == positron)
1041 {
1042 G4double Zeff = msc[idx]->Zeff;
1043 static const G4double xl= 0.6;
1044 static const G4double xh= 0.9;
1045 static const G4double e = 113.0;
1046 G4double corr;
1047
1048 G4double tau = std::sqrt(currentKinEnergy*kinEnergy)/mass;
1049 G4double x = std::sqrt(tau*(tau+2.)/((tau+1.)*(tau+1.)));
1050 G4double a = 0.994-4.08e-3*Zeff;
1051 G4double b = 7.16+(52.6+365./Zeff)/Zeff;
1052 G4double c = 1.000-4.47e-3*Zeff;
1053 G4double d = 1.21e-3*Zeff;
1054 if(x < xl) {
1055 corr = a*(1.-G4Exp(-b*x));
1056 } else if(x > xh) {
1057 corr = c+d*G4Exp(e*(x-1.));
1058 } else {
1059 G4double yl = a*(1.-G4Exp(-b*xl));
1060 G4double yh = c+d*G4Exp(e*(xh-1.));
1061 G4double y0 = (yh-yl)/(xh-xl);
1062 G4double y1 = yl-y0*xl;
1063 corr = y0*x+y1;
1064 }
1065 //==================================================================
1066 y *= corr*(1.+Zeff*(1.84035e-4*Zeff-1.86427e-2)+0.41125);
1067 }
1068
1069 static const G4double c_highland = 13.6*CLHEP::MeV;
1070 G4double theta0 = c_highland*std::abs(charge)*std::sqrt(y)*invbetacp;
1071
1072 // correction factor from e- scattering data
1073 theta0 *= (msc[idx]->coeffth1+msc[idx]->coeffth2*G4Log(y));
1074 return theta0;
1075}

References charge, currentKinEnergy, currentRadLength, G4Exp(), G4Log(), idx, mass, CLHEP::MeV, msc, particle, positron, anonymous_namespace{G4PionRadiativeDecayChannel.cc}::xl, and anonymous_namespace{G4PionRadiativeDecayChannel.cc}::yl.

Referenced by SampleCosineTheta().

◆ ComputeTlimitmin()

G4double G4UrbanMscModel::ComputeTlimitmin ( )
inlineprivate

Definition at line 250 of file G4UrbanMscModel.hh.

251{
252 G4double x = (particle == positron) ?
253 0.7*msc[idx]->sqrtZ*stepmin : 0.87*msc[idx]->Z23*stepmin;
254 if(currentKinEnergy < tlow) { x *= 0.5*(1.+currentKinEnergy/tlow); }
255 return std::max(x, tlimitminfix);
256}

References currentKinEnergy, idx, G4INCL::Math::max(), msc, particle, positron, stepmin, tlimitminfix, and tlow.

Referenced by ComputeTruePathLengthLimit().

◆ ComputeTruePathLengthLimit()

G4double G4UrbanMscModel::ComputeTruePathLengthLimit ( const G4Track track,
G4double currentMinimalStep 
)
overridevirtual

Implements G4VMscModel.

Definition at line 447 of file G4UrbanMscModel.cc.

450{
451 tPathLength = currentMinimalStep;
452 const G4DynamicParticle* dp = track.GetDynamicParticle();
453
455 G4StepStatus stepStatus = sp->GetStepStatus();
458 idx = couple->GetIndex();
465 /*
466 G4cout << "G4Urban::StepLimit tPathLength= " << tPathLength
467 << " range= " <<currentRange<< " lambda= "<<lambda0
468 <<G4endl;
469 */
470
471 // stop here if small step
473 latDisplasment = false;
474 return ConvertTrueToGeom(tPathLength, currentMinimalStep);
475 }
476
477 // upper limit for the straight line distance the particle can travel
478 // for electrons and positrons
479 G4double distance = (mass < masslimite)
480 ? currentRange*msc[idx]->doverra
481 // for muons, hadrons
482 : currentRange*msc[idx]->doverrb;
483
484 presafety = sp->GetSafety();
485 /*
486 G4cout << "G4Urban::StepLimit tPathLength= "
487 <<tPathLength<<" safety= " << presafety
488 << " range= " <<currentRange<< " lambda= "<<lambda0
489 << " Alg: " << steppingAlgorithm <<G4endl;
490 */
491 // far from geometry boundary
492 if(distance < presafety)
493 {
494 latDisplasment = false;
495 return ConvertTrueToGeom(tPathLength, currentMinimalStep);
496 }
497
499 // standard version
500 //
502 {
503 //compute geomlimit and presafety
505 /*
506 G4cout << "G4Urban::Distance to boundary geomlimit= "
507 <<geomlimit<<" safety= " << presafety<<G4endl;
508 */
509
510 // is it far from boundary ?
511 if(distance < presafety)
512 {
513 latDisplasment = false;
514 return ConvertTrueToGeom(tPathLength, currentMinimalStep);
515 }
516
517 smallstep += 1.;
518 insideskin = false;
519
520 // initialisation at firs step and at the boundary
521 if(firstStep || (stepStatus == fGeomBoundary))
522 {
524 if(!firstStep) { smallstep = 1.; }
525
526 //stepmin ~ lambda_elastic
530 /*
531 G4cout << "rangeinit= " << rangeinit << " stepmin= " << stepmin
532 << " tlimitmin= " << tlimitmin << " geomlimit= "
533 << geomlimit <<G4endl;
534 */
535 // constraint from the geometry
536
537 if((geomlimit < geombig) && (geomlimit > geommin))
538 {
539 // geomlimit is a geometrical step length
540 // transform it to true path length (estimation)
541 if(lambda0 > geomlimit) {
543 }
544 tgeom = (stepStatus == fGeomBoundary)
546 }
547 else
548 {
549 tgeom = geombig;
550 }
551 }
552
553 //step limit
556
557 //lower limit for tlimit
559 /*
560 G4cout << "tgeom= " << tgeom << " geomlimit= " << geomlimit
561 << " tlimit= " << tlimit << " presafety= " << presafety << G4endl;
562 */
563 // shortcut
564 if((tPathLength < tlimit) && (tPathLength < presafety) &&
566 {
567 return ConvertTrueToGeom(tPathLength, currentMinimalStep);
568 }
569
570 // step reduction near to boundary
571 if(smallstep <= skin)
572 {
573 tlimit = stepmin;
574 insideskin = true;
575 }
576 else if(geomlimit < geombig)
577 {
578 if(geomlimit > skindepth)
579 {
581 }
582 else
583 {
584 insideskin = true;
586 }
587 }
588
590
591 // randomise if not 'small' step and step determined by msc
595 }
596 // for 'normal' simulation with or without magnetic field
597 // there no small step/single scattering at boundaries
598 else if(steppingAlgorithm == fUseSafety)
599 {
600 if(stepStatus != fGeomBoundary) {
601 presafety = ComputeSafety(sp->GetPosition(),tPathLength);
602 }
603 /*
604 G4cout << "presafety= " << presafety
605 << " firstStep= " << firstStep
606 << " stepStatus= " << stepStatus
607 << G4endl;
608 */
609 // is far from boundary
610 if(distance < presafety)
611 {
612 latDisplasment = false;
613 return ConvertTrueToGeom(tPathLength, currentMinimalStep);
614 }
615
616 if(firstStep || (stepStatus == fGeomBoundary)) {
618 fr = facrange;
619 // 9.1 like stepping for e+/e- only (not for muons,hadrons)
620 if(mass < masslimite)
621 {
623 if(lambda0 > lambdalimit) {
624 fr *= (0.75+0.25*lambda0/lambdalimit);
625 }
626 }
627 //lower limit for tlimit
630 }
631
632 //step limit
635
636 //lower limit for tlimit
638
639 // randomise if step determined by msc
642 }
643 // new stepping mode UseSafetyPlus
645 {
646 if(stepStatus != fGeomBoundary) {
647 presafety = ComputeSafety(sp->GetPosition(),tPathLength);
648 }
649 /*
650 G4cout << "presafety= " << presafety
651 << " firstStep= " << firstStep
652 << " stepStatus= " << stepStatus
653 << G4endl;
654 */
655 // is far from boundary
656 if(distance < presafety)
657 {
658 latDisplasment = false;
659 return ConvertTrueToGeom(tPathLength, currentMinimalStep);
660 }
661
662 if(firstStep || (stepStatus == fGeomBoundary)) {
664 fr = facrange;
666 if(mass < masslimite)
667 {
668 rangecut = msc[idx]->ecut;
669 if(lambda0 > lambdalimit) {
670 fr *= (0.84+0.16*lambda0/lambdalimit);
671 }
672 }
673 //lower limit for tlimit
676 }
677 //step limit
680
681 //lower limit for tlimit
683
684 // condition for tPathLength from drr and finalr
685 if(currentRange > finalr) {
687 finalr*(1.-drr)*(2.-finalr/currentRange);
689 }
690
691 // condition safety
692 if(currentRange > rangecut) {
693 if(firstStep) {
695 } else if(stepStatus != fGeomBoundary && presafety > stepmin) {
697 }
698 }
699
700 // randomise if step determined by msc
703 }
704
705 // simple step limitation
706 else
707 {
708 if (stepStatus == fGeomBoundary)
709 {
713 }
714 // randomise if step determined by msc
717 }
718 firstStep = false;
719 return ConvertTrueToGeom(tPathLength, currentMinimalStep);
720}
@ fUseSafety
@ fUseSafetyPlus
@ fUseDistanceToBoundary
G4StepStatus
Definition: G4StepStatus.hh:40
@ fGeomBoundary
Definition: G4StepStatus.hh:43
G4double GetLogKineticEnergy() const
G4double GetKineticEnergy() const
const G4DynamicParticle * GetDynamicParticle() const
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
G4double Randomizetlimit()
G4double ComputeTlimitmin()
G4double ComputeStepmin()
G4double facrange
Definition: G4VMscModel.hh:196
G4double ComputeGeomLimit(const G4Track &, G4double &presafety, G4double limit)
Definition: G4VMscModel.hh:290
G4double GetRange(const G4ParticleDefinition *part, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
Definition: G4VMscModel.cc:189
G4double lambdalimit
Definition: G4VMscModel.hh:201
G4MscStepLimitType steppingAlgorithm
Definition: G4VMscModel.hh:209
G4double ConvertTrueToGeom(G4double &tLength, G4double &gLength)
Definition: G4VMscModel.hh:280
G4bool latDisplasment
Definition: G4VMscModel.hh:206
G4double ComputeSafety(const G4ThreeVector &position, G4double limit=DBL_MAX)
Definition: G4VMscModel.hh:272
G4double facsafety
Definition: G4VMscModel.hh:198
G4double facgeom
Definition: G4VMscModel.hh:197

References G4VMscModel::ComputeGeomLimit(), G4VMscModel::ComputeSafety(), ComputeStepmin(), ComputeTlimitmin(), G4VMscModel::ConvertTrueToGeom(), couple, currentKinEnergy, currentLogKinEnergy, currentRange, drr, G4VMscModel::facgeom, G4VMscModel::facrange, G4VMscModel::facsafety, fGeomBoundary, finalr, firstStep, fr, fUseDistanceToBoundary, fUseSafety, fUseSafetyPlus, G4Log(), geombig, geomlimit, geommin, G4Track::GetDynamicParticle(), G4MaterialCutsCouple::GetIndex(), G4DynamicParticle::GetKineticEnergy(), G4DynamicParticle::GetLogKineticEnergy(), G4Track::GetMaterialCutsCouple(), G4Step::GetPreStepPoint(), G4VMscModel::GetRange(), G4Track::GetStep(), G4VMscModel::GetTransportMeanFreePath(), idx, insideskin, lambda0, G4VMscModel::lambdalimit, G4VMscModel::latDisplasment, latDisplasmentbackup, mass, masslimite, G4INCL::Math::max(), G4INCL::Math::min(), msc, particle, presafety, Randomizetlimit(), rangecut, rangeinit, G4VEmModel::SetCurrentCouple(), G4VMscModel::skin, skindepth, smallstep, G4InuclParticleNames::sp, stepmin, G4VMscModel::steppingAlgorithm, tgeom, tlimit, tlimitmin, tlimitminfix, and tPathLength.

◆ ComputeTrueStepLength()

G4double G4UrbanMscModel::ComputeTrueStepLength ( G4double  geomStepLength)
overridevirtual

Implements G4VMscModel.

Definition at line 785 of file G4UrbanMscModel.cc.

786{
787 // step defined other than transportation
788 if(geomStepLength == zPathLength) {
789 //G4cout << "Urban::ComputeTrueLength: tPathLength= " << tPathLength
790 // << " step= " << geomStepLength << " *** " << G4endl;
791 return tPathLength;
792 }
793
794 zPathLength = geomStepLength;
795
796 // t = z for very small step
797 if(geomStepLength < tlimitminfix2) {
798 tPathLength = geomStepLength;
799
800 // recalculation
801 } else {
802
803 G4double tlength = geomStepLength;
804 if((geomStepLength > lambda0*tausmall) && !insideskin) {
805
806 if(par1 < 0.) {
807 tlength = -lambda0*G4Log(1.-geomStepLength/lambda0) ;
808 } else {
809 const G4double par4 = par1*par3;
810 if(par4*geomStepLength < 1.) {
811 tlength = (1.-G4Exp(G4Log(1.-par4*geomStepLength)/par3))/par1;
812 } else {
813 tlength = currentRange;
814 }
815 }
816
817 if(tlength < geomStepLength) { tlength = geomStepLength; }
818 else if(tlength > tPathLength) { tlength = tPathLength; }
819 }
820 tPathLength = tlength;
821 }
822 //G4cout << "Urban::ComputeTrueLength: tPathLength= " << tPathLength
823 // << " step= " << geomStepLength << " &&& " << G4endl;
824
825 return tPathLength;
826}

References currentRange, G4Exp(), G4Log(), insideskin, lambda0, par1, par3, tausmall, tlimitminfix2, tPathLength, and zPathLength.

◆ ConvertTrueToGeom()

G4double G4VMscModel::ConvertTrueToGeom ( G4double tLength,
G4double gLength 
)
inlineprotectedinherited

◆ CorrectionsAlongStep()

void G4VEmModel::CorrectionsAlongStep ( const G4MaterialCutsCouple ,
const G4DynamicParticle ,
const G4double length,
G4double eloss 
)
virtualinherited

◆ CrossSection()

G4double G4VEmModel::CrossSection ( const G4MaterialCutsCouple couple,
const G4ParticleDefinition part,
G4double  kineticEnergy,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
inlineinherited

◆ CrossSectionPerVolume()

G4double G4VEmModel::CrossSectionPerVolume ( const G4Material mat,
const G4ParticleDefinition p,
G4double  kineticEnergy,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
virtualinherited

Reimplemented in G4LivermorePhotoElectricModel, G4PAIModel, G4PAIPhotModel, G4BetheBlochNoDeltaModel, G4BraggNoDeltaModel, G4eeToHadronsModel, G4eeToHadronsMultiModel, G4ICRU73NoDeltaModel, G4MuBetheBlochModel, G4AtimaEnergyLossModel, G4BetheBlochModel, G4BraggIonModel, G4BraggModel, G4ICRU73QOModel, G4LindhardSorensenIonModel, G4MollerBhabhaModel, G4PEEffectFluoModel, G4PenelopeRayleighModelMI, G4LEPTSAttachmentModel, G4LEPTSDissociationModel, G4LEPTSElasticModel, G4LEPTSExcitationModel, G4LEPTSIonisationModel, G4LEPTSPositroniumModel, G4LEPTSRotExcitationModel, G4LEPTSVibExcitationModel, G4eplusTo2GammaOKVIModel, G4eplusTo3GammaOKVIModel, G4PenelopeComptonModel, G4eeToTwoGammaModel, G4GoudsmitSaundersonMscModel, G4IonParametrisedLossModel, G4DNABornExcitationModel1, G4DNABornExcitationModel2, G4DNABornIonisationModel1, G4DNABornIonisationModel2, G4DNAChampionElasticModel, G4DNACPA100ElasticModel, G4DNACPA100ExcitationModel, G4DNACPA100IonisationModel, G4DNADingfelderChargeDecreaseModel, G4DNADingfelderChargeIncreaseModel, G4DNADiracRMatrixExcitationModel, G4DNAEmfietzoglouExcitationModel, G4DNAEmfietzoglouIonisationModel, G4DNAIonElasticModel, G4DNAMeltonAttachmentModel, G4DNAMillerGreenExcitationModel, G4DNAModelInterface, G4TDNAOneStepThermalizationModel< MODEL >, G4DNAQuinnPlasmonExcitationModel, G4DNARelativisticIonisationModel, G4DNARuddIonisationExtendedModel, G4DNARuddIonisationModel, G4DNASancheExcitationModel, G4DNAScreenedRutherfordElasticModel, G4DNATransformElectronModel, G4DNAUeharaScreenedRutherfordElasticModel, G4MicroElecElasticModel, G4MicroElecElasticModel_new, G4MicroElecInelasticModel, G4MicroElecInelasticModel_new, G4MicroElecLOPhononModel, G4DNAELSEPAElasticModel, G4PenelopeBremsstrahlungModel, and G4PenelopeIonisationModel.

Definition at line 237 of file G4VEmModel.cc.

242{
243 SetupForMaterial(p, mat, ekin);
244 const G4double* theAtomNumDensityVector = mat->GetVecNbOfAtomsPerVolume();
245 G4int nelm = mat->GetNumberOfElements();
246 if(nelm > nsec) {
247 xsec.resize(nelm);
248 nsec = nelm;
249 }
250 G4double cross = 0.0;
251 for (G4int i=0; i<nelm; ++i) {
252 cross += theAtomNumDensityVector[i]*
253 ComputeCrossSectionPerAtom(p,mat->GetElement(i),ekin,emin,emax);
254 xsec[i] = cross;
255 }
256 return cross;
257}
const G4Element * GetElement(G4int iel) const
Definition: G4Material.hh:198
size_t GetNumberOfElements() const
Definition: G4Material.hh:182
const G4double * GetVecNbOfAtomsPerVolume() const
Definition: G4Material.hh:202
std::vector< G4double > xsec
Definition: G4VEmModel.hh:466
G4int nsec
Definition: G4VEmModel.hh:444
virtual void SetupForMaterial(const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
Definition: G4VEmModel.cc:440

References G4VEmModel::ComputeCrossSectionPerAtom(), emax, G4Material::GetElement(), G4Material::GetNumberOfElements(), G4Material::GetVecNbOfAtomsPerVolume(), G4VEmModel::nsec, G4VEmModel::SetupForMaterial(), and G4VEmModel::xsec.

Referenced by G4AdjointBremsstrahlungModel::AdjointCrossSection(), G4EmCalculator::ComputeCrossSectionPerVolume(), G4VEmProcess::ComputeCurrentLambda(), G4VEmModel::ComputeMeanFreePath(), G4TablesForExtrapolator::ComputeTrasportXS(), G4VEmModel::CrossSection(), G4LivermorePhotoElectricModel::CrossSectionPerVolume(), G4PenelopeRayleighModelMI::CrossSectionPerVolume(), G4DNADummyModel::CrossSectionPerVolume(), G4VEnergyLossProcess::CrossSectionPerVolume(), G4VEmAdjointModel::DiffCrossSectionPerVolumePrimToSecond(), G4VMscModel::GetTransportMeanFreePath(), G4VEmModel::SelectRandomAtom(), and G4VEmModel::Value().

◆ CurrentCouple()

const G4MaterialCutsCouple * G4VEmModel::CurrentCouple ( ) const
inlineprotectedinherited

◆ DeexcitationFlag()

G4bool G4VEmModel::DeexcitationFlag ( ) const
inlineinherited

Definition at line 704 of file G4VEmModel.hh.

705{
706 return flagDeexcitation;
707}
G4bool flagDeexcitation
Definition: G4VEmModel.hh:455

References G4VEmModel::flagDeexcitation.

Referenced by G4EmModelManager::DumpModelList().

◆ DefineForRegion()

void G4VEmModel::DefineForRegion ( const G4Region )
virtualinherited

Reimplemented in G4PAIModel, and G4PAIPhotModel.

Definition at line 360 of file G4VEmModel.cc.

361{}

Referenced by G4EmModelManager::AddEmModel().

◆ DumpParameters()

void G4VMscModel::DumpParameters ( std::ostream &  out) const
inherited

Definition at line 137 of file G4VMscModel.cc.

138{
139 G4String alg = "UseSafety";
140 if (steppingAlgorithm == fUseDistanceToBoundary) alg = "DistanceToBoundary";
141 else if (steppingAlgorithm == fMinimal) alg = "Minimal";
142 else if (steppingAlgorithm == fUseSafetyPlus) alg = "SafetyPlus";
143
144 out << std::setw(18) << "StepLim=" << alg << " Rfact=" << facrange
145 << " Gfact=" << facgeom << " Sfact=" << facsafety << " DispFlag:" << latDisplasment
146 << " Skin=" << skin << " Llim=" << lambdalimit/CLHEP::mm << " mm" << G4endl;
147}
@ fMinimal
#define G4endl
Definition: G4ios.hh:57

References G4VMscModel::facgeom, G4VMscModel::facrange, G4VMscModel::facsafety, fMinimal, fUseDistanceToBoundary, fUseSafetyPlus, G4endl, G4VMscModel::lambdalimit, G4VMscModel::latDisplasment, CLHEP::mm, G4VMscModel::skin, and G4VMscModel::steppingAlgorithm.

Referenced by G4EmModelManager::DumpModelList().

◆ FillNumberOfSecondaries()

void G4VEmModel::FillNumberOfSecondaries ( G4int numberOfTriplets,
G4int numberOfRecoil 
)
virtualinherited

Definition at line 365 of file G4VEmModel.cc.

367{
368 numberOfTriplets = 0;
369 numberOfRecoil = 0;
370}

Referenced by G4VEmProcess::PostStepDoIt(), and G4VEnergyLossProcess::PostStepDoIt().

◆ ForceBuildTableFlag()

G4bool G4VEmModel::ForceBuildTableFlag ( ) const
inlineinherited

Definition at line 711 of file G4VEmModel.hh.

712{
713 return flagForceBuildTable;
714}
G4bool flagForceBuildTable
Definition: G4VEmModel.hh:456

References G4VEmModel::flagForceBuildTable.

Referenced by G4VMscModel::GetParticleChangeForMSC().

◆ GetAngularDistribution()

G4VEmAngularDistribution * G4VEmModel::GetAngularDistribution ( )
inlineinherited

Definition at line 621 of file G4VEmModel.hh.

622{
623 return anglModel;
624}
G4VEmAngularDistribution * anglModel
Definition: G4VEmModel.hh:414

References G4VEmModel::anglModel.

Referenced by G4EmModelManager::DumpModelList(), G4AtimaEnergyLossModel::Initialise(), G4BetheBlochModel::Initialise(), G4BraggIonModel::Initialise(), G4BraggModel::Initialise(), G4ICRU73QOModel::Initialise(), G4LindhardSorensenIonModel::Initialise(), G4MollerBhabhaModel::Initialise(), G4AdjointBremsstrahlungModel::RapidSampleSecondaries(), G4LivermoreBremsstrahlungModel::SampleSecondaries(), G4eBremParametrizedModel::SampleSecondaries(), G4eBremsstrahlungRelModel::SampleSecondaries(), G4SeltzerBergerModel::SampleSecondaries(), G4DNABornIonisationModel1::SampleSecondaries(), G4DNABornIonisationModel2::SampleSecondaries(), G4DNAEmfietzoglouIonisationModel::SampleSecondaries(), G4DNARuddIonisationExtendedModel::SampleSecondaries(), G4DNARuddIonisationModel::SampleSecondaries(), G4PAIModel::SampleSecondaries(), G4PAIPhotModel::SampleSecondaries(), G4LivermoreIonisationModel::SampleSecondaries(), G4LivermorePhotoElectricModel::SampleSecondaries(), G4LivermoreRayleighModel::SampleSecondaries(), G4MicroElecInelasticModel::SampleSecondaries(), G4MicroElecInelasticModel_new::SampleSecondaries(), G4MuBremsstrahlungModel::SampleSecondaries(), G4MuPairProductionModel::SampleSecondaries(), G4AtimaEnergyLossModel::SampleSecondaries(), G4BetheBlochModel::SampleSecondaries(), G4BetheHeitlerModel::SampleSecondaries(), G4BraggIonModel::SampleSecondaries(), G4BraggModel::SampleSecondaries(), G4ICRU73QOModel::SampleSecondaries(), G4LindhardSorensenIonModel::SampleSecondaries(), G4MollerBhabhaModel::SampleSecondaries(), G4PairProductionRelModel::SampleSecondaries(), G4PEEffectFluoModel::SampleSecondaries(), and G4IonParametrisedLossModel::SampleSecondaries().

◆ GetChargeSquareRatio()

G4double G4VEmModel::GetChargeSquareRatio ( const G4ParticleDefinition p,
const G4Material ,
G4double  kineticEnergy 
)
virtualinherited

◆ GetCrossSectionTable()

G4PhysicsTable * G4VEmModel::GetCrossSectionTable ( )
inlineinherited

◆ GetCurrentElement()

const G4Element * G4VEmModel::GetCurrentElement ( ) const
inlineinherited

◆ GetCurrentIsotope()

const G4Isotope * G4VEmModel::GetCurrentIsotope ( ) const
inlineinherited

Definition at line 512 of file G4VEmModel.hh.

513{
514 return fCurrentIsotope;
515}
const G4Isotope * fCurrentIsotope
Definition: G4VEmModel.hh:418

References G4VEmModel::fCurrentIsotope.

Referenced by G4VEmProcess::GetTargetIsotope().

◆ GetDEDX() [1/2]

G4double G4VMscModel::GetDEDX ( const G4ParticleDefinition part,
G4double  kineticEnergy,
const G4MaterialCutsCouple couple 
)
inherited

Definition at line 159 of file G4VMscModel.cc.

161{
162 G4double x;
163 if (nullptr != ionisation) {
164 x = ionisation->GetDEDX(kinEnergy, couple);
165 } else {
166 const G4double q = part->GetPDGCharge()*inveplus;
167 x = dedx*q*q;
168 }
169 return x;
170}
G4double GetDEDX(G4double kineticEnergy, const G4MaterialCutsCouple *)
G4VEnergyLossProcess * ionisation
Definition: G4VMscModel.hh:187
G4double dedx
Definition: G4VMscModel.hh:190

References G4VMscModel::dedx, G4VEnergyLossProcess::GetDEDX(), G4ParticleDefinition::GetPDGCharge(), G4VEmModel::inveplus, and G4VMscModel::ionisation.

Referenced by G4UrbanAdjointMscModel::SampleScattering(), and SampleScattering().

◆ GetDEDX() [2/2]

G4double G4VMscModel::GetDEDX ( const G4ParticleDefinition part,
G4double  kineticEnergy,
const G4MaterialCutsCouple couple,
G4double  logKineticEnergy 
)
inherited

Definition at line 174 of file G4VMscModel.cc.

176{
177 G4double x;
178 if (nullptr != ionisation) {
179 x = ionisation->GetDEDX(kinEnergy, couple, logKinEnergy);
180 } else {
181 const G4double q = part->GetPDGCharge()*inveplus;
182 x = dedx*q*q;
183 }
184 return x;
185}

References G4VMscModel::dedx, G4VEnergyLossProcess::GetDEDX(), G4ParticleDefinition::GetPDGCharge(), G4VEmModel::inveplus, and G4VMscModel::ionisation.

◆ GetElementData()

G4ElementData * G4VEmModel::GetElementData ( )
inlineinherited

◆ GetElementSelectors()

std::vector< G4EmElementSelector * > * G4VEmModel::GetElementSelectors ( )
inlineinherited

◆ GetEnergy()

G4double G4VMscModel::GetEnergy ( const G4ParticleDefinition part,
G4double  range,
const G4MaterialCutsCouple couple 
)
inherited

Definition at line 224 of file G4VMscModel.cc.

226{
227 G4double e;
228 //G4cout << "G4VMscModel::GetEnergy R(mm)= " << range << " " << ionisation
229 // << " Rlocal(mm)= " << localrange << " Elocal(MeV)= " << localtkin << G4endl;
230 if(nullptr != ionisation) { e = ionisation->GetKineticEnergy(range, couple); }
231 else {
232 e = localtkin;
233 if(localrange > range) {
234 G4double q = part->GetPDGCharge()*inveplus;
235 e -= (localrange - range)*dedx*q*q*couple->GetMaterial()->GetDensity();
236 }
237 }
238 return e;
239}
const G4Material * GetMaterial() const
G4double GetDensity() const
Definition: G4Material.hh:176
G4double GetKineticEnergy(G4double range, const G4MaterialCutsCouple *)
G4double localtkin
Definition: G4VMscModel.hh:191
G4double localrange
Definition: G4VMscModel.hh:192

References G4VMscModel::dedx, G4Material::GetDensity(), G4VEnergyLossProcess::GetKineticEnergy(), G4MaterialCutsCouple::GetMaterial(), G4ParticleDefinition::GetPDGCharge(), G4VEmModel::inveplus, G4VMscModel::ionisation, G4VMscModel::localrange, and G4VMscModel::localtkin.

Referenced by G4UrbanAdjointMscModel::ComputeGeomPathLength(), G4GoudsmitSaundersonMscModel::ComputeGeomPathLength(), ComputeGeomPathLength(), G4WentzelVIModel::ComputeGeomPathLength(), G4WentzelVIModel::ComputeTrueStepLength(), G4GoudsmitSaundersonMscModel::SampleMSC(), G4UrbanAdjointMscModel::SampleScattering(), and SampleScattering().

◆ GetIonisation()

G4VEnergyLossProcess * G4VMscModel::GetIonisation ( ) const
inlineinherited

Definition at line 302 of file G4VMscModel.hh.

303{
304 return ionisation;
305}

References G4VMscModel::ionisation.

◆ GetModelOfFluctuations()

G4VEmFluctuationModel * G4VEmModel::GetModelOfFluctuations ( )
inlineinherited

◆ GetName()

const G4String & G4VEmModel::GetName ( ) const
inlineinherited

◆ GetPartialCrossSection()

G4double G4VEmModel::GetPartialCrossSection ( const G4Material ,
G4int  level,
const G4ParticleDefinition ,
G4double  kineticEnergy 
)
virtualinherited

◆ GetParticleChangeForGamma()

G4ParticleChangeForGamma * G4VEmModel::GetParticleChangeForGamma ( )
protectedinherited

Definition at line 123 of file G4VEmModel.cc.

124{
125 G4ParticleChangeForGamma* p = nullptr;
126 if (pParticleChange != nullptr) {
127 p = static_cast<G4ParticleChangeForGamma*>(pParticleChange);
128 } else {
129 p = new G4ParticleChangeForGamma();
130 pParticleChange = p;
131 }
132 if(fTripletModel != nullptr) { fTripletModel->SetParticleChange(p); }
133 return p;
134}
void SetParticleChange(G4VParticleChange *, G4VEmFluctuationModel *f=nullptr)
Definition: G4VEmModel.cc:447
G4VParticleChange * pParticleChange
Definition: G4VEmModel.hh:425
G4VEmModel * fTripletModel
Definition: G4VEmModel.hh:415

References G4VEmModel::fTripletModel, G4VEmModel::pParticleChange, and G4VEmModel::SetParticleChange().

Referenced by G4MicroElecLOPhononModel::G4MicroElecLOPhononModel(), G4DNAChampionElasticModel::Initialise(), G4DNACPA100ElasticModel::Initialise(), G4DNADingfelderChargeDecreaseModel::Initialise(), G4DNADingfelderChargeIncreaseModel::Initialise(), G4DNAMeltonAttachmentModel::Initialise(), G4DNAMillerGreenExcitationModel::Initialise(), G4DNARuddIonisationExtendedModel::Initialise(), G4DNARuddIonisationModel::Initialise(), G4DNASancheExcitationModel::Initialise(), G4DNAScreenedRutherfordElasticModel::Initialise(), G4DNATransformElectronModel::Initialise(), G4DNAUeharaScreenedRutherfordElasticModel::Initialise(), G4LEPTSAttachmentModel::Initialise(), G4LEPTSDissociationModel::Initialise(), G4LEPTSElasticModel::Initialise(), G4LEPTSExcitationModel::Initialise(), G4LEPTSIonisationModel::Initialise(), G4LEPTSPositroniumModel::Initialise(), G4LEPTSRotExcitationModel::Initialise(), G4LEPTSVibExcitationModel::Initialise(), G4BoldyshevTripletModel::Initialise(), G4eplusTo3GammaOKVIModel::Initialise(), G4eSingleCoulombScatteringModel::Initialise(), G4IonCoulombScatteringModel::Initialise(), G4eeToHadronsMultiModel::Initialise(), G4JAEAElasticScatteringModel::Initialise(), G4JAEAPolarizedElasticScatteringModel::Initialise(), G4LivermoreComptonModel::Initialise(), G4LivermoreGammaConversion5DModel::Initialise(), G4LivermoreGammaConversionModel::Initialise(), G4LivermoreNuclearGammaConversionModel::Initialise(), G4LivermorePhotoElectricModel::Initialise(), G4LivermorePolarizedComptonModel::Initialise(), G4LivermorePolarizedGammaConversionModel::Initialise(), G4LivermorePolarizedRayleighModel::Initialise(), G4LivermoreRayleighModel::Initialise(), G4LowEPComptonModel::Initialise(), G4LowEPPolarizedComptonModel::Initialise(), G4MicroElecElasticModel::Initialise(), G4MicroElecElasticModel_new::Initialise(), G4MicroElecInelasticModel::Initialise(), G4MicroElecInelasticModel_new::Initialise(), G4MicroElecLOPhononModel::Initialise(), G4PenelopeAnnihilationModel::Initialise(), G4PenelopeComptonModel::Initialise(), G4PenelopeGammaConversionModel::Initialise(), G4PenelopePhotoElectricModel::Initialise(), G4PenelopeRayleighModel::Initialise(), G4PenelopeRayleighModelMI::Initialise(), G4PolarizedAnnihilationModel::Initialise(), G4BetheHeitlerModel::Initialise(), G4eCoulombScatteringModel::Initialise(), G4eDPWACoulombScatteringModel::Initialise(), G4eeToTwoGammaModel::Initialise(), G4eplusTo2GammaOKVIModel::Initialise(), G4hCoulombScatteringModel::Initialise(), G4KleinNishinaCompton::Initialise(), G4KleinNishinaModel::Initialise(), G4PairProductionRelModel::Initialise(), G4PEEffectFluoModel::Initialise(), G4XrayRayleighModel::Initialise(), G4DNABornExcitationModel1::Initialise(), G4DNABornExcitationModel2::Initialise(), G4DNABornIonisationModel1::Initialise(), G4DNABornIonisationModel2::Initialise(), G4DNACPA100ExcitationModel::Initialise(), G4DNACPA100IonisationModel::Initialise(), G4DNADiracRMatrixExcitationModel::Initialise(), G4DNAEmfietzoglouExcitationModel::Initialise(), G4DNAEmfietzoglouIonisationModel::Initialise(), G4DNAQuinnPlasmonExcitationModel::Initialise(), G4DNARelativisticIonisationModel::Initialise(), G4DNAELSEPAElasticModel::Initialise(), G4DNAModelInterface::Initialise(), and G4DNAIonElasticModel::Initialise().

◆ GetParticleChangeForLoss()

G4ParticleChangeForLoss * G4VEmModel::GetParticleChangeForLoss ( )
protectedinherited

◆ GetParticleChangeForMSC()

G4ParticleChangeForMSC * G4VMscModel::GetParticleChangeForMSC ( const G4ParticleDefinition p = nullptr)
protectedinherited

Definition at line 78 of file G4VMscModel.cc.

79{
80 // recomputed for each new run
81 if(nullptr == safetyHelper) {
85 }
86 G4ParticleChangeForMSC* change = nullptr;
87 if (nullptr != pParticleChange) {
88 change = static_cast<G4ParticleChangeForMSC*>(pParticleChange);
89 } else {
90 change = new G4ParticleChangeForMSC();
91 }
92 if(IsMaster() && nullptr != p) {
93
94 // table is always built for low mass particles
95 if(p->GetParticleName() != "GenericIon" &&
97
99 G4LossTableBuilder* builder =
103 emin = std::max(emin, param->MinKinEnergy());
104 emax = std::min(emax, param->MaxKinEnergy());
105 if(emin < emax) {
107 emin, emax, true);
108 }
109 }
110 }
111 return change;
112}
static G4EmParameters * Instance()
G4double MinKinEnergy() const
G4double MaxKinEnergy() const
G4PhysicsTable * BuildTableForModel(G4PhysicsTable *table, G4VEmModel *model, const G4ParticleDefinition *, G4double emin, G4double emax, G4bool spline)
G4LossTableBuilder * GetTableBuilder()
const G4String & GetParticleName() const
void InitialiseHelper()
static G4TransportationManager * GetTransportationManager()
G4SafetyHelper * GetSafetyHelper() const
G4double LowEnergyLimit() const
Definition: G4VEmModel.hh:662
G4bool IsMaster() const
Definition: G4VEmModel.hh:746
G4double HighEnergyLimit() const
Definition: G4VEmModel.hh:655
G4double HighEnergyActivationLimit() const
Definition: G4VEmModel.hh:669
G4double LowEnergyActivationLimit() const
Definition: G4VEmModel.hh:676
G4bool ForceBuildTableFlag() const
Definition: G4VEmModel.hh:711
static constexpr double GeV

References G4LossTableBuilder::BuildTableForModel(), emax, G4VEmModel::ForceBuildTableFlag(), G4ParticleDefinition::GetParticleName(), G4ParticleDefinition::GetPDGMass(), G4TransportationManager::GetSafetyHelper(), G4LossTableManager::GetTableBuilder(), G4TransportationManager::GetTransportationManager(), CLHEP::GeV, G4VEmModel::HighEnergyActivationLimit(), G4VEmModel::HighEnergyLimit(), G4SafetyHelper::InitialiseHelper(), G4EmParameters::Instance(), G4LossTableManager::Instance(), G4VEmModel::IsMaster(), G4VEmModel::LowEnergyActivationLimit(), G4VEmModel::LowEnergyLimit(), G4INCL::Math::max(), G4EmParameters::MaxKinEnergy(), G4INCL::Math::min(), G4EmParameters::MinKinEnergy(), G4VEmModel::pParticleChange, G4VMscModel::safetyHelper, and G4VEmModel::xSectionTable.

Referenced by G4UrbanAdjointMscModel::Initialise(), G4GoudsmitSaundersonMscModel::Initialise(), Initialise(), and G4WentzelVIModel::Initialise().

◆ GetParticleCharge()

G4double G4VEmModel::GetParticleCharge ( const G4ParticleDefinition p,
const G4Material ,
G4double  kineticEnergy 
)
virtualinherited

◆ GetRange() [1/2]

G4double G4VMscModel::GetRange ( const G4ParticleDefinition part,
G4double  kineticEnergy,
const G4MaterialCutsCouple couple 
)
inherited

Definition at line 189 of file G4VMscModel.cc.

191{
192 // << ionisation << " " << part->GetParticleName() << G4endl;
193 localtkin = kinEnergy;
194 if (nullptr != ionisation) {
195 localrange = ionisation->GetRange(kinEnergy, couple);
196 } else {
197 const G4double q = part->GetPDGCharge()*inveplus;
198 localrange = kinEnergy/(dedx*q*q*couple->GetMaterial()->GetDensity());
199 }
200 //G4cout << "R(mm)= " << localrange << " " << ionisation << G4endl;
201 return localrange;
202}
G4double GetRange(G4double kineticEnergy, const G4MaterialCutsCouple *)

References G4VMscModel::dedx, G4Material::GetDensity(), G4MaterialCutsCouple::GetMaterial(), G4ParticleDefinition::GetPDGCharge(), G4VEnergyLossProcess::GetRange(), G4VEmModel::inveplus, G4VMscModel::ionisation, G4VMscModel::localrange, and G4VMscModel::localtkin.

Referenced by G4VMultipleScattering::AlongStepDoIt(), G4UrbanAdjointMscModel::ComputeTruePathLengthLimit(), G4LowEWentzelVIModel::ComputeTruePathLengthLimit(), G4GoudsmitSaundersonMscModel::ComputeTruePathLengthLimit(), ComputeTruePathLengthLimit(), and G4WentzelVIModel::ComputeTruePathLengthLimit().

◆ GetRange() [2/2]

G4double G4VMscModel::GetRange ( const G4ParticleDefinition part,
G4double  kineticEnergy,
const G4MaterialCutsCouple couple,
G4double  logKineticEnergy 
)
inherited

Definition at line 206 of file G4VMscModel.cc.

208{
209 //G4cout << "G4VMscModel::GetRange E(MeV)= " << kinEnergy << " "
210 // << ionisation << " " << part->GetParticleName() << G4endl;
211 localtkin = kinEnergy;
212 if (nullptr != ionisation) {
213 localrange = ionisation->GetRange(kinEnergy, couple, logKinEnergy);
214 } else {
215 const G4double q = part->GetPDGCharge()*inveplus;
216 localrange = kinEnergy/(dedx*q*q*couple->GetMaterial()->GetDensity());
217 }
218 //G4cout << "R(mm)= " << localrange << " " << ionisation << G4endl;
219 return localrange;
220}

References G4VMscModel::dedx, G4Material::GetDensity(), G4MaterialCutsCouple::GetMaterial(), G4ParticleDefinition::GetPDGCharge(), G4VEnergyLossProcess::GetRange(), G4VEmModel::inveplus, G4VMscModel::ionisation, G4VMscModel::localrange, and G4VMscModel::localtkin.

◆ GetTransportMeanFreePath() [1/2]

G4double G4VMscModel::GetTransportMeanFreePath ( const G4ParticleDefinition part,
G4double  kinEnergy 
)
inlineinherited

◆ GetTransportMeanFreePath() [2/2]

G4double G4VMscModel::GetTransportMeanFreePath ( const G4ParticleDefinition part,
G4double  kinEnergy,
G4double  logKinEnergy 
)
inlineinherited

Definition at line 332 of file G4VMscModel.hh.

334{
335 G4double x;
336 if (nullptr != xSectionTable) {
337 x = pFactor*(*xSectionTable)[basedCoupleIndex]->LogVectorValue(ekin, logekin)/(ekin*ekin);
338 } else {
339 x = pFactor*CrossSectionPerVolume(pBaseMaterial, part, ekin, 0.0, DBL_MAX);
340 }
341 return (x > 0.0) ? 1.0/x : DBL_MAX;
342}

References G4VEmModel::basedCoupleIndex, G4VEmModel::CrossSectionPerVolume(), DBL_MAX, G4VEmModel::pBaseMaterial, G4VEmModel::pFactor, and G4VEmModel::xSectionTable.

◆ GetTripletModel()

G4VEmModel * G4VEmModel::GetTripletModel ( )
inlineinherited

◆ HighEnergyActivationLimit()

G4double G4VEmModel::HighEnergyActivationLimit ( ) const
inlineinherited

◆ HighEnergyLimit()

G4double G4VEmModel::HighEnergyLimit ( ) const
inlineinherited

Definition at line 655 of file G4VEmModel.hh.

656{
657 return highLimit;
658}
G4double highLimit
Definition: G4VEmModel.hh:437

References G4VEmModel::highLimit.

Referenced by G4DNAChampionElasticModel::CrossSectionPerVolume(), G4DNACPA100ElasticModel::CrossSectionPerVolume(), G4DNACPA100ExcitationModel::CrossSectionPerVolume(), G4DNACPA100IonisationModel::CrossSectionPerVolume(), G4DNAEmfietzoglouExcitationModel::CrossSectionPerVolume(), G4DNAEmfietzoglouIonisationModel::CrossSectionPerVolume(), G4DNAMeltonAttachmentModel::CrossSectionPerVolume(), G4DNASancheExcitationModel::CrossSectionPerVolume(), G4DNAScreenedRutherfordElasticModel::CrossSectionPerVolume(), G4DNATransformElectronModel::CrossSectionPerVolume(), G4DNAELSEPAElasticModel::CrossSectionPerVolume(), G4DNAChampionElasticModel::G4DNAChampionElasticModel(), G4DNACPA100ElasticModel::G4DNACPA100ElasticModel(), G4DNAMeltonAttachmentModel::G4DNAMeltonAttachmentModel(), G4DNASancheExcitationModel::G4DNASancheExcitationModel(), G4DNAUeharaScreenedRutherfordElasticModel::G4DNAUeharaScreenedRutherfordElasticModel(), G4eeToHadronsModel::G4eeToHadronsModel(), G4IonParametrisedLossModel::G4IonParametrisedLossModel(), G4LivermorePolarizedRayleighModel::G4LivermorePolarizedRayleighModel(), G4ContinuousGainOfEnergy::GetContinuousStepLimit(), G4PenelopeBremsstrahlungModel::GetCrossSectionTableForCouple(), G4VMscModel::GetParticleChangeForMSC(), G4DNAChampionElasticModel::Initialise(), G4DNACPA100ElasticModel::Initialise(), G4DNADingfelderChargeDecreaseModel::Initialise(), G4DNADingfelderChargeIncreaseModel::Initialise(), G4DNAMeltonAttachmentModel::Initialise(), G4DNAMillerGreenExcitationModel::Initialise(), G4DNARuddIonisationExtendedModel::Initialise(), G4DNARuddIonisationModel::Initialise(), G4DNASancheExcitationModel::Initialise(), G4DNAScreenedRutherfordElasticModel::Initialise(), G4DNAUeharaScreenedRutherfordElasticModel::Initialise(), G4BoldyshevTripletModel::Initialise(), G4PAIModel::Initialise(), G4PAIPhotModel::Initialise(), G4JAEAElasticScatteringModel::Initialise(), G4JAEAPolarizedElasticScatteringModel::Initialise(), G4LivermoreComptonModel::Initialise(), G4LivermoreGammaConversion5DModel::Initialise(), G4LivermoreGammaConversionModel::Initialise(), G4LivermoreIonisationModel::Initialise(), G4LivermoreNuclearGammaConversionModel::Initialise(), G4LivermorePolarizedComptonModel::Initialise(), G4LivermorePolarizedGammaConversionModel::Initialise(), G4LivermoreRayleighModel::Initialise(), G4LowEPComptonModel::Initialise(), G4LowEPPolarizedComptonModel::Initialise(), G4MicroElecElasticModel::Initialise(), G4MicroElecElasticModel_new::Initialise(), G4MicroElecInelasticModel::Initialise(), G4MicroElecInelasticModel_new::Initialise(), G4PenelopeAnnihilationModel::Initialise(), G4PenelopeBremsstrahlungModel::Initialise(), G4PenelopeComptonModel::Initialise(), G4PenelopeGammaConversionModel::Initialise(), G4PenelopeIonisationModel::Initialise(), G4PenelopePhotoElectricModel::Initialise(), G4PenelopeRayleighModel::Initialise(), G4PenelopeRayleighModelMI::Initialise(), G4MuBremsstrahlungModel::Initialise(), G4MuPairProductionModel::Initialise(), G4eBremsstrahlungRelModel::Initialise(), G4eDPWACoulombScatteringModel::Initialise(), G4GoudsmitSaundersonMscModel::Initialise(), G4PairProductionRelModel::Initialise(), G4SeltzerBergerModel::Initialise(), G4WentzelVIModel::Initialise(), G4DNABornExcitationModel1::Initialise(), G4DNABornExcitationModel2::Initialise(), G4DNABornIonisationModel1::Initialise(), G4DNABornIonisationModel2::Initialise(), G4DNACPA100ExcitationModel::Initialise(), G4DNACPA100IonisationModel::Initialise(), G4DNADiracRMatrixExcitationModel::Initialise(), G4DNAEmfietzoglouExcitationModel::Initialise(), G4DNAEmfietzoglouIonisationModel::Initialise(), G4DNAQuinnPlasmonExcitationModel::Initialise(), G4DNARelativisticIonisationModel::Initialise(), G4EmModelManager::Initialise(), G4DNAELSEPAElasticModel::Initialise(), G4DNADummyModel::Initialise(), G4DNAIonElasticModel::Initialise(), G4mplIonisation::InitialiseEnergyLossProcess(), G4ionIonisation::InitialiseEnergyLossProcess(), G4MuBremsstrahlungModel::InitialiseLocal(), G4MuPairProductionModel::InitialiseLocal(), G4eBremsstrahlungRelModel::InitialiseLocal(), G4PairProductionRelModel::InitialiseLocal(), G4CoulombScattering::InitialiseProcess(), G4VEmProcess::PostStepDoIt(), G4VEmProcess::PreparePhysicsTable(), G4VEnergyLossProcess::PreparePhysicsTable(), G4VMultipleScattering::PreparePhysicsTable(), G4DNACPA100IonisationModel::SampleSecondaries(), G4DNAEmfietzoglouIonisationModel::SampleSecondaries(), G4DNASancheExcitationModel::SampleSecondaries(), G4EmConfigurator::SetExtraEmModel(), G4mplIonisationModel::SetParticle(), G4mplIonisationWithDeltaModel::SetParticle(), G4eBremsstrahlung::StreamProcessInfo(), and G4EmConfigurator::UpdateModelEnergyRange().

◆ Initialise()

void G4UrbanMscModel::Initialise ( const G4ParticleDefinition p,
const G4DataVector  
)
overridevirtual

Implements G4VEmModel.

Definition at line 152 of file G4UrbanMscModel.cc.

154{
155 // set values of some data members
156 SetParticle(p);
159
162
163 // initialise cache only once
164 if(0 == msc.size()) {
166 if(0 == msc.size()) {
167 isFirstInstance = true;
168 msc.resize(1, nullptr);
169 }
170 l.unlock();
171 }
172 // initialise cache for each new run
174
175 /*
176 G4cout << "### G4UrbanMscModel::Initialise done for "
177 << p->GetParticleName() << " type= " << steppingAlgorithm << G4endl;
178 G4cout << " RangeFact= " << facrange << " GeomFact= " << facgeom
179 << " SafetyFact= " << facsafety << " LambdaLim= " << lambdalimit
180 << G4endl;
181 */
182}
G4bool LateralDisplacementAlg96() const
G4ParticleChangeForMSC * GetParticleChangeForMSC(const G4ParticleDefinition *p=nullptr)
Definition: G4VMscModel.cc:78
void InitialiseParameters(const G4ParticleDefinition *)
Definition: G4VMscModel.cc:116

References dispAlg96, fParticleChange, G4VMscModel::GetParticleChangeForMSC(), InitialiseModelCache(), G4VMscModel::InitialiseParameters(), G4EmParameters::Instance(), isFirstInstance, G4VMscModel::latDisplasment, latDisplasmentbackup, G4EmParameters::LateralDisplacementAlg96(), msc, SetParticle(), anonymous_namespace{G4UrbanMscModel.cc}::theUrbanMutex, and G4TemplateAutoLock< _Mutex_t >::unlock().

◆ InitialiseElementSelectors()

void G4VEmModel::InitialiseElementSelectors ( const G4ParticleDefinition part,
const G4DataVector cuts 
)
inherited

Definition at line 138 of file G4VEmModel.cc.

140{
141 // using spline for element selectors should be investigated in details
142 // because small number of points may provide biased results
143 // large number of points requires significant increase of memory
144 G4bool spline = false;
145
146 //G4cout << "IES: for " << GetName() << " Emin(MeV)= " << lowLimit/MeV
147 // << " Emax(MeV)= " << highLimit/MeV << G4endl;
148
149 // two times less bins because probability functon is normalized
150 // so correspondingly is more smooth
151 if(highLimit <= lowLimit) { return; }
152
154
155 G4ProductionCutsTable* theCoupleTable=
157 G4int numOfCouples = theCoupleTable->GetTableSize();
158
159 // prepare vector
160 if(!elmSelectors) {
161 elmSelectors = new std::vector<G4EmElementSelector*>;
162 }
163 if(numOfCouples > nSelectors) {
164 for(G4int i=nSelectors; i<numOfCouples; ++i) {
165 elmSelectors->push_back(nullptr);
166 }
167 nSelectors = numOfCouples;
168 }
169
170 // initialise vector
171 for(G4int i=0; i<numOfCouples; ++i) {
172
173 // no need in element selectors for infinite cuts
174 if(cuts[i] == DBL_MAX) { continue; }
175
176 auto couple = theCoupleTable->GetMaterialCutsCouple(i);
177 auto material = couple->GetMaterial();
178 SetCurrentCouple(couple);
179
180 // selector already exist then delete
181 delete (*elmSelectors)[i];
182
183 G4double emin = std::max(lowLimit, MinPrimaryEnergy(material, part, cuts[i]));
184 G4double emax = std::max(highLimit, 10*emin);
185 static const G4double invlog106 = 1.0/(6*G4Log(10.));
186 G4int nbins = (G4int)(nbinsPerDec*G4Log(emax/emin)*invlog106);
187 nbins = std::max(nbins, 3);
188
189 (*elmSelectors)[i] = new G4EmElementSelector(this,material,nbins,
190 emin,emax,spline);
191 ((*elmSelectors)[i])->Initialise(part, cuts[i]);
192 /*
193 G4cout << "G4VEmModel::InitialiseElmSelectors i= " << i
194 << " " << part->GetParticleName()
195 << " for " << GetName() << " cut= " << cuts[i]
196 << " " << (*elmSelectors)[i] << G4endl;
197 ((*elmSelectors)[i])->Dump(part);
198 */
199 }
200}
bool G4bool
Definition: G4Types.hh:86
G4int NumberOfBinsPerDecade() const
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
std::size_t GetTableSize() const
static G4ProductionCutsTable * GetProductionCutsTable()
virtual G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double cut=0.0)
Definition: G4VEmModel.cc:415
G4double lowLimit
Definition: G4VEmModel.hh:436
G4int nSelectors
Definition: G4VEmModel.hh:443
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)=0

References DBL_MAX, G4VEmModel::elmSelectors, emax, G4Log(), G4ProductionCutsTable::GetMaterialCutsCouple(), G4ProductionCutsTable::GetProductionCutsTable(), G4ProductionCutsTable::GetTableSize(), G4VEmModel::highLimit, G4VEmModel::Initialise(), G4EmParameters::Instance(), G4VEmModel::lowLimit, eplot::material, G4INCL::Math::max(), G4VEmModel::MinPrimaryEnergy(), G4VEmModel::nSelectors, G4EmParameters::NumberOfBinsPerDecade(), and G4VEmModel::SetCurrentCouple().

Referenced by G4eSingleCoulombScatteringModel::Initialise(), G4PAIModel::Initialise(), G4PAIPhotModel::Initialise(), G4JAEAElasticScatteringModel::Initialise(), G4JAEAPolarizedElasticScatteringModel::Initialise(), G4LivermoreComptonModel::Initialise(), G4LivermoreGammaConversion5DModel::Initialise(), G4LivermoreGammaConversionModel::Initialise(), G4LivermoreNuclearGammaConversionModel::Initialise(), G4LivermorePolarizedComptonModel::Initialise(), G4LivermorePolarizedGammaConversionModel::Initialise(), G4LivermorePolarizedRayleighModel::Initialise(), G4LivermoreRayleighModel::Initialise(), G4LowEPComptonModel::Initialise(), G4LowEPPolarizedComptonModel::Initialise(), G4PenelopePhotoElectricModel::Initialise(), G4MuBremsstrahlungModel::Initialise(), G4MuPairProductionModel::Initialise(), G4BetheHeitlerModel::Initialise(), G4eBremParametrizedModel::Initialise(), G4eBremsstrahlungRelModel::Initialise(), G4eCoulombScatteringModel::Initialise(), G4eDPWACoulombScatteringModel::Initialise(), G4hCoulombScatteringModel::Initialise(), G4KleinNishinaCompton::Initialise(), G4KleinNishinaModel::Initialise(), G4PairProductionRelModel::Initialise(), G4SeltzerBergerModel::Initialise(), and G4XrayRayleighModel::Initialise().

◆ InitialiseForElement()

void G4VEmModel::InitialiseForElement ( const G4ParticleDefinition ,
G4int  Z 
)
virtualinherited

◆ InitialiseForMaterial()

void G4VEmModel::InitialiseForMaterial ( const G4ParticleDefinition part,
const G4Material material 
)
virtualinherited

Definition at line 209 of file G4VEmModel.cc.

211{
212 if(material != nullptr) {
213 size_t n = material->GetNumberOfElements();
214 for(size_t i=0; i<n; ++i) {
215 G4int Z = material->GetElement(i)->GetZasInt();
216 InitialiseForElement(part, Z);
217 }
218 }
219}
const G4int Z[17]
virtual void InitialiseForElement(const G4ParticleDefinition *, G4int Z)
Definition: G4VEmModel.cc:223

References G4VEmModel::InitialiseForElement(), eplot::material, CLHEP::detail::n, and Z.

Referenced by G4EmCalculator::FindEmModel().

◆ InitialiseLocal()

void G4VEmModel::InitialiseLocal ( const G4ParticleDefinition ,
G4VEmModel masterModel 
)
virtualinherited

◆ InitialiseModelCache()

void G4UrbanMscModel::InitialiseModelCache ( )
private

Definition at line 1230 of file G4UrbanMscModel.cc.

1231{
1232 // it is assumed, that for the second run only addition
1233 // of a new G4MaterialCutsCouple is possible
1234 auto theCoupleTable = G4ProductionCutsTable::GetProductionCutsTable();
1235 size_t numOfCouples = theCoupleTable->GetTableSize();
1236 if(numOfCouples != msc.size()) { msc.resize(numOfCouples, nullptr); }
1237
1238 for(size_t j=0; j<numOfCouples; ++j) {
1239 auto aCouple = theCoupleTable->GetMaterialCutsCouple(j);
1240
1241 // cut may be changed before runs
1242 G4double cut = aCouple->GetProductionCuts()->GetProductionCut(1);
1243 if(nullptr != msc[j]) {
1244 msc[j]->ecut = cut;
1245 continue;
1246 }
1247 // new couple
1248 msc[j] = new mscData();
1249 msc[j]->ecut = cut;
1250 G4double Zeff = aCouple->GetMaterial()->GetIonisation()->GetZeffective();
1251 msc[j]->Zeff = Zeff;
1252 msc[j]->sqrtZ = std::sqrt(Zeff);
1253 G4double lnZ = G4Log(Zeff);
1254 // correction in theta0 formula
1255 G4double w = G4Exp(lnZ/6.);
1256 G4double facz = 0.990395+w*(-0.168386+w*0.093286) ;
1257 msc[j]->coeffth1 = facz*(1. - 8.7780e-2/Zeff);
1258 msc[j]->coeffth2 = facz*(4.0780e-2 + 1.7315e-4*Zeff);
1259
1260 // tail parameters
1261 G4double Z13 = w*w;
1262 msc[j]->coeffc1 = 2.3785 - Z13*(4.1981e-1 - Z13*6.3100e-2);
1263 msc[j]->coeffc2 = 4.7526e-1 + Z13*(1.7694 - Z13*3.3885e-1);
1264 msc[j]->coeffc3 = 2.3683e-1 - Z13*(1.8111 - Z13*3.2774e-1);
1265 msc[j]->coeffc4 = 1.7888e-2 + Z13*(1.9659e-2 - Z13*2.6664e-3);
1266
1267 msc[j]->Z23 = Z13*Z13;
1268
1269 msc[j]->stepmina = 27.725/(1.+0.203*Zeff);
1270 msc[j]->stepminb = 6.152/(1.+0.111*Zeff);
1271
1272 // 21.07.2020
1273 msc[j]->doverra = 9.6280e-1 - 8.4848e-2*msc[j]->sqrtZ + 4.3769e-3*Zeff;
1274
1275 // 06.10.2020
1276 // msc[j]->doverra = 7.7024e-1 - 6.7878e-2*msc[j]->sqrtZ + 3.5015e-3*Zeff;
1277
1278 msc[j]->doverrb = 1.15 - 9.76e-4*Zeff;
1279 }
1280}

References G4Exp(), G4Log(), G4ProductionCutsTable::GetProductionCutsTable(), and msc.

Referenced by Initialise().

◆ InitialiseParameters()

void G4VMscModel::InitialiseParameters ( const G4ParticleDefinition part)
inherited

Definition at line 116 of file G4VMscModel.cc.

117{
118 if(IsLocked()) { return; }
120 if(std::abs(part->GetPDGEncoding()) == 11) {
122 facrange = param->MscRangeFactor();
124 } else {
126 facrange = param->MscMuHadRangeFactor();
128 }
129 skin = param->MscSkin();
130 facgeom = param->MscGeomFactor();
131 facsafety = param->MscSafetyFactor();
132 lambdalimit = param->MscLambdaLimit();
133}
G4double MscMuHadRangeFactor() const
G4MscStepLimitType MscMuHadStepLimitType() const
G4double MscSafetyFactor() const
G4MscStepLimitType MscStepLimitType() const
G4double MscGeomFactor() const
G4bool LateralDisplacement() const
G4bool MuHadLateralDisplacement() const
G4double MscLambdaLimit() const
G4double MscRangeFactor() const
G4double MscSkin() const
G4bool IsLocked() const
Definition: G4VEmModel.hh:877

References G4VMscModel::facgeom, G4VMscModel::facrange, G4VMscModel::facsafety, G4ParticleDefinition::GetPDGEncoding(), G4EmParameters::Instance(), G4VEmModel::IsLocked(), G4VMscModel::lambdalimit, G4VMscModel::latDisplasment, G4EmParameters::LateralDisplacement(), G4EmParameters::MscGeomFactor(), G4EmParameters::MscLambdaLimit(), G4EmParameters::MscMuHadRangeFactor(), G4EmParameters::MscMuHadStepLimitType(), G4EmParameters::MscRangeFactor(), G4EmParameters::MscSafetyFactor(), G4EmParameters::MscSkin(), G4EmParameters::MscStepLimitType(), G4EmParameters::MuHadLateralDisplacement(), G4VMscModel::skin, and G4VMscModel::steppingAlgorithm.

Referenced by G4GoudsmitSaundersonMscModel::Initialise(), Initialise(), and G4WentzelVIModel::Initialise().

◆ IsActive()

G4bool G4VEmModel::IsActive ( G4double  kinEnergy) const
inlineinherited

◆ IsLocked()

G4bool G4VEmModel::IsLocked ( ) const
inlineinherited

◆ IsMaster()

G4bool G4VEmModel::IsMaster ( ) const
inlineinherited

Definition at line 746 of file G4VEmModel.hh.

747{
748 return isMaster;
749}
G4bool isMaster
Definition: G4VEmModel.hh:457

References G4VEmModel::isMaster.

Referenced by G4PenelopeBremsstrahlungModel::BuildXSTable(), G4PenelopeBremsstrahlungModel::ClearTables(), G4MuPairProductionModel::DataCorrupted(), G4PenelopePhotoElectricModel::GetNumberOfShellXS(), G4VMscModel::GetParticleChangeForMSC(), G4BoldyshevTripletModel::Initialise(), G4eSingleCoulombScatteringModel::Initialise(), G4PAIModel::Initialise(), G4PAIPhotModel::Initialise(), G4EmMultiModel::Initialise(), G4mplIonisationModel::Initialise(), G4mplIonisationWithDeltaModel::Initialise(), G4JAEAElasticScatteringModel::Initialise(), G4JAEAPolarizedElasticScatteringModel::Initialise(), G4LivermoreBremsstrahlungModel::Initialise(), G4LivermoreComptonModel::Initialise(), G4LivermoreGammaConversion5DModel::Initialise(), G4LivermoreGammaConversionModel::Initialise(), G4LivermoreNuclearGammaConversionModel::Initialise(), G4LivermorePhotoElectricModel::Initialise(), G4LivermorePolarizedComptonModel::Initialise(), G4LivermorePolarizedGammaConversionModel::Initialise(), G4LivermorePolarizedRayleighModel::Initialise(), G4LivermoreRayleighModel::Initialise(), G4LowEPComptonModel::Initialise(), G4LowEPPolarizedComptonModel::Initialise(), G4PenelopeAnnihilationModel::Initialise(), G4PenelopeBremsstrahlungModel::Initialise(), G4PenelopeComptonModel::Initialise(), G4PenelopeGammaConversionModel::Initialise(), G4PenelopeIonisationModel::Initialise(), G4PenelopePhotoElectricModel::Initialise(), G4PenelopeRayleighModel::Initialise(), G4PenelopeRayleighModelMI::Initialise(), G4MuBremsstrahlungModel::Initialise(), G4MuPairProductionModel::Initialise(), G4BetheBlochModel::Initialise(), G4BetheHeitlerModel::Initialise(), G4BraggIonModel::Initialise(), G4BraggModel::Initialise(), G4eBremParametrizedModel::Initialise(), G4eBremsstrahlungRelModel::Initialise(), G4eCoulombScatteringModel::Initialise(), G4eDPWACoulombScatteringModel::Initialise(), G4eeToTwoGammaModel::Initialise(), G4eplusTo2GammaOKVIModel::Initialise(), G4GoudsmitSaundersonMscModel::Initialise(), G4hCoulombScatteringModel::Initialise(), G4KleinNishinaCompton::Initialise(), G4KleinNishinaModel::Initialise(), G4LindhardSorensenIonModel::Initialise(), G4PairProductionRelModel::Initialise(), G4SeltzerBergerModel::Initialise(), G4WentzelVIModel::Initialise(), G4PenelopeBremsstrahlungModel::InitialiseLocal(), G4PenelopeGammaConversionModel::ReadDataFile(), G4PenelopePhotoElectricModel::ReadDataFile(), G4BetheHeitlerModel::~G4BetheHeitlerModel(), G4BoldyshevTripletModel::~G4BoldyshevTripletModel(), G4BraggIonModel::~G4BraggIonModel(), G4BraggModel::~G4BraggModel(), G4eBremsstrahlungRelModel::~G4eBremsstrahlungRelModel(), G4eDPWACoulombScatteringModel::~G4eDPWACoulombScatteringModel(), G4GoudsmitSaundersonMscModel::~G4GoudsmitSaundersonMscModel(), G4JAEAElasticScatteringModel::~G4JAEAElasticScatteringModel(), G4JAEAPolarizedElasticScatteringModel::~G4JAEAPolarizedElasticScatteringModel(), G4LivermoreBremsstrahlungModel::~G4LivermoreBremsstrahlungModel(), G4LivermoreComptonModel::~G4LivermoreComptonModel(), G4LivermoreGammaConversion5DModel::~G4LivermoreGammaConversion5DModel(), G4LivermoreGammaConversionModel::~G4LivermoreGammaConversionModel(), G4LivermoreNuclearGammaConversionModel::~G4LivermoreNuclearGammaConversionModel(), G4LivermorePhotoElectricModel::~G4LivermorePhotoElectricModel(), G4LivermorePolarizedComptonModel::~G4LivermorePolarizedComptonModel(), G4LivermorePolarizedGammaConversionModel::~G4LivermorePolarizedGammaConversionModel(), G4LivermorePolarizedRayleighModel::~G4LivermorePolarizedRayleighModel(), G4LivermoreRayleighModel::~G4LivermoreRayleighModel(), G4LowEPComptonModel::~G4LowEPComptonModel(), G4LowEPPolarizedComptonModel::~G4LowEPPolarizedComptonModel(), G4mplIonisationModel::~G4mplIonisationModel(), G4mplIonisationWithDeltaModel::~G4mplIonisationWithDeltaModel(), G4PAIModel::~G4PAIModel(), G4PAIPhotModel::~G4PAIPhotModel(), G4PairProductionRelModel::~G4PairProductionRelModel(), G4PenelopeBremsstrahlungModel::~G4PenelopeBremsstrahlungModel(), G4PenelopeGammaConversionModel::~G4PenelopeGammaConversionModel(), G4PenelopeIonisationModel::~G4PenelopeIonisationModel(), G4PenelopePhotoElectricModel::~G4PenelopePhotoElectricModel(), G4PenelopeRayleighModel::~G4PenelopeRayleighModel(), G4PenelopeRayleighModelMI::~G4PenelopeRayleighModelMI(), G4SeltzerBergerModel::~G4SeltzerBergerModel(), and G4WentzelVIModel::~G4WentzelVIModel().

◆ LowEnergyActivationLimit()

G4double G4VEmModel::LowEnergyActivationLimit ( ) const
inlineinherited

◆ LowEnergyLimit()

G4double G4VEmModel::LowEnergyLimit ( ) const
inlineinherited

Definition at line 662 of file G4VEmModel.hh.

663{
664 return lowLimit;
665}

References G4VEmModel::lowLimit.

Referenced by G4eBremsstrahlungRelModel::ComputeCrossSectionPerAtom(), G4KleinNishinaCompton::ComputeCrossSectionPerAtom(), G4KleinNishinaModel::ComputeCrossSectionPerAtom(), G4LivermoreComptonModel::ComputeCrossSectionPerAtom(), G4LivermorePolarizedComptonModel::ComputeCrossSectionPerAtom(), G4LowEPComptonModel::ComputeCrossSectionPerAtom(), G4LowEPPolarizedComptonModel::ComputeCrossSectionPerAtom(), G4mplIonisationWithDeltaModel::ComputeCrossSectionPerElectron(), G4EmCalculator::ComputeDEDX(), G4eBremsstrahlungRelModel::ComputeDEDXPerVolume(), G4mplIonisationWithDeltaModel::ComputeDEDXPerVolume(), G4IonParametrisedLossModel::ComputeDEDXPerVolume(), G4IonParametrisedLossModel::CorrectionsAlongStep(), G4PenelopeRayleighModelMI::CrossSectionPerVolume(), G4PenelopeComptonModel::CrossSectionPerVolume(), G4DNAChampionElasticModel::CrossSectionPerVolume(), G4DNACPA100ElasticModel::CrossSectionPerVolume(), G4DNACPA100ExcitationModel::CrossSectionPerVolume(), G4DNACPA100IonisationModel::CrossSectionPerVolume(), G4DNAEmfietzoglouExcitationModel::CrossSectionPerVolume(), G4DNAEmfietzoglouIonisationModel::CrossSectionPerVolume(), G4DNAMeltonAttachmentModel::CrossSectionPerVolume(), G4DNASancheExcitationModel::CrossSectionPerVolume(), G4DNAScreenedRutherfordElasticModel::CrossSectionPerVolume(), G4DNAELSEPAElasticModel::CrossSectionPerVolume(), G4EmCalculator::FindEmModel(), G4DNAChampionElasticModel::G4DNAChampionElasticModel(), G4DNACPA100ElasticModel::G4DNACPA100ElasticModel(), G4DNAMeltonAttachmentModel::G4DNAMeltonAttachmentModel(), G4DNASancheExcitationModel::G4DNASancheExcitationModel(), G4DNAUeharaScreenedRutherfordElasticModel::G4DNAUeharaScreenedRutherfordElasticModel(), G4eeToHadronsModel::G4eeToHadronsModel(), G4LivermorePolarizedRayleighModel::G4LivermorePolarizedRayleighModel(), G4PenelopeBremsstrahlungModel::GetCrossSectionTableForCouple(), G4VMscModel::GetParticleChangeForMSC(), G4DNAChampionElasticModel::Initialise(), G4DNACPA100ElasticModel::Initialise(), G4DNADingfelderChargeDecreaseModel::Initialise(), G4DNADingfelderChargeIncreaseModel::Initialise(), G4DNAMeltonAttachmentModel::Initialise(), G4DNAMillerGreenExcitationModel::Initialise(), G4DNARuddIonisationExtendedModel::Initialise(), G4DNARuddIonisationModel::Initialise(), G4DNASancheExcitationModel::Initialise(), G4DNAScreenedRutherfordElasticModel::Initialise(), G4DNAUeharaScreenedRutherfordElasticModel::Initialise(), G4BoldyshevTripletModel::Initialise(), G4PAIModel::Initialise(), G4PAIPhotModel::Initialise(), G4JAEAElasticScatteringModel::Initialise(), G4JAEAPolarizedElasticScatteringModel::Initialise(), G4LivermoreComptonModel::Initialise(), G4LivermoreGammaConversion5DModel::Initialise(), G4LivermoreGammaConversionModel::Initialise(), G4LivermoreIonisationModel::Initialise(), G4LivermoreNuclearGammaConversionModel::Initialise(), G4LivermorePolarizedComptonModel::Initialise(), G4LivermorePolarizedGammaConversionModel::Initialise(), G4LivermoreRayleighModel::Initialise(), G4LowEPComptonModel::Initialise(), G4LowEPPolarizedComptonModel::Initialise(), G4MicroElecElasticModel::Initialise(), G4MicroElecElasticModel_new::Initialise(), G4MicroElecInelasticModel::Initialise(), G4MicroElecInelasticModel_new::Initialise(), G4PenelopeAnnihilationModel::Initialise(), G4PenelopeBremsstrahlungModel::Initialise(), G4PenelopeComptonModel::Initialise(), G4PenelopeGammaConversionModel::Initialise(), G4PenelopeIonisationModel::Initialise(), G4PenelopePhotoElectricModel::Initialise(), G4PenelopeRayleighModel::Initialise(), G4PenelopeRayleighModelMI::Initialise(), G4MuPairProductionModel::Initialise(), G4eBremParametrizedModel::Initialise(), G4eBremsstrahlungRelModel::Initialise(), G4eDPWACoulombScatteringModel::Initialise(), G4GoudsmitSaundersonMscModel::Initialise(), G4PairProductionRelModel::Initialise(), G4SeltzerBergerModel::Initialise(), G4WentzelVIModel::Initialise(), G4DNABornExcitationModel1::Initialise(), G4DNABornExcitationModel2::Initialise(), G4DNABornIonisationModel1::Initialise(), G4DNABornIonisationModel2::Initialise(), G4DNACPA100ExcitationModel::Initialise(), G4DNACPA100IonisationModel::Initialise(), G4DNADiracRMatrixExcitationModel::Initialise(), G4DNAEmfietzoglouExcitationModel::Initialise(), G4DNAEmfietzoglouIonisationModel::Initialise(), G4DNAQuinnPlasmonExcitationModel::Initialise(), G4DNARelativisticIonisationModel::Initialise(), G4EmModelManager::Initialise(), G4DNAELSEPAElasticModel::Initialise(), G4DNADummyModel::Initialise(), G4DNAIonElasticModel::Initialise(), G4mplIonisation::InitialiseEnergyLossProcess(), G4eBremsstrahlungRelModel::InitialiseLocal(), G4PairProductionRelModel::InitialiseLocal(), G4CoulombScattering::InitialiseProcess(), G4VEmProcess::PostStepDoIt(), G4eBremsstrahlungRelModel::SampleSecondaries(), G4DNACPA100IonisationModel::SampleSecondaries(), G4DNAEmfietzoglouIonisationModel::SampleSecondaries(), G4LivermoreComptonModel::SampleSecondaries(), G4LivermorePolarizedComptonModel::SampleSecondaries(), G4LowEPComptonModel::SampleSecondaries(), G4LowEPPolarizedComptonModel::SampleSecondaries(), G4PenelopeComptonModel::SampleSecondaries(), G4PolarizedComptonModel::SampleSecondaries(), G4KleinNishinaCompton::SampleSecondaries(), G4KleinNishinaModel::SampleSecondaries(), G4EmConfigurator::SetExtraEmModel(), G4mplIonisationModel::SetParticle(), G4mplIonisationWithDeltaModel::SetParticle(), and G4EmConfigurator::UpdateModelEnergyRange().

◆ LPMFlag()

G4bool G4VEmModel::LPMFlag ( ) const
inlineinherited

◆ MaxSecondaryEnergy()

G4double G4VEmModel::MaxSecondaryEnergy ( const G4ParticleDefinition ,
G4double  kineticEnergy 
)
protectedvirtualinherited

◆ MaxSecondaryKinEnergy()

G4double G4VEmModel::MaxSecondaryKinEnergy ( const G4DynamicParticle dynParticle)
inlineinherited

◆ MinEnergyCut()

G4double G4VEmModel::MinEnergyCut ( const G4ParticleDefinition ,
const G4MaterialCutsCouple  
)
virtualinherited

◆ MinPrimaryEnergy()

G4double G4VEmModel::MinPrimaryEnergy ( const G4Material ,
const G4ParticleDefinition ,
G4double  cut = 0.0 
)
virtualinherited

◆ ModelDescription()

void G4VEmModel::ModelDescription ( std::ostream &  outFile) const
virtualinherited

Reimplemented in G4eeToHadronsMultiModel.

Definition at line 469 of file G4VEmModel.cc.

470{
471 outFile << "The description for this model has not been written yet.\n";
472}

◆ operator=()

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

◆ PolarAngleLimit()

G4double G4VEmModel::PolarAngleLimit ( ) const
inlineinherited

◆ Randomizetlimit()

G4double G4UrbanMscModel::Randomizetlimit ( )
inlineprivate

Definition at line 215 of file G4UrbanMscModel.hh.

216{
217 G4double res = tlimitmin;
218 if(tlimit > tlimitmin)
219 {
221 res = std::max(res, tlimitmin);
222 }
223 return res;
224}
ThreeVector shoot(const G4int Ap, const G4int Af)

References G4INCL::Math::max(), rndmEngineMod, G4INCL::DeJongSpin::shoot(), tlimit, and tlimitmin.

Referenced by ComputeTruePathLengthLimit().

◆ SampleCosineTheta()

G4double G4UrbanMscModel::SampleCosineTheta ( G4double  trueStepLength,
G4double  KineticEnergy 
)
private

Definition at line 875 of file G4UrbanMscModel.cc.

877{
878 G4double cth = 1.0;
879 G4double tau = trueStepLength/lambda0;
880
881 G4double lambda1 = GetTransportMeanFreePath(particle, kinEnergy);
882 if(std::abs(lambda1 - lambda0) > lambda0*0.01 && lambda1 > 0.)
883 {
884 // mean tau value
885 tau = trueStepLength*G4Log(lambda0/lambda1)/(lambda0-lambda1);
886 }
887
888 currentTau = tau;
889 lambdaeff = trueStepLength/currentTau;
891
892 if (tau >= taubig) { cth = -1.+2.*rndmEngineMod->flat(); }
893 else if (tau >= tausmall) {
894 static const G4double numlim = 0.01;
895 static const G4double onethird = 1./3.;
896 G4double xmeanth, x2meanth;
897 if(tau < numlim) {
898 xmeanth = 1.0 - tau*(1.0 - 0.5*tau);
899 x2meanth= 1.0 - tau*(5.0 - 6.25*tau)*onethird;
900 } else {
901 xmeanth = G4Exp(-tau);
902 x2meanth = (1.+2.*G4Exp(-2.5*tau))*onethird;
903 }
904
905 // too large step of low-energy particle
906 G4double relloss = 1. - kinEnergy/currentKinEnergy;
907 static const G4double rellossmax= 0.50;
908 if(relloss > rellossmax) {
909 return SimpleScattering(xmeanth,x2meanth);
910 }
911 // is step extreme small ?
912 G4bool extremesmallstep = false;
914 G4double theta0;
915 if(trueStepLength > tsmall) {
916 theta0 = ComputeTheta0(trueStepLength,kinEnergy);
917 } else {
918 theta0 = std::sqrt(trueStepLength/tsmall)
919 *ComputeTheta0(tsmall,kinEnergy);
920 extremesmallstep = true;
921 }
922
923 static const G4double onesixth = 1./6.;
924 static const G4double theta0max = CLHEP::pi*onesixth;
925 //G4cout << "Theta0= " << theta0 << " theta0max= " << theta0max
926 // << " sqrt(tausmall)= " << sqrt(tausmall) << G4endl;
927
928 // protection for very small angles
929 G4double theta2 = theta0*theta0;
930
931 if(theta2 < tausmall) { return cth; }
932
933 if(theta0 > theta0max) {
934 return SimpleScattering(xmeanth,x2meanth);
935 }
936
937 G4double x = theta2*(1.0 - theta2/12.);
938 if(theta2 > numlim) {
939 G4double sth = 2*std::sin(0.5*theta0);
940 x = sth*sth;
941 }
942
943 // parameter for tail
944 G4double ltau= G4Log(tau);
945 G4double u = !extremesmallstep ? G4Exp(ltau*onesixth)
946 : G4Exp(G4Log(tsmall/lambda0)*onesixth);
947
949 G4double xsi = msc[idx]->coeffc1 +
950 u*(msc[idx]->coeffc2+msc[idx]->coeffc3*u)+msc[idx]->coeffc4*xx;
951
952 // tail should not be too big
953 xsi = std::max(xsi, 1.9);
954 /*
955 if(KineticEnergy > 20*MeV && xsi < 1.6) {
956 G4cout << "G4UrbanMscModel::SampleCosineTheta: E(GeV)= "
957 << KineticEnergy/GeV
958 << " !!** c= " << xsi
959 << " **!! length(mm)= " << trueStepLength << " Zeff= " << Zeff
960 << " " << couple->GetMaterial()->GetName()
961 << " tau= " << tau << G4endl;
962 }
963 */
964
965 G4double c = xsi;
966
967 if(std::abs(c-3.) < 0.001) { c = 3.001; }
968 else if(std::abs(c-2.) < 0.001) { c = 2.001; }
969
970 G4double c1 = c-1.;
971 G4double ea = G4Exp(-xsi);
972 G4double eaa = 1.-ea ;
973 G4double xmean1 = 1.-(1.-(1.+xsi)*ea)*x/eaa;
974 G4double x0 = 1. - xsi*x;
975
976 // G4cout << " xmean1= " << xmean1 << " xmeanth= " << xmeanth << G4endl;
977
978 if(xmean1 <= 0.999*xmeanth) {
979 return SimpleScattering(xmeanth,x2meanth);
980 }
981 //from continuity of derivatives
982 G4double b = 1.+(c-xsi)*x;
983
984 G4double b1 = b+1.;
985 G4double bx = c*x;
986
987 G4double eb1 = G4Exp(G4Log(b1)*c1);
988 G4double ebx = G4Exp(G4Log(bx)*c1);
989 G4double d = ebx/eb1;
990
991 G4double xmean2 = (x0 + d - (bx - b1*d)/(c-2.))/(1. - d);
992
993 G4double f1x0 = ea/eaa;
994 G4double f2x0 = c1/(c*(1. - d));
995 G4double prob = f2x0/(f1x0+f2x0);
996
997 G4double qprob = xmeanth/(prob*xmean1+(1.-prob)*xmean2);
998
999 // sampling of costheta
1000 //G4cout << "c= " << c << " qprob= " << qprob << " eb1= " << eb1
1001 // << " c1= " << c1 << " b1= " << b1 << " bx= " << bx << " eb1= " << eb1
1002 // << G4endl;
1004 if(rndmarray[0] < qprob)
1005 {
1006 G4double var = 0;
1007 if(rndmarray[1] < prob) {
1008 cth = 1.+G4Log(ea+rndmEngineMod->flat()*eaa)*x;
1009 } else {
1010 var = (1.0 - d)*rndmEngineMod->flat();
1011 if(var < numlim*d) {
1012 var /= (d*c1);
1013 cth = -1.0 + var*(1.0 - 0.5*var*c)*(2. + (c - xsi)*x);
1014 } else {
1015 cth = 1. + x*(c - xsi - c*G4Exp(-G4Log(var + d)/c1));
1016 }
1017 }
1018 } else {
1019 cth = -1.+2.*rndmarray[1];
1020 }
1021 }
1022 return cth;
1023}
virtual double flat()=0
virtual void flatArray(const int size, double *vect)=0
G4double GetRadlen() const
Definition: G4Material.hh:216
G4double ComputeTheta0(G4double truePathLength, G4double KineticEnergy)
G4double SimpleScattering(G4double xmeanth, G4double x2meanth)
static constexpr double pi
Definition: SystemOfUnits.h:55

References ComputeTheta0(), couple, currentKinEnergy, currentRadLength, currentTau, CLHEP::HepRandomEngine::flat(), CLHEP::HepRandomEngine::flatArray(), G4Exp(), G4Log(), G4MaterialCutsCouple::GetMaterial(), G4Material::GetRadlen(), G4VMscModel::GetTransportMeanFreePath(), idx, lambda0, lambdaeff, G4VMscModel::lambdalimit, G4INCL::Math::max(), G4INCL::Math::min(), msc, particle, CLHEP::pi, rndmarray, rndmEngineMod, SimpleScattering(), taubig, tausmall, and tlimitmin.

Referenced by SampleScattering().

◆ SampleDisplacement()

void G4UrbanMscModel::SampleDisplacement ( G4double  sinTheta,
G4double  phi 
)
private

Definition at line 1079 of file G4UrbanMscModel.cc.

1080{
1081 // simple and fast sampling
1082 // based on single scattering results
1083 // u = r/rmax : mean value
1084
1086 if(rmax > 0.)
1087 {
1088 G4double r = 0.73*rmax;
1089
1090 // simple distribution for v=Phi-phi=psi ~exp(-beta*v)
1091 // beta determined from the requirement that distribution should give
1092 // the same mean value than that obtained from the ss simulation
1093
1094 static const G4double cbeta = 2.160;
1095 static const G4double cbeta1 = 1. - G4Exp(-cbeta*CLHEP::pi);
1097 G4double psi = -G4Log(1. - rndmarray[0]*cbeta1)/cbeta;
1098 G4double Phi = (rndmarray[1] < 0.5) ? phi+psi : phi-psi;
1099 fDisplacement.set(r*std::cos(Phi),r*std::sin(Phi),0.0);
1100 }
1101}
void set(double x, double y, double z)
G4ThreeVector fDisplacement
Definition: G4VMscModel.hh:208

References G4VMscModel::fDisplacement, CLHEP::HepRandomEngine::flatArray(), G4Exp(), G4Log(), CLHEP::pi, rndmarray, rndmEngineMod, CLHEP::Hep3Vector::set(), tPathLength, and zPathLength.

Referenced by SampleScattering().

◆ SampleDisplacementNew()

void G4UrbanMscModel::SampleDisplacementNew ( G4double  sinTheta,
G4double  phi 
)
private

Definition at line 1105 of file G4UrbanMscModel.cc.

1106{
1107 // best sampling based on single scattering results
1108 G4double rmax =
1110 G4double r(0.0);
1111 G4double u(0.0);
1112 static const G4double reps = 5.e-3;
1113
1114 if(rmax > 0.)
1115 {
1116 static const G4double umax = 0.855;
1117 static const G4double wlow = 0.750;
1118
1119 static const G4double ralpha = 6.83e+0;
1120 static const G4double ra1 =-4.16179e+1;
1121 static const G4double ra2 = 1.12548e+2;
1122 static const G4double ra3 =-8.66665e+1;
1123 static const G4double ralpha1 = 0.751*ralpha;
1124 static const G4double ralpha2 =ralpha-ralpha1;
1125 static const G4double rwa1 = G4Exp(ralpha1*reps);
1126 static const G4double rwa2 = G4Exp(ralpha1*umax)-rwa1;
1127 static const G4double rejamax = 1.16456;
1128
1129 static const G4double rbeta = 2.18e+1;
1130 static const G4double rb0 = 4.81382e+2;
1131 static const G4double rb1 =-1.12842e+4;
1132 static const G4double rb2 = 4.57745e+4;
1133 static const G4double rbeta1 = 0.732*rbeta;
1134 static const G4double rbeta2 = rbeta-rbeta1;
1135 static const G4double rwb1 = G4Exp(-rbeta1*umax);
1136 static const G4double rwb2 = rwb1-G4Exp(-rbeta1*(1.-reps));
1137 static const G4double rejbmax = 1.62651;
1138
1139 G4int count = 0;
1140 G4double uc,rej;
1141
1142 if(rndmEngineMod->flat() < wlow)
1143 {
1144 do {
1146 u = G4Log(rwa1+rwa2*rndmarray[0])/ralpha1;
1147 uc = umax-u;
1148 rej = G4Exp(-ralpha2*uc)*
1149 (1.+ralpha*uc+ra1*uc*uc+ra2*uc*uc*uc+ra3*uc*uc*uc*uc);
1150 } while (rejamax*rndmarray[1] > rej && ++count < 1000);
1151 }
1152 else
1153 {
1154 do {
1156 u = -G4Log(rwb1-rwb2*rndmarray[0])/rbeta1;
1157 uc = u-umax;
1158 rej = G4Exp(-rbeta2*uc)*
1159 (1.+rbeta*uc+rb0*uc*uc+rb1*uc*uc*uc+rb2*uc*uc*uc*uc);
1160 } while (rejbmax*rndmarray[1] > rej && ++count < 1000);
1161 }
1162 r = rmax*u;
1163 }
1164
1165 if(r > 0.)
1166 {
1167 // sample Phi using lateral correlation
1168 // and r/rmax - (Phi-phi) correlation
1169 // v = Phi-phi = acos(latcorr/(r*sth))
1170 // from SS simulation f(v)*g(v)
1171 // f(v) ~ exp(-a1*v) normalized distribution
1172 // g(v) rejection function (0 < g(v) <= 1)
1173 G4double v, rej;
1174
1175 static const G4double peps = 1.e-4;
1176 static const G4double Pi = CLHEP::pi;
1177 static const G4double palpha[10] = {2.300e+0,2.490e+0,2.610e+0,2.820e+0,2.710e+0,
1178 2.750e+0,2.910e+0,3.400e+0,4.150e+0,5.400e+0};
1179 static const G4double palpha1[10]= {4.600e-2,1.245e-1,2.610e-1,2.820e-1,2.710e-1,
1180 6.875e-1,1.019e+0,1.360e+0,1.660e+0,2.430e+0};
1181 static const G4double pejmax[10] = {3.513,1.968,1.479,1.239,1.116,
1182 1.081,1.064,1.073,1.103,1.158};
1183
1184 static const G4double pa1[10] = { 3.218e+0, 2.412e+0, 2.715e+0, 2.787e+0, 2.541e+0,
1185 2.508e+0, 2.600e+0, 3.231e+0, 4.588e+0, 6.584e+0};
1186 static const G4double pa2[10] = {-5.528e-1, 2.523e+0, 1.738e+0, 2.082e+0, 1.423e+0,
1187 4.682e-1,-6.883e-1,-2.147e+0,-5.127e+0,-1.054e+1};
1188 static const G4double pa3[10] = { 3.618e+0, 2.032e+0, 2.341e+0, 2.172e+0, 7.205e-1,
1189 4.655e-1, 6.318e-1, 1.255e+0, 2.425e+0, 4.938e+0};
1190 static const G4double pa4[10] = { 2.437e+0, 9.450e-1, 4.349e-1, 2.221e-1, 1.130e-1,
1191 5.405e-2, 2.245e-2, 7.370e-3, 1.456e-3, 1.508e-4};
1192 static const G4double pw1[10] = {G4Exp(-palpha1[0]*peps),G4Exp(-palpha1[1]*peps),
1193 G4Exp(-palpha1[2]*peps),G4Exp(-palpha1[3]*peps),
1194 G4Exp(-palpha1[4]*peps),G4Exp(-palpha1[5]*peps),
1195 G4Exp(-palpha1[6]*peps),G4Exp(-palpha1[7]*peps),
1196 G4Exp(-palpha1[8]*peps),G4Exp(-palpha1[9]*peps)};
1197 static const G4double pw2[10] = {pw1[0]-G4Exp(-palpha1[0]*(Pi-peps)),
1198 pw1[1]-G4Exp(-palpha1[1]*(Pi-peps)),
1199 pw1[2]-G4Exp(-palpha1[2]*(Pi-peps)),
1200 pw1[3]-G4Exp(-palpha1[3]*(Pi-peps)),
1201 pw1[4]-G4Exp(-palpha1[4]*(Pi-peps)),
1202 pw1[5]-G4Exp(-palpha1[5]*(Pi-peps)),
1203 pw1[6]-G4Exp(-palpha1[6]*(Pi-peps)),
1204 pw1[7]-G4Exp(-palpha1[7]*(Pi-peps)),
1205 pw1[8]-G4Exp(-palpha1[8]*(Pi-peps)),
1206 pw1[9]-G4Exp(-palpha1[9]*(Pi-peps))};
1207
1208 G4int iphi = (G4int)(u*10.);
1209 if(iphi < 0) { iphi = 0; }
1210 else if(iphi > 9) { iphi = 9; }
1211 G4int count = 0;
1212
1213 do {
1215 v = -G4Log(pw1[iphi]-pw2[iphi]*rndmarray[0])/palpha1[iphi];
1216 rej = (G4Exp(-palpha[iphi]*v)*
1217 (1+pa1[iphi]*v+pa2[iphi]*v*v+pa3[iphi]*v*v*v)+pa4[iphi])/
1218 G4Exp(-pw1[iphi]*v);
1219 }
1220 // Loop checking, 5-March-2018, Vladimir Ivanchenko
1221 while (pejmax[iphi]*rndmarray[1] > rej && ++count < 1000);
1222
1223 G4double Phi = (rndmEngineMod->flat() < 0.5) ? phi+v : phi-v;
1224 fDisplacement.set(r*std::cos(Phi),r*std::sin(Phi),0.0);
1225 }
1226}

References G4VMscModel::fDisplacement, CLHEP::HepRandomEngine::flat(), CLHEP::HepRandomEngine::flatArray(), G4Exp(), G4Log(), CLHEP::pi, rndmarray, rndmEngineMod, CLHEP::Hep3Vector::set(), tPathLength, and zPathLength.

Referenced by SampleScattering().

◆ SampleScattering()

G4ThreeVector & G4UrbanMscModel::SampleScattering ( const G4ThreeVector oldDirection,
G4double  safety 
)
overridevirtual

Implements G4VMscModel.

Definition at line 831 of file G4UrbanMscModel.cc.

833{
834 fDisplacement.set(0.0,0.0,0.0);
835 G4double kinEnergy = currentKinEnergy;
838 } else if(tPathLength > currentRange*0.01) {
841 }
842
843 if((kinEnergy <= CLHEP::eV) || (tPathLength <= tlimitminfix) ||
845
846 G4double cth = SampleCosineTheta(tPathLength,kinEnergy);
847
848 // protection against 'bad' cth values
849 if(std::abs(cth) >= 1.0) { return fDisplacement; }
850
851 G4double sth = std::sqrt((1.0 - cth)*(1.0 + cth));
853 G4ThreeVector newDirection(sth*std::cos(phi),sth*std::sin(phi),cth);
854 newDirection.rotateUz(oldDirection);
855
857 /*
858 G4cout << "G4UrbanMscModel::SampleSecondaries: e(MeV)= " << kineticEnergy
859 << " sinTheta= " << sth << " safety(mm)= " << safety
860 << " trueStep(mm)= " << tPathLength
861 << " geomStep(mm)= " << zPathLength
862 << G4endl;
863 */
864
866 if(dispAlg96) { SampleDisplacement(sth, phi); }
867 else { SampleDisplacementNew(cth, phi); }
868 fDisplacement.rotateUz(oldDirection);
869 }
870 return fDisplacement;
871}
Hep3Vector & rotateUz(const Hep3Vector &)
Definition: ThreeVector.cc:33
void ProposeMomentumDirection(const G4ThreeVector &Pfinal)
G4double SampleCosineTheta(G4double trueStepLength, G4double KineticEnergy)
void SampleDisplacementNew(G4double sinTheta, G4double phi)
void SampleDisplacement(G4double sinTheta, G4double phi)
G4double GetDEDX(const G4ParticleDefinition *part, G4double kineticEnergy, const G4MaterialCutsCouple *couple)
Definition: G4VMscModel.cc:159

References couple, currentKinEnergy, currentLogKinEnergy, currentRange, currentTau, dispAlg96, G4VMscModel::dtrl, CLHEP::eV, G4VMscModel::fDisplacement, CLHEP::HepRandomEngine::flat(), fParticleChange, G4VMscModel::GetDEDX(), G4VMscModel::GetEnergy(), lambda0, G4VMscModel::latDisplasment, particle, G4ParticleChangeForMSC::ProposeMomentumDirection(), rndmEngineMod, CLHEP::Hep3Vector::rotateUz(), SampleCosineTheta(), SampleDisplacement(), SampleDisplacementNew(), CLHEP::Hep3Vector::set(), tausmall, tlimitminfix, tPathLength, and CLHEP::twopi.

◆ SampleSecondaries()

void G4VMscModel::SampleSecondaries ( std::vector< G4DynamicParticle * > *  ,
const G4MaterialCutsCouple ,
const G4DynamicParticle ,
G4double  tmin,
G4double  tmax 
)
overridevirtualinherited

Implements G4VEmModel.

Definition at line 151 of file G4VMscModel.cc.

155{}

◆ SecondaryThreshold()

G4double G4VEmModel::SecondaryThreshold ( ) const
inlineinherited

◆ SelectIsotopeNumber()

G4int G4VEmModel::SelectIsotopeNumber ( const G4Element elm)
inherited

Definition at line 319 of file G4VEmModel.cc.

320{
322 const size_t ni = elm->GetNumberOfIsotopes();
323 fCurrentIsotope = elm->GetIsotope(0);
324 size_t idx = 0;
325 if(ni > 1) {
326 const G4double* ab = elm->GetRelativeAbundanceVector();
328 for(; idx<ni; ++idx) {
329 x -= ab[idx];
330 if (x <= 0.0) {
331 fCurrentIsotope = elm->GetIsotope(idx);
332 break;
333 }
334 }
335 }
336 return fCurrentIsotope->GetN();
337}
static const G4double ab
#define G4UniformRand()
Definition: Randomize.hh:52
G4double * GetRelativeAbundanceVector() const
Definition: G4Element.hh:167
const G4Isotope * GetIsotope(G4int iso) const
Definition: G4Element.hh:170
size_t GetNumberOfIsotopes() const
Definition: G4Element.hh:159
G4int GetN() const
Definition: G4Isotope.hh:93

References ab, G4VEmModel::fCurrentIsotope, G4UniformRand, G4Element::GetIsotope(), G4Isotope::GetN(), G4Element::GetNumberOfIsotopes(), G4Element::GetRelativeAbundanceVector(), and G4VEmModel::SetCurrentElement().

Referenced by G4eSingleCoulombScatteringModel::SampleSecondaries(), G4IonCoulombScatteringModel::SampleSecondaries(), G4eCoulombScatteringModel::SampleSecondaries(), G4hCoulombScatteringModel::SampleSecondaries(), and G4BetheHeitler5DModel::SampleSecondaries().

◆ SelectRandomAtom() [1/2]

const G4Element * G4VEmModel::SelectRandomAtom ( const G4Material mat,
const G4ParticleDefinition pd,
G4double  kineticEnergy,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
inherited

Definition at line 275 of file G4VEmModel.cc.

280{
281 size_t n = mat->GetNumberOfElements();
282 fCurrentElement = mat->GetElement(0);
283 if (n > 1) {
284 const G4double x = G4UniformRand()*
285 G4VEmModel::CrossSectionPerVolume(mat,pd,kinEnergy,tcut,tmax);
286 for(size_t i=0; i<n; ++i) {
287 if (x <= xsec[i]) {
288 fCurrentElement = mat->GetElement(i);
289 break;
290 }
291 }
292 }
293 return fCurrentElement;
294}

References G4VEmModel::CrossSectionPerVolume(), G4VEmModel::fCurrentElement, G4UniformRand, G4Material::GetElement(), G4Material::GetNumberOfElements(), CLHEP::detail::n, and G4VEmModel::xsec.

◆ SelectRandomAtom() [2/2]

const G4Element * G4VEmModel::SelectRandomAtom ( const G4MaterialCutsCouple couple,
const G4ParticleDefinition part,
G4double  kineticEnergy,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
inlineinherited

Definition at line 580 of file G4VEmModel.hh.

585{
586 SetCurrentCouple(couple);
588 ((*elmSelectors)[couple->GetIndex()])->SelectRandomAtom(kinEnergy) :
589 SelectRandomAtom(pBaseMaterial,part,kinEnergy,cutEnergy,maxEnergy);
590 fCurrentIsotope = nullptr;
591 return fCurrentElement;
592}
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
Definition: G4VEmModel.hh:580

References G4VEmModel::elmSelectors, G4VEmModel::fCurrentElement, G4VEmModel::fCurrentIsotope, G4MaterialCutsCouple::GetIndex(), G4VEmModel::nSelectors, G4VEmModel::pBaseMaterial, G4VEmModel::SelectRandomAtom(), and G4VEmModel::SetCurrentCouple().

Referenced by G4AdjointBremsstrahlungModel::RapidSampleSecondaries(), G4LivermoreBremsstrahlungModel::SampleSecondaries(), G4JAEAElasticScatteringModel::SampleSecondaries(), G4JAEAPolarizedElasticScatteringModel::SampleSecondaries(), G4LivermoreComptonModel::SampleSecondaries(), G4LivermoreNuclearGammaConversionModel::SampleSecondaries(), G4LivermorePhotoElectricModel::SampleSecondaries(), G4LivermorePolarizedComptonModel::SampleSecondaries(), G4LivermorePolarizedGammaConversionModel::SampleSecondaries(), G4LivermorePolarizedRayleighModel::SampleSecondaries(), G4LivermoreRayleighModel::SampleSecondaries(), G4LowEPComptonModel::SampleSecondaries(), G4LowEPPolarizedComptonModel::SampleSecondaries(), G4PenelopePhotoElectricModel::SampleSecondaries(), G4MuBremsstrahlungModel::SampleSecondaries(), G4MuPairProductionModel::SampleSecondaries(), G4hCoulombScatteringModel::SampleSecondaries(), G4KleinNishinaModel::SampleSecondaries(), G4PEEffectFluoModel::SampleSecondaries(), G4VEmModel::SelectRandomAtom(), and G4VEmModel::SelectTargetAtom().

◆ SelectRandomAtomNumber()

G4int G4VEmModel::SelectRandomAtomNumber ( const G4Material mat)
inherited

◆ SelectTargetAtom()

const G4Element * G4VEmModel::SelectTargetAtom ( const G4MaterialCutsCouple couple,
const G4ParticleDefinition part,
G4double  kineticEnergy,
G4double  logKineticEnergy,
G4double  cutEnergy = 0.0,
G4double  maxEnergy = DBL_MAX 
)
inlineinherited

◆ SetActivationHighEnergyLimit()

void G4VEmModel::SetActivationHighEnergyLimit ( G4double  val)
inlineinherited

◆ SetActivationLowEnergyLimit()

void G4VEmModel::SetActivationLowEnergyLimit ( G4double  val)
inlineinherited

◆ SetAngularDistribution()

void G4VEmModel::SetAngularDistribution ( G4VEmAngularDistribution p)
inlineinherited

Definition at line 628 of file G4VEmModel.hh.

629{
630 if(p != anglModel) {
631 delete anglModel;
632 anglModel = p;
633 }
634}

References G4VEmModel::anglModel.

Referenced by G4EmLivermorePhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmStandardPhysics_option3::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysicsSS::ConstructProcess(), G4BetheHeitlerModel::G4BetheHeitlerModel(), G4DNABornIonisationModel1::G4DNABornIonisationModel1(), G4DNABornIonisationModel2::G4DNABornIonisationModel2(), G4DNAEmfietzoglouIonisationModel::G4DNAEmfietzoglouIonisationModel(), G4DNARuddIonisationExtendedModel::G4DNARuddIonisationExtendedModel(), G4DNARuddIonisationModel::G4DNARuddIonisationModel(), G4eBremParametrizedModel::G4eBremParametrizedModel(), G4eBremsstrahlungRelModel::G4eBremsstrahlungRelModel(), G4IonParametrisedLossModel::G4IonParametrisedLossModel(), G4LivermoreBremsstrahlungModel::G4LivermoreBremsstrahlungModel(), G4LivermoreIonisationModel::G4LivermoreIonisationModel(), G4LivermorePhotoElectricModel::G4LivermorePhotoElectricModel(), G4LivermoreRayleighModel::G4LivermoreRayleighModel(), G4MicroElecInelasticModel::G4MicroElecInelasticModel(), G4MicroElecInelasticModel_new::G4MicroElecInelasticModel_new(), G4MuBremsstrahlungModel::G4MuBremsstrahlungModel(), G4MuPairProductionModel::G4MuPairProductionModel(), G4PAIModel::G4PAIModel(), G4PAIPhotModel::G4PAIPhotModel(), G4PairProductionRelModel::G4PairProductionRelModel(), G4PEEffectFluoModel::G4PEEffectFluoModel(), G4SeltzerBergerModel::G4SeltzerBergerModel(), G4AtimaEnergyLossModel::Initialise(), G4BetheBlochModel::Initialise(), G4BraggIonModel::Initialise(), G4BraggModel::Initialise(), G4ICRU73QOModel::Initialise(), G4LindhardSorensenIonModel::Initialise(), and G4MollerBhabhaModel::Initialise().

◆ SetAngularGeneratorFlag()

void G4VEmModel::SetAngularGeneratorFlag ( G4bool  val)
inlineinherited

Definition at line 725 of file G4VEmModel.hh.

726{
728}
G4bool useAngularGenerator
Definition: G4VEmModel.hh:461

References G4VEmModel::useAngularGenerator.

Referenced by G4VEnergyLossProcess::PreparePhysicsTable().

◆ SetCrossSectionTable()

void G4VEmModel::SetCrossSectionTable ( G4PhysicsTable p,
G4bool  isLocal 
)
inherited

Definition at line 455 of file G4VEmModel.cc.

456{
457 if(p != xSectionTable) {
458 if(xSectionTable != nullptr && localTable) {
460 delete xSectionTable;
461 }
462 xSectionTable = p;
463 }
464 localTable = isLocal;
465}
void clearAndDestroy()
G4bool localTable
Definition: G4VEmModel.hh:459

References G4PhysicsTable::clearAndDestroy(), G4VEmModel::localTable, and G4VEmModel::xSectionTable.

Referenced by G4VMultipleScattering::BuildPhysicsTable().

◆ SetCurrentCouple()

void G4VEmModel::SetCurrentCouple ( const G4MaterialCutsCouple ptr)
inlineinherited

Definition at line 472 of file G4VEmModel.hh.

473{
474 if(fCurrentCouple != ptr) {
475 fCurrentCouple = ptr;
477 pBaseMaterial = ptr->GetMaterial();
478 pFactor = 1.0;
479 if(useBaseMaterials) {
480 basedCoupleIndex = (*theDensityIdx)[currentCoupleIndex];
481 if(nullptr != pBaseMaterial->GetBaseMaterial())
483 pFactor = (*theDensityFactor)[currentCoupleIndex];
484 }
485 }
486}
const G4Material * GetBaseMaterial() const
Definition: G4Material.hh:229
G4bool useBaseMaterials
Definition: G4VEmModel.hh:462
size_t currentCoupleIndex
Definition: G4VEmModel.hh:448

References G4VEmModel::basedCoupleIndex, G4VEmModel::currentCoupleIndex, G4VEmModel::fCurrentCouple, G4Material::GetBaseMaterial(), G4MaterialCutsCouple::GetIndex(), G4MaterialCutsCouple::GetMaterial(), G4VEmModel::pBaseMaterial, G4VEmModel::pFactor, and G4VEmModel::useBaseMaterials.

Referenced by G4VMultipleScattering::AlongStepGetPhysicalInteractionLength(), G4EmMultiModel::ComputeCrossSectionPerAtom(), G4VEmModel::ComputeDEDX(), G4TablesForExtrapolator::ComputeTrasportXS(), G4UrbanAdjointMscModel::ComputeTruePathLengthLimit(), G4GoudsmitSaundersonMscModel::ComputeTruePathLengthLimit(), ComputeTruePathLengthLimit(), G4VEmModel::CrossSection(), G4AdjointPhotoElectricModel::DefineCurrentMaterialAndElectronEnergy(), G4WentzelVIModel::DefineMaterial(), G4WentzelVIRelModel::DefineMaterial(), G4EmCalculator::GetCrossSectionPerVolume(), G4LivermoreGammaConversion5DModel::Initialise(), G4VEmModel::InitialiseElementSelectors(), G4PEEffectFluoModel::SampleSecondaries(), G4EmMultiModel::SampleSecondaries(), G4VEnergyLossProcess::SelectModel(), G4VEmProcess::SelectModel(), G4VEmModel::SelectRandomAtom(), G4VEmModel::SelectTargetAtom(), and G4VEmModel::Value().

◆ SetCurrentElement()

void G4VEmModel::SetCurrentElement ( const G4Element elm)
inlineprotectedinherited

◆ SetDeexcitationFlag()

void G4VEmModel::SetDeexcitationFlag ( G4bool  val)
inlineinherited

Definition at line 823 of file G4VEmModel.hh.

824{
825 flagDeexcitation = val;
826}

References G4VEmModel::flagDeexcitation.

Referenced by G4DNABornIonisationModel1::G4DNABornIonisationModel1(), G4DNABornIonisationModel2::G4DNABornIonisationModel2(), G4DNACPA100IonisationModel::G4DNACPA100IonisationModel(), G4DNAEmfietzoglouIonisationModel::G4DNAEmfietzoglouIonisationModel(), G4DNARelativisticIonisationModel::G4DNARelativisticIonisationModel(), G4DNARuddIonisationExtendedModel::G4DNARuddIonisationExtendedModel(), G4DNARuddIonisationModel::G4DNARuddIonisationModel(), G4KleinNishinaModel::G4KleinNishinaModel(), G4LEPTSIonisationModel::G4LEPTSIonisationModel(), G4LivermoreComptonModel::G4LivermoreComptonModel(), G4LivermorePhotoElectricModel::G4LivermorePhotoElectricModel(), G4LivermorePolarizedComptonModel::G4LivermorePolarizedComptonModel(), G4LowEPComptonModel::G4LowEPComptonModel(), G4LowEPPolarizedComptonModel::G4LowEPPolarizedComptonModel(), G4MicroElecInelasticModel::G4MicroElecInelasticModel(), G4MicroElecInelasticModel_new::G4MicroElecInelasticModel_new(), G4PEEffectFluoModel::G4PEEffectFluoModel(), G4PenelopeBremsstrahlungModel::G4PenelopeBremsstrahlungModel(), G4PenelopeComptonModel::G4PenelopeComptonModel(), G4PenelopeIonisationModel::G4PenelopeIonisationModel(), G4PenelopePhotoElectricModel::G4PenelopePhotoElectricModel(), G4AtimaEnergyLossModel::Initialise(), G4BetheBlochModel::Initialise(), G4BraggIonModel::Initialise(), G4BraggModel::Initialise(), G4ICRU73QOModel::Initialise(), and G4LindhardSorensenIonModel::Initialise().

◆ SetElementSelectors()

void G4VEmModel::SetElementSelectors ( std::vector< G4EmElementSelector * > *  p)
inlineinherited

Definition at line 852 of file G4VEmModel.hh.

853{
854 if(p != elmSelectors) {
855 elmSelectors = p;
856 nSelectors = (nullptr != elmSelectors) ? G4int(elmSelectors->size()) : 0;
857 localElmSelectors = false;
858 }
859}
G4bool localElmSelectors
Definition: G4VEmModel.hh:460

References G4VEmModel::elmSelectors, G4VEmModel::localElmSelectors, and G4VEmModel::nSelectors.

Referenced by G4eDPWACoulombScatteringModel::InitialiseLocal(), G4eSingleCoulombScatteringModel::InitialiseLocal(), G4PAIModel::InitialiseLocal(), G4PAIPhotModel::InitialiseLocal(), G4JAEAElasticScatteringModel::InitialiseLocal(), G4JAEAPolarizedElasticScatteringModel::InitialiseLocal(), G4LivermoreComptonModel::InitialiseLocal(), G4LivermoreNuclearGammaConversionModel::InitialiseLocal(), G4LivermorePolarizedComptonModel::InitialiseLocal(), G4LivermorePolarizedGammaConversionModel::InitialiseLocal(), G4LivermorePolarizedRayleighModel::InitialiseLocal(), G4LivermoreRayleighModel::InitialiseLocal(), G4LowEPComptonModel::InitialiseLocal(), G4LowEPPolarizedComptonModel::InitialiseLocal(), G4PenelopePhotoElectricModel::InitialiseLocal(), G4MuBremsstrahlungModel::InitialiseLocal(), G4MuPairProductionModel::InitialiseLocal(), G4BetheHeitlerModel::InitialiseLocal(), G4eBremParametrizedModel::InitialiseLocal(), G4eBremsstrahlungRelModel::InitialiseLocal(), G4eCoulombScatteringModel::InitialiseLocal(), G4hCoulombScatteringModel::InitialiseLocal(), G4KleinNishinaCompton::InitialiseLocal(), G4KleinNishinaModel::InitialiseLocal(), and G4PairProductionRelModel::InitialiseLocal().

◆ SetFluctuationFlag()

void G4VEmModel::SetFluctuationFlag ( G4bool  val)
inlineinherited

Definition at line 732 of file G4VEmModel.hh.

733{
734 lossFlucFlag = val;
735}
G4bool lossFlucFlag
Definition: G4VEmModel.hh:450

References G4VEmModel::lossFlucFlag.

Referenced by G4EmCalculator::ComputeNuclearDEDX().

◆ SetForceBuildTable()

void G4VEmModel::SetForceBuildTable ( G4bool  val)
inlineinherited

Definition at line 830 of file G4VEmModel.hh.

831{
833}

References G4VEmModel::flagForceBuildTable.

◆ SetGeomFactor()

void G4VMscModel::SetGeomFactor ( G4double  val)
inlineinherited

Definition at line 237 of file G4VMscModel.hh.

238{
239 if(!IsLocked()) { facgeom = val; }
240}

References G4VMscModel::facgeom, and G4VEmModel::IsLocked().

◆ SetHighEnergyLimit()

void G4VEmModel::SetHighEnergyLimit ( G4double  val)
inlineinherited

Definition at line 767 of file G4VEmModel.hh.

768{
769 highLimit = val;
770}

References G4VEmModel::highLimit.

Referenced by G4EmModelActivator::ActivateEmOptions(), G4EmModelActivator::ActivatePAI(), LBE::ConstructEM(), G4EmDNAPhysics_option2::ConstructProcess(), G4EmDNAPhysics_option5::ConstructProcess(), G4EmDNAPhysics_option7::ConstructProcess(), G4EmDNAPhysics_stationary::ConstructProcess(), G4EmLivermorePhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmPenelopePhysics::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmStandardPhysics_option1::ConstructProcess(), G4EmStandardPhysics_option2::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysicsGS::ConstructProcess(), G4EmStandardPhysicsWVI::ConstructProcess(), G4BraggIonModel::G4BraggIonModel(), G4BraggModel::G4BraggModel(), G4DNAChampionElasticModel::G4DNAChampionElasticModel(), G4DNACPA100ElasticModel::G4DNACPA100ElasticModel(), G4DNACPA100ExcitationModel::G4DNACPA100ExcitationModel(), G4DNACPA100IonisationModel::G4DNACPA100IonisationModel(), G4DNAELSEPAElasticModel::G4DNAELSEPAElasticModel(), G4DNAEmfietzoglouExcitationModel::G4DNAEmfietzoglouExcitationModel(), G4DNAEmfietzoglouIonisationModel::G4DNAEmfietzoglouIonisationModel(), G4DNAIonElasticModel::G4DNAIonElasticModel(), G4DNAMeltonAttachmentModel::G4DNAMeltonAttachmentModel(), G4DNASancheExcitationModel::G4DNASancheExcitationModel(), G4DNAScreenedRutherfordElasticModel::G4DNAScreenedRutherfordElasticModel(), G4DNATransformElectronModel::G4DNATransformElectronModel(), G4DNAUeharaScreenedRutherfordElasticModel::G4DNAUeharaScreenedRutherfordElasticModel(), G4eDPWACoulombScatteringModel::G4eDPWACoulombScatteringModel(), G4ICRU73QOModel::G4ICRU73QOModel(), G4MicroElecElasticModel::G4MicroElecElasticModel(), G4MicroElecElasticModel_new::G4MicroElecElasticModel_new(), G4PenelopeAnnihilationModel::G4PenelopeAnnihilationModel(), G4PenelopeBremsstrahlungModel::G4PenelopeBremsstrahlungModel(), G4PenelopeComptonModel::G4PenelopeComptonModel(), G4PenelopeGammaConversionModel::G4PenelopeGammaConversionModel(), G4PenelopeIonisationModel::G4PenelopeIonisationModel(), G4PenelopePhotoElectricModel::G4PenelopePhotoElectricModel(), G4PenelopeRayleighModel::G4PenelopeRayleighModel(), G4PenelopeRayleighModelMI::G4PenelopeRayleighModelMI(), G4TDNAOneStepThermalizationModel< MODEL >::G4TDNAOneStepThermalizationModel(), G4XrayRayleighModel::G4XrayRayleighModel(), G4VLEPTSModel::Init(), G4DNAChampionElasticModel::Initialise(), G4DNACPA100ElasticModel::Initialise(), G4DNADingfelderChargeDecreaseModel::Initialise(), G4DNADingfelderChargeIncreaseModel::Initialise(), G4DNAMeltonAttachmentModel::Initialise(), G4DNAMillerGreenExcitationModel::Initialise(), G4DNARuddIonisationExtendedModel::Initialise(), G4DNARuddIonisationModel::Initialise(), G4DNASancheExcitationModel::Initialise(), G4MicroElecElasticModel::Initialise(), G4MicroElecInelasticModel::Initialise(), G4MicroElecInelasticModel_new::Initialise(), G4DNABornExcitationModel1::Initialise(), G4DNABornExcitationModel2::Initialise(), G4DNABornIonisationModel1::Initialise(), G4DNABornIonisationModel2::Initialise(), G4DNAELSEPAElasticModel::Initialise(), G4DNAModelInterface::Initialise(), G4DNAIonElasticModel::Initialise(), G4hhIonisation::InitialiseEnergyLossProcess(), G4mplIonisation::InitialiseEnergyLossProcess(), G4ePairProduction::InitialiseEnergyLossProcess(), G4MuBremsstrahlung::InitialiseEnergyLossProcess(), G4MuIonisation::InitialiseEnergyLossProcess(), G4MuPairProduction::InitialiseEnergyLossProcess(), G4PolarizedBremsstrahlung::InitialiseEnergyLossProcess(), G4PolarizedIonisation::InitialiseEnergyLossProcess(), G4eBremsstrahlung::InitialiseEnergyLossProcess(), G4eIonisation::InitialiseEnergyLossProcess(), G4hIonisation::InitialiseEnergyLossProcess(), G4ionIonisation::InitialiseEnergyLossProcess(), G4DNAAttachment::InitialiseProcess(), G4DNAChargeDecrease::InitialiseProcess(), G4DNAChargeIncrease::InitialiseProcess(), G4DNADissociation::InitialiseProcess(), G4DNAElastic::InitialiseProcess(), G4DNAExcitation::InitialiseProcess(), G4DNAIonisation::InitialiseProcess(), G4DNAPlasmonExcitation::InitialiseProcess(), G4DNAPositronium::InitialiseProcess(), G4DNARotExcitation::InitialiseProcess(), G4DNAVibExcitation::InitialiseProcess(), G4PolarizedCompton::InitialiseProcess(), G4PolarizedGammaConversion::InitialiseProcess(), G4PolarizedPhotoElectric::InitialiseProcess(), G4ComptonScattering::InitialiseProcess(), G4CoulombScattering::InitialiseProcess(), G4eplusAnnihilation::InitialiseProcess(), G4GammaConversion::InitialiseProcess(), G4PhotoElectricEffect::InitialiseProcess(), G4VEmProcess::PreparePhysicsTable(), G4VEnergyLossProcess::PreparePhysicsTable(), G4VMultipleScattering::PreparePhysicsTable(), G4DNAUeharaScreenedRutherfordElasticModel::SelectHighEnergyLimit(), G4VEmAdjointModel::SetHighEnergyLimit(), G4DNAELSEPAElasticModel::SetMaximumEnergy(), G4mplIonisationModel::SetParticle(), G4mplIonisationWithDeltaModel::SetParticle(), and G4EmConfigurator::UpdateModelEnergyRange().

◆ SetIonisation()

void G4VMscModel::SetIonisation ( G4VEnergyLossProcess p,
const G4ParticleDefinition part 
)
inlineinherited

Definition at line 309 of file G4VMscModel.hh.

311{
312 ionisation = p;
313 currentPart = part;
314}
const G4ParticleDefinition * currentPart
Definition: G4VMscModel.hh:188

References G4VMscModel::currentPart, and G4VMscModel::ionisation.

Referenced by G4VMultipleScattering::PreparePhysicsTable(), and G4VMultipleScattering::StartTracking().

◆ SetLambdaLimit()

void G4VMscModel::SetLambdaLimit ( G4double  val)
inlineinherited

Definition at line 244 of file G4VMscModel.hh.

245{
246 if(!IsLocked()) { lambdalimit = val; }
247}

References G4VEmModel::IsLocked(), and G4VMscModel::lambdalimit.

◆ SetLateralDisplasmentFlag()

void G4VMscModel::SetLateralDisplasmentFlag ( G4bool  val)
inlineinherited

Definition at line 216 of file G4VMscModel.hh.

217{
218 if(!IsLocked()) { latDisplasment = val; }
219}

References G4VEmModel::IsLocked(), and G4VMscModel::latDisplasment.

Referenced by G4EmModelActivator::SetMscParameters().

◆ SetLocked()

void G4VEmModel::SetLocked ( G4bool  val)
inlineinherited

◆ SetLowEnergyLimit()

void G4VEmModel::SetLowEnergyLimit ( G4double  val)
inlineinherited

Definition at line 774 of file G4VEmModel.hh.

775{
776 lowLimit = val;
777}

References G4VEmModel::lowLimit.

Referenced by G4EmModelActivator::ActivatePAI(), G4EmDNAPhysics_option2::ConstructProcess(), G4EmDNAPhysics_option5::ConstructProcess(), G4EmDNAPhysics_stationary::ConstructProcess(), G4EmLivermorePhysics::ConstructProcess(), G4EmLowEPPhysics::ConstructProcess(), G4EmPenelopePhysics::ConstructProcess(), G4EmStandardPhysics::ConstructProcess(), G4EmStandardPhysics_option1::ConstructProcess(), G4EmStandardPhysics_option2::ConstructProcess(), G4EmStandardPhysics_option3::ConstructProcess(), G4EmStandardPhysics_option4::ConstructProcess(), G4EmStandardPhysicsGS::ConstructProcess(), G4EmStandardPhysicsWVI::ConstructProcess(), G4DNASancheExcitationModel::ExtendLowEnergyLimit(), G4AtimaEnergyLossModel::G4AtimaEnergyLossModel(), G4BetheBlochModel::G4BetheBlochModel(), G4BetheHeitler5DModel::G4BetheHeitler5DModel(), G4DNAChampionElasticModel::G4DNAChampionElasticModel(), G4DNACPA100ElasticModel::G4DNACPA100ElasticModel(), G4DNACPA100ExcitationModel::G4DNACPA100ExcitationModel(), G4DNACPA100IonisationModel::G4DNACPA100IonisationModel(), G4DNAELSEPAElasticModel::G4DNAELSEPAElasticModel(), G4DNAEmfietzoglouExcitationModel::G4DNAEmfietzoglouExcitationModel(), G4DNAEmfietzoglouIonisationModel::G4DNAEmfietzoglouIonisationModel(), G4DNAIonElasticModel::G4DNAIonElasticModel(), G4DNAMeltonAttachmentModel::G4DNAMeltonAttachmentModel(), G4DNASancheExcitationModel::G4DNASancheExcitationModel(), G4DNAScreenedRutherfordElasticModel::G4DNAScreenedRutherfordElasticModel(), G4DNATransformElectronModel::G4DNATransformElectronModel(), G4DNAUeharaScreenedRutherfordElasticModel::G4DNAUeharaScreenedRutherfordElasticModel(), G4DummyModel::G4DummyModel(), G4eBremParametrizedModel::G4eBremParametrizedModel(), G4eBremsstrahlungRelModel::G4eBremsstrahlungRelModel(), G4eDPWACoulombScatteringModel::G4eDPWACoulombScatteringModel(), G4LivermoreBremsstrahlungModel::G4LivermoreBremsstrahlungModel(), G4MicroElecElasticModel::G4MicroElecElasticModel(), G4MicroElecElasticModel_new::G4MicroElecElasticModel_new(), G4SeltzerBergerModel::G4SeltzerBergerModel(), G4TDNAOneStepThermalizationModel< MODEL >::G4TDNAOneStepThermalizationModel(), G4VLEPTSModel::Init(), G4DNAChampionElasticModel::Initialise(), G4DNACPA100ElasticModel::Initialise(), G4DNADingfelderChargeDecreaseModel::Initialise(), G4DNADingfelderChargeIncreaseModel::Initialise(), G4DNAMeltonAttachmentModel::Initialise(), G4DNAMillerGreenExcitationModel::Initialise(), G4DNARuddIonisationExtendedModel::Initialise(), G4DNARuddIonisationModel::Initialise(), G4MicroElecElasticModel::Initialise(), G4MicroElecInelasticModel::Initialise(), G4MicroElecInelasticModel_new::Initialise(), G4BetheHeitler5DModel::Initialise(), G4DNABornExcitationModel1::Initialise(), G4DNABornExcitationModel2::Initialise(), G4DNABornIonisationModel1::Initialise(), G4DNABornIonisationModel2::Initialise(), G4DNAELSEPAElasticModel::Initialise(), G4DNAModelInterface::Initialise(), G4DNAIonElasticModel::Initialise(), G4hhIonisation::InitialiseEnergyLossProcess(), G4mplIonisation::InitialiseEnergyLossProcess(), G4ePairProduction::InitialiseEnergyLossProcess(), G4MuBremsstrahlung::InitialiseEnergyLossProcess(), G4MuIonisation::InitialiseEnergyLossProcess(), G4MuPairProduction::InitialiseEnergyLossProcess(), G4PolarizedBremsstrahlung::InitialiseEnergyLossProcess(), G4PolarizedIonisation::InitialiseEnergyLossProcess(), G4eBremsstrahlung::InitialiseEnergyLossProcess(), G4eIonisation::InitialiseEnergyLossProcess(), G4hIonisation::InitialiseEnergyLossProcess(), G4ionIonisation::InitialiseEnergyLossProcess(), G4DNAAttachment::InitialiseProcess(), G4DNAChargeDecrease::InitialiseProcess(), G4DNAChargeIncrease::InitialiseProcess(), G4DNADissociation::InitialiseProcess(), G4DNAElastic::InitialiseProcess(), G4DNAExcitation::InitialiseProcess(), G4DNAIonisation::InitialiseProcess(), G4DNAPlasmonExcitation::InitialiseProcess(), G4DNAPositronium::InitialiseProcess(), G4DNARotExcitation::InitialiseProcess(), G4DNAVibExcitation::InitialiseProcess(), G4PolarizedCompton::InitialiseProcess(), G4PolarizedGammaConversion::InitialiseProcess(), G4PolarizedPhotoElectric::InitialiseProcess(), G4ComptonScattering::InitialiseProcess(), G4CoulombScattering::InitialiseProcess(), G4eplusAnnihilation::InitialiseProcess(), G4GammaConversion::InitialiseProcess(), G4PhotoElectricEffect::InitialiseProcess(), G4VEmAdjointModel::SetLowEnergyLimit(), G4mplIonisationModel::SetParticle(), G4mplIonisationWithDeltaModel::SetParticle(), and G4EmConfigurator::UpdateModelEnergyRange().

◆ SetLPMFlag()

void G4VEmModel::SetLPMFlag ( G4bool  val)
inlineinherited

◆ SetMasterThread()

void G4VEmModel::SetMasterThread ( G4bool  val)
inlineinherited

◆ SetParticle()

void G4UrbanMscModel::SetParticle ( const G4ParticleDefinition p)
inlineprivate

Definition at line 203 of file G4UrbanMscModel.hh.

204{
205 if (p != particle) {
206 particle = p;
207 mass = p->GetPDGMass();
210 }
211}
static constexpr double eplus

References charge, chargeSquare, CLHEP::eplus, G4ParticleDefinition::GetPDGCharge(), G4ParticleDefinition::GetPDGMass(), mass, and particle.

Referenced by ComputeCrossSectionPerAtom(), Initialise(), and StartTracking().

◆ SetParticleChange()

void G4VEmModel::SetParticleChange ( G4VParticleChange p,
G4VEmFluctuationModel f = nullptr 
)
inherited

◆ SetPolarAngleLimit()

void G4VEmModel::SetPolarAngleLimit ( G4double  val)
inlineinherited

◆ SetRangeFactor()

void G4VMscModel::SetRangeFactor ( G4double  val)
inlineinherited

Definition at line 230 of file G4VMscModel.hh.

231{
232 if(!IsLocked()) { facrange = val; }
233}

References G4VMscModel::facrange, and G4VEmModel::IsLocked().

Referenced by G4EmModelActivator::SetMscParameters().

◆ SetSafetyFactor()

void G4VMscModel::SetSafetyFactor ( G4double  val)
inlineinherited

Definition at line 251 of file G4VMscModel.hh.

252{
253 if(!IsLocked()) { facsafety = val; }
254}

References G4VMscModel::facsafety, and G4VEmModel::IsLocked().

◆ SetSampleZ()

void G4VMscModel::SetSampleZ ( G4bool  val)
inlineinherited

Definition at line 265 of file G4VMscModel.hh.

266{
267 if(!IsLocked()) { samplez = val; }
268}
G4bool samplez
Definition: G4VMscModel.hh:205

References G4VEmModel::IsLocked(), and G4VMscModel::samplez.

◆ SetSecondaryThreshold()

void G4VEmModel::SetSecondaryThreshold ( G4double  val)
inlineinherited

◆ SetSkin()

void G4VMscModel::SetSkin ( G4double  val)
inlineinherited

Definition at line 223 of file G4VMscModel.hh.

224{
225 if(!IsLocked()) { skin = val; }
226}

References G4VEmModel::IsLocked(), and G4VMscModel::skin.

Referenced by G4EmModelActivator::SetMscParameters().

◆ SetStepLimitType()

void G4VMscModel::SetStepLimitType ( G4MscStepLimitType  val)
inlineinherited

Definition at line 258 of file G4VMscModel.hh.

259{
260 if(!IsLocked()) { steppingAlgorithm = val; }
261}

References G4VEmModel::IsLocked(), and G4VMscModel::steppingAlgorithm.

Referenced by G4EmModelActivator::SetMscParameters().

◆ SetTripletModel()

void G4VEmModel::SetTripletModel ( G4VEmModel p)
inlineinherited

Definition at line 645 of file G4VEmModel.hh.

646{
647 if(p != fTripletModel) {
648 delete fTripletModel;
649 fTripletModel = p;
650 }
651}

References G4VEmModel::fTripletModel.

Referenced by G4eplusTo2GammaOKVIModel::G4eplusTo2GammaOKVIModel().

◆ SetupForMaterial()

void G4VEmModel::SetupForMaterial ( const G4ParticleDefinition ,
const G4Material ,
G4double  kineticEnergy 
)
virtualinherited

◆ SetUseBaseMaterials()

void G4VEmModel::SetUseBaseMaterials ( G4bool  val)
inlineinherited

◆ SimpleScattering()

G4double G4UrbanMscModel::SimpleScattering ( G4double  xmeanth,
G4double  x2meanth 
)
inlineprivate

Definition at line 229 of file G4UrbanMscModel.hh.

230{
231 // 'large angle scattering'
232 // 2 model functions with correct xmean and x2mean
233 G4double a = (2.*xmeanth+9.*x2meanth-3.)/(2.*xmeanth-3.*x2meanth+1.);
234 G4double prob = (a+2.)*xmeanth/a;
235
236 // sampling
238 return (rndmarray[1] < prob) ?
239 -1.+2.*G4Exp(G4Log(rndmarray[0])/(a+1.)) : -1.+2.*rndmarray[0];
240}

References CLHEP::HepRandomEngine::flatArray(), G4Exp(), G4Log(), rndmarray, and rndmEngineMod.

Referenced by SampleCosineTheta().

◆ StartTracking()

void G4UrbanMscModel::StartTracking ( G4Track track)
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 432 of file G4UrbanMscModel.cc.

433{
435 firstStep = true;
436 insideskin = false;
437 fr = facrange;
439 smallstep = 1.e10;
441 tlimitmin = 10.*tlimitminfix;
442 rndmEngineMod = G4Random::getTheEngine();
443}
G4ParticleDefinition * GetDefinition() const

References G4VMscModel::facrange, firstStep, fr, geombig, G4DynamicParticle::GetDefinition(), G4Track::GetDynamicParticle(), insideskin, rangecut, rangeinit, rndmEngineMod, SetParticle(), smallstep, stepmin, tgeom, tlimit, tlimitmin, and tlimitminfix.

◆ UseAngularGeneratorFlag()

G4bool G4VEmModel::UseAngularGeneratorFlag ( ) const
inlineinherited

◆ UseBaseMaterials()

G4bool G4VEmModel::UseBaseMaterials ( ) const
inlineinherited

Definition at line 760 of file G4VEmModel.hh.

761{
762 return useBaseMaterials;
763}

References G4VEmModel::useBaseMaterials.

◆ Value()

G4double G4VEmModel::Value ( const G4MaterialCutsCouple couple,
const G4ParticleDefinition p,
G4double  kineticEnergy 
)
virtualinherited

Field Documentation

◆ anglModel

G4VEmAngularDistribution* G4VEmModel::anglModel = nullptr
privateinherited

◆ basedCoupleIndex

size_t G4VEmModel::basedCoupleIndex = 0
protectedinherited

◆ charge

G4double G4UrbanMscModel::charge
private

◆ chargeSquare

G4double G4UrbanMscModel::chargeSquare
private

Definition at line 138 of file G4UrbanMscModel.hh.

Referenced by ComputeCrossSectionPerAtom(), G4UrbanMscModel(), and SetParticle().

◆ couple

const G4MaterialCutsCouple* G4UrbanMscModel::couple
private

◆ currentCoupleIndex

size_t G4VEmModel::currentCoupleIndex = 0
protectedinherited

Definition at line 448 of file G4VEmModel.hh.

Referenced by G4VEmModel::SetCurrentCouple().

◆ currentKinEnergy

G4double G4UrbanMscModel::currentKinEnergy
private

◆ currentLogKinEnergy

G4double G4UrbanMscModel::currentLogKinEnergy
private

◆ currentPart

const G4ParticleDefinition* G4VMscModel::currentPart = nullptr
privateinherited

Definition at line 188 of file G4VMscModel.hh.

Referenced by G4VMscModel::SetIonisation().

◆ currentRadLength

G4double G4UrbanMscModel::currentRadLength
private

Definition at line 170 of file G4UrbanMscModel.hh.

Referenced by ComputeTheta0(), G4UrbanMscModel(), and SampleCosineTheta().

◆ currentRange

G4double G4UrbanMscModel::currentRange
private

◆ currentTau

G4double G4UrbanMscModel::currentTau
private

Definition at line 144 of file G4UrbanMscModel.hh.

Referenced by G4UrbanMscModel(), SampleCosineTheta(), and SampleScattering().

◆ dedx

G4double G4VMscModel::dedx = 0.0
privateinherited

◆ dispAlg96

G4bool G4UrbanMscModel::dispAlg96
private

Definition at line 195 of file G4UrbanMscModel.hh.

Referenced by G4UrbanMscModel(), Initialise(), and SampleScattering().

◆ drr

G4double G4UrbanMscModel::drr
private

Definition at line 173 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), and G4UrbanMscModel().

◆ dtrl

G4double G4VMscModel::dtrl = 0.05
protectedinherited

◆ elmSelectors

std::vector<G4EmElementSelector*>* G4VEmModel::elmSelectors = nullptr
privateinherited

◆ eMaxActive

G4double G4VEmModel::eMaxActive = DBL_MAX
privateinherited

◆ eMinActive

G4double G4VEmModel::eMinActive = 0.0
privateinherited

◆ facgeom

G4double G4VMscModel::facgeom = 2.5
protectedinherited

◆ facrange

G4double G4VMscModel::facrange = 0.04
protectedinherited

◆ facsafety

G4double G4VMscModel::facsafety = 0.6
protectedinherited

◆ fCurrentCouple

const G4MaterialCutsCouple* G4VEmModel::fCurrentCouple = nullptr
privateinherited

Definition at line 416 of file G4VEmModel.hh.

Referenced by G4VEmModel::CurrentCouple(), and G4VEmModel::SetCurrentCouple().

◆ fCurrentElement

const G4Element* G4VEmModel::fCurrentElement = nullptr
privateinherited

◆ fCurrentIsotope

const G4Isotope* G4VEmModel::fCurrentIsotope = nullptr
privateinherited

◆ fDisplacement

G4ThreeVector G4VMscModel::fDisplacement
protectedinherited

◆ fElementData

G4ElementData* G4VEmModel::fElementData = nullptr
protectedinherited

◆ fEmManager

G4LossTableManager* G4VEmModel::fEmManager
privateinherited

Definition at line 420 of file G4VEmModel.hh.

Referenced by G4VEmModel::G4VEmModel(), and G4VEmModel::~G4VEmModel().

◆ finalr

G4double G4UrbanMscModel::finalr
private

Definition at line 173 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), and G4UrbanMscModel().

◆ firstStep

G4bool G4UrbanMscModel::firstStep
private

Definition at line 191 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), G4UrbanMscModel(), and StartTracking().

◆ flagDeexcitation

G4bool G4VEmModel::flagDeexcitation = false
privateinherited

Definition at line 455 of file G4VEmModel.hh.

Referenced by G4VEmModel::DeexcitationFlag(), and G4VEmModel::SetDeexcitationFlag().

◆ flagForceBuildTable

G4bool G4VEmModel::flagForceBuildTable = false
privateinherited

◆ flucModel

G4VEmFluctuationModel* G4VEmModel::flucModel = nullptr
privateinherited

◆ fParticleChange

G4ParticleChangeForMSC* G4UrbanMscModel::fParticleChange
private

Definition at line 132 of file G4UrbanMscModel.hh.

Referenced by G4UrbanMscModel(), Initialise(), and SampleScattering().

◆ fr

G4double G4UrbanMscModel::fr
private

Definition at line 139 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), G4UrbanMscModel(), and StartTracking().

◆ fTripletModel

G4VEmModel* G4VEmModel::fTripletModel = nullptr
privateinherited

◆ geombig

G4double G4UrbanMscModel::geombig
private

Definition at line 150 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), G4UrbanMscModel(), and StartTracking().

◆ geomlimit

G4double G4UrbanMscModel::geomlimit
private

Definition at line 152 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), and G4UrbanMscModel().

◆ geomMax

G4double G4VMscModel::geomMax
protectedinherited

Definition at line 203 of file G4VMscModel.hh.

◆ geommin

G4double G4UrbanMscModel::geommin
private

Definition at line 151 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), and G4UrbanMscModel().

◆ geomMin

G4double G4VMscModel::geomMin
protectedinherited

Definition at line 202 of file G4VMscModel.hh.

◆ highLimit

G4double G4VEmModel::highLimit
privateinherited

◆ idx

G4int G4UrbanMscModel::idx
private

◆ insideskin

G4bool G4UrbanMscModel::insideskin
private

◆ inveplus

G4double G4VEmModel::inveplus
protectedinherited

◆ invmev

G4double G4UrbanMscModel::invmev
private

Definition at line 176 of file G4UrbanMscModel.hh.

Referenced by ComputeStepmin(), and G4UrbanMscModel().

◆ ionisation

G4VEnergyLossProcess* G4VMscModel::ionisation = nullptr
privateinherited

◆ isFirstInstance

G4bool G4UrbanMscModel::isFirstInstance = false
private

Definition at line 196 of file G4UrbanMscModel.hh.

Referenced by Initialise(), and ~G4UrbanMscModel().

◆ isLocked

G4bool G4VEmModel::isLocked = false
privateinherited

◆ isMaster

G4bool G4VEmModel::isMaster = true
privateinherited

◆ lambda0

G4double G4UrbanMscModel::lambda0
private

◆ lambdaeff

G4double G4UrbanMscModel::lambdaeff
private

Definition at line 159 of file G4UrbanMscModel.hh.

Referenced by ComputeGeomPathLength(), G4UrbanMscModel(), and SampleCosineTheta().

◆ lambdalimit

G4double G4VMscModel::lambdalimit
protectedinherited

◆ latDisplasment

G4bool G4VMscModel::latDisplasment = true
protectedinherited

◆ latDisplasmentbackup

G4bool G4UrbanMscModel::latDisplasmentbackup
private

Definition at line 194 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), G4UrbanMscModel(), and Initialise().

◆ localElmSelectors

G4bool G4VEmModel::localElmSelectors = true
privateinherited

Definition at line 460 of file G4VEmModel.hh.

Referenced by G4VEmModel::SetElementSelectors(), and G4VEmModel::~G4VEmModel().

◆ localrange

G4double G4VMscModel::localrange = DBL_MAX
privateinherited

Definition at line 192 of file G4VMscModel.hh.

Referenced by G4VMscModel::GetEnergy(), and G4VMscModel::GetRange().

◆ localTable

G4bool G4VEmModel::localTable = true
privateinherited

Definition at line 459 of file G4VEmModel.hh.

Referenced by G4VEmModel::SetCrossSectionTable(), and G4VEmModel::~G4VEmModel().

◆ localtkin

G4double G4VMscModel::localtkin = 0.0
privateinherited

Definition at line 191 of file G4VMscModel.hh.

Referenced by G4VMscModel::GetEnergy(), and G4VMscModel::GetRange().

◆ lossFlucFlag

G4bool G4VEmModel::lossFlucFlag = true
protectedinherited

◆ lowLimit

G4double G4VEmModel::lowLimit
privateinherited

◆ mass

G4double G4UrbanMscModel::mass
private

◆ masslimite

G4double G4UrbanMscModel::masslimite
private

Definition at line 139 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), and G4UrbanMscModel().

◆ msc

std::vector< G4UrbanMscModel::mscData * > G4UrbanMscModel::msc
staticprivate

◆ name

const G4String G4VEmModel::name
privateinherited

◆ nsec

G4int G4VEmModel::nsec = 5
privateinherited

Definition at line 444 of file G4VEmModel.hh.

Referenced by G4VEmModel::CrossSectionPerVolume(), and G4VEmModel::G4VEmModel().

◆ nSelectors

G4int G4VEmModel::nSelectors = 0
privateinherited

◆ par1

G4double G4UrbanMscModel::par1
private

◆ par2

G4double G4UrbanMscModel::par2
private

Definition at line 162 of file G4UrbanMscModel.hh.

Referenced by ComputeGeomPathLength(), and G4UrbanMscModel().

◆ par3

G4double G4UrbanMscModel::par3
private

◆ particle

const G4ParticleDefinition* G4UrbanMscModel::particle
private

◆ pBaseMaterial

const G4Material* G4VEmModel::pBaseMaterial = nullptr
protectedinherited

◆ pFactor

G4double G4VEmModel::pFactor = 1.0
protectedinherited

◆ polarAngleLimit

G4double G4VEmModel::polarAngleLimit
privateinherited

Definition at line 441 of file G4VEmModel.hh.

Referenced by G4VEmModel::PolarAngleLimit(), and G4VEmModel::SetPolarAngleLimit().

◆ positron

const G4ParticleDefinition* G4UrbanMscModel::positron
private

Definition at line 131 of file G4UrbanMscModel.hh.

Referenced by ComputeTheta0(), ComputeTlimitmin(), and G4UrbanMscModel().

◆ pParticleChange

G4VParticleChange* G4VEmModel::pParticleChange = nullptr
protectedinherited

◆ presafety

G4double G4UrbanMscModel::presafety
private

Definition at line 156 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), and G4UrbanMscModel().

◆ rangecut

G4double G4UrbanMscModel::rangecut
private

Definition at line 172 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), G4UrbanMscModel(), and StartTracking().

◆ rangeinit

G4double G4UrbanMscModel::rangeinit
private

Definition at line 169 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), G4UrbanMscModel(), and StartTracking().

◆ rndmarray

G4double G4UrbanMscModel::rndmarray[2]
private

◆ rndmEngineMod

CLHEP::HepRandomEngine* G4UrbanMscModel::rndmEngineMod
private

◆ safetyHelper

G4SafetyHelper* G4VMscModel::safetyHelper = nullptr
privateinherited

◆ samplez

G4bool G4VMscModel::samplez = false
protectedinherited

Definition at line 205 of file G4VMscModel.hh.

Referenced by G4VMscModel::SetSampleZ().

◆ secondaryThreshold

G4double G4VEmModel::secondaryThreshold = DBL_MAX
privateinherited

◆ skin

G4double G4VMscModel::skin = 1.0
protectedinherited

◆ skindepth

G4double G4UrbanMscModel::skindepth
private

Definition at line 153 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), and G4UrbanMscModel().

◆ smallstep

G4double G4UrbanMscModel::smallstep
private

Definition at line 154 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), G4UrbanMscModel(), and StartTracking().

◆ stepmin

G4double G4UrbanMscModel::stepmin
private

◆ steppingAlgorithm

G4MscStepLimitType G4VMscModel::steppingAlgorithm
protectedinherited

◆ taubig

G4double G4UrbanMscModel::taubig
private

Definition at line 141 of file G4UrbanMscModel.hh.

Referenced by G4UrbanMscModel(), and SampleCosineTheta().

◆ taulim

G4double G4UrbanMscModel::taulim
private

Definition at line 143 of file G4UrbanMscModel.hh.

Referenced by ComputeGeomPathLength(), and G4UrbanMscModel().

◆ tausmall

G4double G4UrbanMscModel::tausmall
private

◆ tgeom

G4double G4UrbanMscModel::tgeom
private

Definition at line 148 of file G4UrbanMscModel.hh.

Referenced by ComputeTruePathLengthLimit(), G4UrbanMscModel(), and StartTracking().

◆ theDensityFactor

const std::vector<G4double>* G4VEmModel::theDensityFactor = nullptr
protectedinherited

Definition at line 428 of file G4VEmModel.hh.

Referenced by G4VEmModel::G4VEmModel().

◆ theDensityIdx

const std::vector<G4int>* G4VEmModel::theDensityIdx = nullptr
protectedinherited

Definition at line 429 of file G4VEmModel.hh.

Referenced by G4VEmModel::G4VEmModel().

◆ theLPMflag

G4bool G4VEmModel::theLPMflag = false
privateinherited

Definition at line 454 of file G4VEmModel.hh.

Referenced by G4VEmModel::LPMFlag(), and G4VEmModel::SetLPMFlag().

◆ theManager

G4LossTableManager* G4UrbanMscModel::theManager
private

Definition at line 135 of file G4UrbanMscModel.hh.

Referenced by G4UrbanMscModel().

◆ tlimit

G4double G4UrbanMscModel::tlimit
private

◆ tlimitmin

G4double G4UrbanMscModel::tlimitmin
private

◆ tlimitminfix

G4double G4UrbanMscModel::tlimitminfix
private

◆ tlimitminfix2

G4double G4UrbanMscModel::tlimitminfix2
private

◆ tlow

G4double G4UrbanMscModel::tlow
private

Definition at line 175 of file G4UrbanMscModel.hh.

Referenced by ComputeTlimitmin(), and G4UrbanMscModel().

◆ tPathLength

G4double G4UrbanMscModel::tPathLength
private

◆ useAngularGenerator

G4bool G4VEmModel::useAngularGenerator = false
privateinherited

◆ useBaseMaterials

G4bool G4VEmModel::useBaseMaterials = false
privateinherited

◆ xsec

std::vector<G4double> G4VEmModel::xsec
privateinherited

◆ xSectionTable

G4PhysicsTable* G4VEmModel::xSectionTable = nullptr
protectedinherited

◆ zPathLength

G4double G4UrbanMscModel::zPathLength
private

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