52#ifndef G4UrbanMscModel_h
53#define G4UrbanMscModel_h 1
95 G4double& currentMinimalStep)
override;
115 void InitialiseModelCache();
144 G4double tlimitminfix,tlimitminfix2;
180 G4double coeffc1, coeffc2, coeffc3, coeffc4;
183 G4double posa, posb, posc, posd, pose;
185 static std::vector<mscData*> msc;
193 G4bool latDisplasmentbackup;
195 G4bool fPosiCorrection =
true;
196 G4bool isFirstInstance =
false;
209 chargeSquare = charge*charge;
215inline G4double G4UrbanMscModel::Randomizetlimit()
218 if(tlimit > tlimitmin)
220 res = G4RandGauss::shoot(rndmEngineMod,tlimit,0.1*(tlimit-tlimitmin));
221 res = std::max(res, tlimitmin);
228inline G4double G4UrbanMscModel::SimpleScattering()
232 G4double a = (2.*xmeanth+9.*x2meanth-3.)/(2.*xmeanth-3.*x2meanth+1.);
237 return (rndmarray[1] < prob) ?
238 -1.+2.*
G4Exp(
G4Log(rndmarray[0])/(a+1.)) : -1.+2.*rndmarray[0];
241inline G4double G4UrbanMscModel::ComputeStepmin()
245 G4double rat = currentKinEnergy*invmev;
246 return lambda0*1.e-3/(2.e-3+rat*(msc[idx]->stepmina+msc[idx]->stepminb*rat));
249inline G4double G4UrbanMscModel::ComputeTlimitmin()
251 G4double x = (particle == positron) ?
252 0.7*msc[idx]->sqrtZ*stepmin : 0.87*msc[idx]->Z23*stepmin;
253 if(currentKinEnergy < tlow) { x *= 0.5*(1.+currentKinEnergy/tlow); }
254 return std::max(x, tlimitminfix);
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
G4double G4Log(G4double x)
virtual void flatArray(const int size, double *vect)=0
G4double GetPDGMass() const
G4double GetPDGCharge() const
G4ThreeVector & SampleScattering(const G4ThreeVector &, G4double safety) override
G4double ComputeTrueStepLength(G4double geomStepLength) override
G4double ComputeTheta0(G4double truePathLength, G4double KineticEnergy)
void StartTracking(G4Track *) override
~G4UrbanMscModel() override
void Initialise(const G4ParticleDefinition *, const G4DataVector &) override
G4double ComputeGeomPathLength(G4double truePathLength) override
G4UrbanMscModel & operator=(const G4UrbanMscModel &right)=delete
G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *particle, G4double KineticEnergy, G4double AtomicNumber, G4double AtomicWeight=0., G4double cut=0., G4double emax=DBL_MAX) override
G4double ComputeTruePathLengthLimit(const G4Track &track, G4double ¤tMinimalStep) override
G4UrbanMscModel(const G4UrbanMscModel &)=delete