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

#include <G4eBremsstrahlungRelModel.hh>

+ Inheritance diagram for G4eBremsstrahlungRelModel:

Public Member Functions

 G4eBremsstrahlungRelModel (const G4ParticleDefinition *p=nullptr, const G4String &nam="eBremLPM")
 
 ~G4eBremsstrahlungRelModel () override
 
void Initialise (const G4ParticleDefinition *, const G4DataVector &) override
 
void InitialiseLocal (const G4ParticleDefinition *, G4VEmModel *masterModel) override
 
G4double ComputeDEDXPerVolume (const G4Material *, const G4ParticleDefinition *, G4double ekin, G4double cutEnergy) override
 
G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, G4double ekin, G4double zet, G4double, G4double cutEnergy, G4double maxEnergy=DBL_MAX) override
 
void SampleSecondaries (std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double cutEnergy, G4double maxEnergy) override
 
void SetupForMaterial (const G4ParticleDefinition *, const G4Material *, G4double) override
 
G4double MinPrimaryEnergy (const G4Material *, const G4ParticleDefinition *, G4double cutEnergy) override
 
- Public Member Functions inherited from G4VEmModel
 G4VEmModel (const G4String &nam)
 
virtual ~G4VEmModel ()
 
virtual void InitialiseForMaterial (const G4ParticleDefinition *, const G4Material *)
 
virtual void InitialiseForElement (const G4ParticleDefinition *, G4int Z)
 
virtual G4double CrossSectionPerVolume (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double GetPartialCrossSection (const G4Material *, G4int level, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual G4double ComputeCrossSectionPerShell (const G4ParticleDefinition *, G4int Z, G4int shellIdx, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
virtual G4double ChargeSquareRatio (const G4Track &)
 
virtual G4double GetChargeSquareRatio (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual G4double GetParticleCharge (const G4ParticleDefinition *, const G4Material *, G4double kineticEnergy)
 
virtual void StartTracking (G4Track *)
 
virtual void CorrectionsAlongStep (const G4MaterialCutsCouple *, const G4DynamicParticle *, const G4double &length, G4double &eloss)
 
virtual G4double Value (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy)
 
virtual G4double MinEnergyCut (const G4ParticleDefinition *, const G4MaterialCutsCouple *)
 
virtual void DefineForRegion (const G4Region *)
 
virtual void FillNumberOfSecondaries (G4int &numberOfTriplets, G4int &numberOfRecoil)
 
virtual void ModelDescription (std::ostream &outFile) const
 
void InitialiseElementSelectors (const G4ParticleDefinition *, const G4DataVector &)
 
std::vector< G4EmElementSelector * > * GetElementSelectors ()
 
void SetElementSelectors (std::vector< G4EmElementSelector * > *)
 
G4double ComputeDEDX (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=DBL_MAX)
 
G4double CrossSection (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeMeanFreePath (const G4ParticleDefinition *, G4double kineticEnergy, const G4Material *, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
G4double ComputeCrossSectionPerAtom (const G4ParticleDefinition *, const G4Element *, G4double kinEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectTargetAtom (const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double logKineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementSelectRandomAtom (const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
 
const G4ElementGetCurrentElement (const G4Material *mat=nullptr) const
 
G4int SelectRandomAtomNumber (const G4Material *) const
 
const G4IsotopeGetCurrentIsotope (const G4Element *elm=nullptr) const
 
G4int SelectIsotopeNumber (const G4Element *) const
 
void SetParticleChange (G4VParticleChange *, G4VEmFluctuationModel *f=nullptr)
 
void SetCrossSectionTable (G4PhysicsTable *, G4bool isLocal)
 
G4ElementDataGetElementData ()
 
G4PhysicsTableGetCrossSectionTable ()
 
G4VEmFluctuationModelGetModelOfFluctuations ()
 
G4VEmAngularDistributionGetAngularDistribution ()
 
G4VEmModelGetTripletModel ()
 
void SetTripletModel (G4VEmModel *)
 
void SetAngularDistribution (G4VEmAngularDistribution *)
 
G4double HighEnergyLimit () const
 
G4double LowEnergyLimit () const
 
G4double HighEnergyActivationLimit () const
 
G4double LowEnergyActivationLimit () const
 
G4double PolarAngleLimit () const
 
G4double SecondaryThreshold () const
 
G4bool DeexcitationFlag () const
 
G4bool ForceBuildTableFlag () const
 
G4bool UseAngularGeneratorFlag () const
 
void SetAngularGeneratorFlag (G4bool)
 
void SetHighEnergyLimit (G4double)
 
void SetLowEnergyLimit (G4double)
 
void SetActivationHighEnergyLimit (G4double)
 
void SetActivationLowEnergyLimit (G4double)
 
G4bool IsActive (G4double kinEnergy) const
 
void SetPolarAngleLimit (G4double)
 
void SetSecondaryThreshold (G4double)
 
void SetDeexcitationFlag (G4bool val)
 
void SetForceBuildTable (G4bool val)
 
void SetFluctuationFlag (G4bool val)
 
void SetMasterThread (G4bool val)
 
G4bool IsMaster () const
 
void SetUseBaseMaterials (G4bool val)
 
G4bool UseBaseMaterials () const
 
G4double MaxSecondaryKinEnergy (const G4DynamicParticle *dynParticle)
 
const G4StringGetName () const
 
void SetCurrentCouple (const G4MaterialCutsCouple *)
 
G4bool IsLocked () const
 
void SetLocked (G4bool)
 
void SetLPMFlag (G4bool)
 
G4VEmModeloperator= (const G4VEmModel &right)=delete
 
 G4VEmModel (const G4VEmModel &)=delete
 

Protected Member Functions

virtual G4double ComputeDXSectionPerAtom (G4double gammaEnergy)
 
void SetParticle (const G4ParticleDefinition *p)
 
- Protected Member Functions inherited from G4VEmModel
G4ParticleChangeForLossGetParticleChangeForLoss ()
 
G4ParticleChangeForGammaGetParticleChangeForGamma ()
 
virtual G4double MaxSecondaryEnergy (const G4ParticleDefinition *, G4double kineticEnergy)
 
const G4MaterialCutsCoupleCurrentCouple () const
 
void SetCurrentElement (const G4Element *)
 

Protected Attributes

G4bool fIsElectron = true
 
G4bool fIsScatOffElectron = false
 
G4bool fIsLPMActive = false
 
G4int fCurrentIZ = 0
 
const G4ParticleDefinitionfPrimaryParticle = nullptr
 
G4ParticleDefinitionfGammaParticle = nullptr
 
G4ParticleChangeForLossfParticleChange = nullptr
 
G4double fPrimaryParticleMass = 0.
 
G4double fPrimaryKinEnergy = 0.
 
G4double fPrimaryTotalEnergy = 0.
 
G4double fDensityFactor = 0.
 
G4double fDensityCorr = 0.
 
G4double fLowestKinEnergy
 
G4double fNucTerm = 0.
 
G4double fSumTerm = 0.
 
- Protected Attributes inherited from G4VEmModel
G4ElementDatafElementData = nullptr
 
G4VParticleChangepParticleChange = nullptr
 
G4PhysicsTablexSectionTable = nullptr
 
const G4MaterialpBaseMaterial = nullptr
 
const std::vector< G4double > * theDensityFactor = nullptr
 
const std::vector< G4int > * theDensityIdx = nullptr
 
G4double inveplus
 
G4double pFactor = 1.0
 
std::size_t currentCoupleIndex = 0
 
std::size_t basedCoupleIndex = 0
 
G4bool lossFlucFlag = true
 

Static Protected Attributes

static const G4double gBremFactor
 
static const G4double gMigdalConstant
 

Detailed Description

Definition at line 59 of file G4eBremsstrahlungRelModel.hh.

Constructor & Destructor Documentation

◆ G4eBremsstrahlungRelModel()

G4eBremsstrahlungRelModel::G4eBremsstrahlungRelModel ( const G4ParticleDefinition * p = nullptr,
const G4String & nam = "eBremLPM" )
explicit

Definition at line 128 of file G4eBremsstrahlungRelModel.cc.

130: G4VEmModel(nam)
131{
133 //
134 fLowestKinEnergy = 1.0*CLHEP::MeV;
136 //
137 fLPMEnergyThreshold = 1.e+39;
138 fLPMEnergy = 0.;
140 //
141 if (nullptr != p) {
142 SetParticle(p);
143 }
144}
static G4Gamma * Gamma()
Definition G4Gamma.cc:81
void SetLowEnergyLimit(G4double)
G4VEmModel(const G4String &nam)
Definition G4VEmModel.cc:67
void SetAngularDistribution(G4VEmAngularDistribution *)
void SetParticle(const G4ParticleDefinition *p)

◆ ~G4eBremsstrahlungRelModel()

G4eBremsstrahlungRelModel::~G4eBremsstrahlungRelModel ( )
override

Definition at line 146 of file G4eBremsstrahlungRelModel.cc.

147{
148 if (fIsInitializer) {
149 // clear ElementData container
150 for (auto const & ptr : gElementData) { delete ptr; }
151 gElementData.clear();
152 // clear LPMFunctions (if any)
153 if (gLPMFuncs.fIsInitialized) {
154 gLPMFuncs.fLPMFuncG.clear();
155 gLPMFuncs.fLPMFuncPhi.clear();
156 gLPMFuncs.fIsInitialized = false;
157 }
158 }
159}

Member Function Documentation

◆ ComputeCrossSectionPerAtom()

G4double G4eBremsstrahlungRelModel::ComputeCrossSectionPerAtom ( const G4ParticleDefinition * p,
G4double ekin,
G4double zet,
G4double ,
G4double cutEnergy,
G4double maxEnergy = DBL_MAX )
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 329 of file G4eBremsstrahlungRelModel.cc.

336{
337 G4double crossSection = 0.0;
338 if (nullptr == fPrimaryParticle) {
339 SetParticle(p);
340 }
341 if (kineticEnergy < LowEnergyLimit()) {
342 return crossSection;
343 }
344 // min/max kinetic energy limits of the DCS integration:
345 const G4double tmin = std::min(cut, kineticEnergy);
346 const G4double tmax = std::min(maxEnergy, kineticEnergy);
347 // zero restricted x-section if e- kinetic energy is below gamma cut
348 if (tmin >= tmax) {
349 return crossSection;
350 }
351 fCurrentIZ = std::min(G4lrint(Z), gMaxZet);
352 // integrate numerically (dependent part of) the DCS between the kin. limits:
353 // a. integrate between tmin and kineticEnergy of the e-
354 crossSection = ComputeXSectionPerAtom(tmin);
355 // allow partial integration: only if maxEnergy < kineticEnergy
356 // b. integrate between tmax and kineticEnergy (tmax=maxEnergy in this case)
357 // (so the result in this case is the integral of DCS between tmin and
358 // maxEnergy)
359 if (tmax < kineticEnergy) {
360 crossSection -= ComputeXSectionPerAtom(tmax);
361 }
362 // multiply with the constant factors: 16\alpha r_0^2/3 Z^2
363 crossSection *= Z*Z*gBremFactor;
364 return std::max(crossSection, 0.);
365}
double G4double
Definition G4Types.hh:83
G4double LowEnergyLimit() const
const G4ParticleDefinition * fPrimaryParticle
int G4lrint(double ad)
Definition templates.hh:134

◆ ComputeDEDXPerVolume()

G4double G4eBremsstrahlungRelModel::ComputeDEDXPerVolume ( const G4Material * material,
const G4ParticleDefinition * p,
G4double ekin,
G4double cutEnergy )
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 246 of file G4eBremsstrahlungRelModel.cc.

250{
251 G4double dedx = 0.0;
252 if (nullptr == fPrimaryParticle) {
253 SetParticle(p);
254 }
255 if (kineticEnergy < LowEnergyLimit()) {
256 return dedx;
257 }
258 // maximum value of the dE/dx integral (the minimum is 0 of course)
259 G4double tmax = std::min(cutEnergy, kineticEnergy);
260 if (tmax == 0.0) {
261 return dedx;
262 }
263 // sets kinematical and material related variables
264 SetupForMaterial(fPrimaryParticle, material,kineticEnergy);
265 // get element compositions of the material
266 const G4ElementVector* theElemVector = material->GetElementVector();
267 const G4double* theAtomNumDensVector = material->GetAtomicNumDensityVector();
268 const std::size_t numberOfElements = theElemVector->size();
269 // loop over the elements of the material and compute their contributions to
270 // the restricted dE/dx by numerical integration of the dependent part of DCS
271 for (std::size_t ie = 0; ie < numberOfElements; ++ie) {
272 G4VEmModel::SetCurrentElement((*theElemVector)[ie]);
273 G4int zet = (*theElemVector)[ie]->GetZasInt();
274 fCurrentIZ = std::min(zet, gMaxZet);
275 dedx += (zet*zet)*theAtomNumDensVector[ie]*ComputeBremLoss(tmax);
276 }
277 // apply the constant factor C/Z = 16\alpha r_0^2/3
278 dedx *= gBremFactor;
279 return std::max(dedx,0.);
280}
std::vector< const G4Element * > G4ElementVector
int G4int
Definition G4Types.hh:85
const G4ElementVector * GetElementVector() const
const G4double * GetAtomicNumDensityVector() const
void SetCurrentElement(const G4Element *)
void SetupForMaterial(const G4ParticleDefinition *, const G4Material *, G4double) override

◆ ComputeDXSectionPerAtom()

G4double G4eBremsstrahlungRelModel::ComputeDXSectionPerAtom ( G4double gammaEnergy)
protectedvirtual

Reimplemented in G4LivermoreBremsstrahlungModel.

Definition at line 485 of file G4eBremsstrahlungRelModel.cc.

486{
487 G4double dxsec = 0.0;
488 if (gammaEnergy < 0.) {
489 return dxsec;
490 }
491 const G4double y = gammaEnergy/fPrimaryTotalEnergy;
492 const G4double onemy = 1.-y;
493 const G4double dum0 = onemy+0.75*y*y;
494 const ElementData* elDat = gElementData[fCurrentIZ];
495 // use complete screening and L_el, L_inel from Dirac-Fock model instead of TF
496 if (fCurrentIZ < 5 || fIsUseCompleteScreening) {
497 dxsec = dum0*elDat->fZFactor1;
498 dxsec += onemy*elDat->fZFactor2;
499 if (fIsScatOffElectron) {
500 fSumTerm = dxsec;
501 fNucTerm = dum0*elDat->fZFactor11+onemy/12.;
502 }
503 } else {
504 // use Tsai's analytical approx. (Tsai Eqs. [3.38-3.41]) to the 'universal'
505 // numerical screening functions computed by using the TF model of the atom
506 const G4double invZ = 1./(G4double)fCurrentIZ;
507 const G4double Fz = elDat->fFz;
508 const G4double logZ = elDat->fLogZ;
509 const G4double dum1 = y/(fPrimaryTotalEnergy-gammaEnergy);
510 const G4double gamma = dum1*elDat->fGammaFactor;
511 const G4double epsilon = dum1*elDat->fEpsilonFactor;
512 // evaluate the screening functions
513 G4double phi1, phi1m2, psi1, psi1m2;
514 ComputeScreeningFunctions(phi1, phi1m2, psi1, psi1m2, gamma, epsilon);
515 dxsec = dum0*((0.25*phi1-Fz) + (0.25*psi1-2.*logZ/3.)*invZ);
516 dxsec += 0.125*onemy*(phi1m2 + psi1m2*invZ);
517 if (fIsScatOffElectron) {
518 fSumTerm = dxsec;
519 fNucTerm = dum0*(0.25*phi1-Fz) + 0.125*onemy*phi1m2;
520 }
521 }
522 return std::max(dxsec,0.0);
523}
G4double epsilon(G4double density, G4double temperature)

Referenced by SampleSecondaries().

◆ Initialise()

void G4eBremsstrahlungRelModel::Initialise ( const G4ParticleDefinition * p,
const G4DataVector & cuts )
overridevirtual

Implements G4VEmModel.

Reimplemented in G4LivermoreBremsstrahlungModel.

Definition at line 161 of file G4eBremsstrahlungRelModel.cc.

163{
164 // parameters in each thread
165 if (fPrimaryParticle != p) {
166 SetParticle(p);
167 }
168 fUseLPM = G4EmParameters::Instance()->LPM();
169 fCurrentIZ = 0;
170
171 // init static element data and precompute LPM functions only once
172 std::call_once(applyOnce, [this]() { fIsInitializer = true; });
173
174 // for all treads and derived classes
175 if (fIsInitializer || gElementData.empty()) {
176 G4AutoLock l(&theBremRelMutex);
177 if (gElementData.empty()) {
178 gElementData.resize(gMaxZet+1, nullptr);
179 }
180 InitialiseElementData();
181 InitLPMFunctions();
182 l.unlock();
183 }
184
185 // element selectors are initialized in the master thread
186 if (IsMaster()) {
188 }
189 // initialisation in all threads
190 if (nullptr == fParticleChange) {
192 }
193 if (GetTripletModel()) {
194 GetTripletModel()->Initialise(p, cuts);
195 fIsScatOffElectron = true;
196 }
197}
static G4EmParameters * Instance()
G4bool LPM() const
G4bool IsMaster() const
G4VEmModel * GetTripletModel()
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)=0
G4ParticleChangeForLoss * GetParticleChangeForLoss()
G4ParticleChangeForLoss * fParticleChange

Referenced by G4LivermoreBremsstrahlungModel::Initialise().

◆ InitialiseLocal()

void G4eBremsstrahlungRelModel::InitialiseLocal ( const G4ParticleDefinition * ,
G4VEmModel * masterModel )
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 199 of file G4eBremsstrahlungRelModel.cc.

201{
203}
void SetElementSelectors(std::vector< G4EmElementSelector * > *)
std::vector< G4EmElementSelector * > * GetElementSelectors()

◆ MinPrimaryEnergy()

G4double G4eBremsstrahlungRelModel::MinPrimaryEnergy ( const G4Material * ,
const G4ParticleDefinition * ,
G4double cutEnergy )
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 236 of file G4eBremsstrahlungRelModel.cc.

239{
240 return std::max(fLowestKinEnergy, cut);
241}

◆ SampleSecondaries()

void G4eBremsstrahlungRelModel::SampleSecondaries ( std::vector< G4DynamicParticle * > * vdp,
const G4MaterialCutsCouple * couple,
const G4DynamicParticle * dp,
G4double cutEnergy,
G4double maxEnergy )
overridevirtual

Implements G4VEmModel.

Reimplemented in G4LivermoreBremsstrahlungModel.

Definition at line 549 of file G4eBremsstrahlungRelModel.cc.

554{
555 const G4double kineticEnergy = dp->GetKineticEnergy();
556 if (kineticEnergy < LowEnergyLimit()) {
557 return;
558 }
559 // min, max kinetic energy limits
560 const G4double tmin = std::min(cutEnergy, kineticEnergy);
561 const G4double tmax = std::min(maxEnergy, kineticEnergy);
562 if (tmin >= tmax) {
563 return;
564 }
565 //
566 SetupForMaterial(fPrimaryParticle, couple->GetMaterial(), kineticEnergy);
567 const G4Element* elm = SelectTargetAtom(couple,fPrimaryParticle,kineticEnergy,
568 dp->GetLogKineticEnergy(),tmin,tmax);
569 //
570 fCurrentIZ = elm->GetZasInt();
571 const ElementData* elDat = gElementData[fCurrentIZ];
572 const G4double funcMax = elDat->fZFactor1+elDat->fZFactor2;
573 // get the random engine
574 G4double rndm[2];
575 CLHEP::HepRandomEngine* rndmEngine = G4Random::getTheEngine();
576 // min max of the transformed variable: x(k) = ln(k^2+k_p^2) that is in [ln(k_c^2+k_p^2), ln(E_k^2+k_p^2)]
577 const G4double xmin = G4Log(tmin*tmin+fDensityCorr);
578 const G4double xrange = G4Log(tmax*tmax+fDensityCorr)-xmin;
579 G4double gammaEnergy, funcVal;
580 do {
581 rndmEngine->flatArray(2, rndm);
582 gammaEnergy = std::sqrt(std::max(G4Exp(xmin+rndm[0]*xrange)-fDensityCorr, 0.0));
583 funcVal = fIsLPMActive
584 ? ComputeRelDXSectionPerAtom(gammaEnergy)
585 : ComputeDXSectionPerAtom(gammaEnergy);
586 // cross-check of proper function maximum in the rejection
587// if (funcVal > funcMax) {
588// G4cout << "### G4eBremsstrahlungRelModel Warning: Majoranta exceeded! "
589// << funcVal << " > " << funcMax
590// << " Egamma(MeV)= " << gammaEnergy
591// << " Ee(MeV)= " << kineticEnergy
592// << " " << GetName()
593// << G4endl;
594// }
595 // Loop checking, 03-Aug-2015, Vladimir Ivanchenko
596 } while (funcVal < funcMax*rndm[1]);
597 //
598 // scattering off nucleus or off e- by triplet model
599 if (fIsScatOffElectron && rndmEngine->flat()*fSumTerm>fNucTerm) {
600 GetTripletModel()->SampleSecondaries(vdp, couple, dp, cutEnergy, maxEnergy);
601 return;
602 }
603 //
604 // angles of the emitted gamma. ( Z - axis along the parent particle)
605 // use general interface
606 G4ThreeVector gamDir =
608 fCurrentIZ, couple->GetMaterial());
609 // create G4DynamicParticle object for the Gamma
610 auto gamma = new G4DynamicParticle(fGammaParticle, gamDir, gammaEnergy);
611 vdp->push_back(gamma);
612 // compute post-interaction kinematics of primary e-/e+ based on
613 // energy-momentum conservation
614 const G4double totMomentum = std::sqrt(kineticEnergy*(
615 fPrimaryTotalEnergy + CLHEP::electron_mass_c2));
616 G4ThreeVector dir =
617 (totMomentum*dp->GetMomentumDirection()-gammaEnergy*gamDir).unit();
618 const G4double finalE = kineticEnergy-gammaEnergy;
619 // if secondary gamma energy is higher than threshold(very high by default)
620 // then stop tracking the primary particle and create new secondary e-/e+
621 // instead of the primary one
622 if (gammaEnergy > SecondaryThreshold()) {
625 auto el = new G4DynamicParticle(
626 const_cast<G4ParticleDefinition*>(fPrimaryParticle), dir, finalE);
627 vdp->push_back(el);
628 } else { // continue tracking the primary e-/e+ otherwise
631 }
632}
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
Definition G4Exp.hh:180
G4double G4Log(G4double x)
Definition G4Log.hh:227
@ fStopAndKill
Hep3Vector unit() const
virtual double flat()=0
virtual void flatArray(const int size, double *vect)=0
const G4ThreeVector & GetMomentumDirection() const
G4double GetLogKineticEnergy() const
G4double GetKineticEnergy() const
G4int GetZasInt() const
Definition G4Element.hh:120
const G4Material * GetMaterial() const
void SetProposedKineticEnergy(G4double proposedKinEnergy)
void SetProposedMomentumDirection(const G4ThreeVector &dir)
virtual G4ThreeVector & SampleDirection(const G4DynamicParticle *dp, G4double finalTotalEnergy, G4int Z, const G4Material *)=0
G4VEmAngularDistribution * GetAngularDistribution()
virtual void SampleSecondaries(std::vector< G4DynamicParticle * > *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin=0.0, G4double tmax=DBL_MAX)=0
const G4Element * SelectTargetAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double logKineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
G4double SecondaryThreshold() const
void ProposeTrackStatus(G4TrackStatus status)
virtual G4double ComputeDXSectionPerAtom(G4double gammaEnergy)

◆ SetParticle()

void G4eBremsstrahlungRelModel::SetParticle ( const G4ParticleDefinition * p)
protected

◆ SetupForMaterial()

void G4eBremsstrahlungRelModel::SetupForMaterial ( const G4ParticleDefinition * ,
const G4Material * mat,
G4double kineticEnergy )
overridevirtual

Reimplemented from G4VEmModel.

Definition at line 215 of file G4eBremsstrahlungRelModel.cc.

218{
220 fLPMEnergy = gLPMconstant*mat->GetRadlen();
221 // threshold for LPM effect (i.e. below which LPM hidden by density effect)
222 if (fUseLPM) {
223 fLPMEnergyThreshold = std::sqrt(fDensityFactor)*fLPMEnergy;
224 } else {
225 fLPMEnergyThreshold = 1.e+39; // i.e. do not use LPM effect
226 }
227 // calculate threshold for density effect: k_p = sqrt(fDensityCorr)
228 fPrimaryKinEnergy = kineticEnergy;
231 // set activation flag for LPM effects in the DCS
232 fIsLPMActive = (fPrimaryTotalEnergy>fLPMEnergyThreshold);
233}
G4double GetElectronDensity() const
G4double GetRadlen() const

Referenced by ComputeDEDXPerVolume(), SampleSecondaries(), and G4LivermoreBremsstrahlungModel::SampleSecondaries().

Member Data Documentation

◆ fCurrentIZ

◆ fDensityCorr

G4double G4eBremsstrahlungRelModel::fDensityCorr = 0.
protected

◆ fDensityFactor

G4double G4eBremsstrahlungRelModel::fDensityFactor = 0.
protected

Definition at line 163 of file G4eBremsstrahlungRelModel.hh.

Referenced by SetupForMaterial().

◆ fGammaParticle

G4ParticleDefinition* G4eBremsstrahlungRelModel::fGammaParticle = nullptr
protected

◆ fIsElectron

G4bool G4eBremsstrahlungRelModel::fIsElectron = true
protected

◆ fIsLPMActive

G4bool G4eBremsstrahlungRelModel::fIsLPMActive = false
protected

Definition at line 153 of file G4eBremsstrahlungRelModel.hh.

Referenced by SampleSecondaries(), and SetupForMaterial().

◆ fIsScatOffElectron

G4bool G4eBremsstrahlungRelModel::fIsScatOffElectron = false
protected

◆ fLowestKinEnergy

G4double G4eBremsstrahlungRelModel::fLowestKinEnergy
protected

Definition at line 165 of file G4eBremsstrahlungRelModel.hh.

Referenced by G4eBremsstrahlungRelModel(), and MinPrimaryEnergy().

◆ fNucTerm

G4double G4eBremsstrahlungRelModel::fNucTerm = 0.
protected

Definition at line 167 of file G4eBremsstrahlungRelModel.hh.

Referenced by ComputeDXSectionPerAtom(), and SampleSecondaries().

◆ fParticleChange

G4ParticleChangeForLoss* G4eBremsstrahlungRelModel::fParticleChange = nullptr
protected

◆ fPrimaryKinEnergy

G4double G4eBremsstrahlungRelModel::fPrimaryKinEnergy = 0.
protected

◆ fPrimaryParticle

const G4ParticleDefinition* G4eBremsstrahlungRelModel::fPrimaryParticle = nullptr
protected

◆ fPrimaryParticleMass

G4double G4eBremsstrahlungRelModel::fPrimaryParticleMass = 0.
protected

◆ fPrimaryTotalEnergy

◆ fSumTerm

G4double G4eBremsstrahlungRelModel::fSumTerm = 0.
protected

Definition at line 168 of file G4eBremsstrahlungRelModel.hh.

Referenced by ComputeDXSectionPerAtom(), and SampleSecondaries().

◆ gBremFactor

const G4double G4eBremsstrahlungRelModel::gBremFactor
staticprotected
Initial value:
= 16. * CLHEP::fine_structure_const * CLHEP::classic_electr_radius
* CLHEP::classic_electr_radius/3.

Definition at line 178 of file G4eBremsstrahlungRelModel.hh.

Referenced by ComputeCrossSectionPerAtom(), ComputeDEDXPerVolume(), and G4LivermoreBremsstrahlungModel::ComputeDXSectionPerAtom().

◆ gMigdalConstant

const G4double G4eBremsstrahlungRelModel::gMigdalConstant
staticprotected
Initial value:
= 4. * CLHEP::pi * CLHEP::classic_electr_radius
* CLHEP::electron_Compton_length * CLHEP::electron_Compton_length

Definition at line 179 of file G4eBremsstrahlungRelModel.hh.

Referenced by SetupForMaterial().


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