84 #include "G4ParticleChangeForLoss.hh" 85 #include "G4ParticleChangeForGamma.hh" 96 0.5917, 0.7628, 0.8983, 0.9801 };
98 0.1813, 0.1569, 0.1112, 0.0506 };
114 lowestKinEnergy(1.0*
GeV),
209 const G4double* theAtomicNumDensityVector =
214 G4double Z = (*theElementVector)[i]->GetZ();
217 dedx += loss*theAtomicNumDensityVector[i];
219 if (dedx < 0.) { dedx = 0.; }
243 if (kkk > 8) { kkk = 8; }
244 else if (kkk < 1) { kkk = 1; }
249 for (
G4int l=0 ; l<kkk; l++)
252 for (
G4int ll=0; ll<8; ll++)
260 if (loss < 0.) loss = 0.;
274 if (tmax <= cut) {
return cross; }
281 if(kkk > 8) { kkk = 8; }
282 else if (kkk < 1) { kkk = 1; }
287 for(
G4int l=0; l<kkk; ++l)
289 for(
G4int i=0; i<8; ++i)
298 if(cross < 0.0) { cross = 0.0; }
313 static const G4double bbbh = 202.4 ;
314 static const G4double g1tf = 1.95e-5 ;
315 static const G4double g2tf = 5.3e-5 ;
316 static const G4double g1h = 4.4e-5 ;
317 static const G4double g2h = 4.8e-5 ;
320 G4double residEnergy = totalEnergy - pairEnergy;
322 G4double massratio2 = massratio*massratio ;
326 if (residEnergy <= c3*
z13) {
return cross; }
332 if (a3 <= 0.) {
return cross; }
336 if( Z < 1.5 ) { bbb = bbbh ; g1 = g1h ; g2 = g2h ; }
337 else { bbb = bbbtf; g1 = g1tf; g2 = g2tf; }
341 0.073*
G4Log(totalEnergy/(particleMass+g1*
z23*totalEnergy))-0.26;
345 0.058*
G4Log(totalEnergy/(particleMass+g2*z13*totalEnergy))-0.14;
358 G4double tmnexp = alf/(1. + rta3) + del*rta3;
359 if(tmnexp >= 1.0) {
return cross; }
365 for (
G4int i=0; i<8; ++i)
379 G4double ale =
G4Log(bbb/z13*sqrt(xi1*ye1)/(1.+screen*ye1)) ;
384 be = ((2.+a6)*(1.+bet)+xi*a9)*
G4Log(1.+xii)+(a5-bet)/xi1-a9;
386 be = (3.-a6+a1*a7)/(2.*xi);
389 if ( fe < 0.) fe = 0. ;
399 bm = (a7*(1.+1.5*bet)-a10*xii)*
G4Log(xi1)+xi*(a5-bet)/xi1+a10;
401 bm = (5.-a6+bet*a9)*(xi/2.);
405 if ( fm < 0.) { fm = 0.; }
407 sum +=
wgi[i]*a4*(fe+fm/massratio2);
410 cross = -tmn*sum*
factorForCross*z2*residEnergy/(totalEnergy*pairEnergy);
411 if(cross < 0.0) { cross = 0.0; }
430 if (cut >= tmax) {
return cross; }
433 if(tmax < kineticEnergy) {
451 for (
size_t it=0; it<=
nbine; ++it) {
464 size_t imax = (size_t)fac;
478 for (
size_t i=0; i<
nbiny; ++i) {
480 if(0 == it) { pv->
PutX(i, x); }
492 }
else if(i == imax) {
499 kinEnergy *= factore;
511 std::vector<G4DynamicParticle*>* vdp,
523 sqrt(kineticEnergy*(kineticEnergy + 2.0*particleMass));
536 if(minEnergy >= maxEnergy) {
return; }
555 G4int iz1(0), iz2(0);
562 if(iz > 0) { iz1 =
zdat[iz-1]; }
567 if(0 == iz1) { iz1 = iz2 =
zdat[nzdat-1]; }
584 x += (x2 -
x)*(
lnZ - lz1)/(lz2 - lz1);
587 PairEnergy = kineticEnergy*
G4Exp(x*coeff);
590 }
while((PairEnergy < minEnergy || PairEnergy > maxEnergy) && 10 > count);
597 (1.-6.*particleMass*particleMass/(totalEnergy*(totalEnergy-PairEnergy)))
602 G4double ElectronEnergy = (1.-
r)*PairEnergy*0.5;
603 G4double PositronEnergy = PairEnergy - ElectronEnergy;
616 G4double dirx = sint*cos(phi), diry = sint*sin(phi), dirz = cos(theta) ;
634 kineticEnergy -= (ElectronEnergy + PositronEnergy);
637 partDirection *= totalMomentum;
639 partDirection = partDirection.
unit();
643 vdp->push_back(aParticle1);
644 vdp->push_back(aParticle2);
653 ed <<
"G4ElementData is not properly initialized Z= " << Z
654 <<
" Ekin(MeV)= " <<
G4Exp(logTkin)
655 <<
" IsMasterThread= " <<
IsMaster()
G4double LowEnergyLimit() const
G4double MaxSecondaryEnergyForElement(G4double kineticEnergy, G4double Z)
void DataCorrupted(G4int Z, G4double logTkin)
const G4String & GetName() const
static const G4double xgi[8]
G4ParticleChangeForLoss * GetParticleChangeForLoss()
G4ParticleDefinition * thePositron
std::vector< G4Element * > G4ElementVector
std::ostringstream G4ExceptionDescription
G4MuPairProductionModel(const G4ParticleDefinition *p=0, const G4String &nam="muPairProd")
void InitialiseElementSelectors(const G4ParticleDefinition *, const G4DataVector &)
const G4ParticleDefinition * particle
G4ParticleDefinition * theElectron
void SetElementSelectors(std::vector< G4EmElementSelector *> *)
void MakeSamplingTables()
static const G4double adat[5]
void SetParticle(const G4ParticleDefinition *)
G4ElementData * GetElementData()
static G4NistManager * Instance()
virtual G4double ComputeDEDXPerVolume(const G4Material *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy)
G4ParticleChangeForLoss * fParticleChange
static const G4int zdat[5]
G4double ComputMuPairLoss(G4double Z, G4double tkin, G4double cut, G4double tmax)
G4double FindScaledEnergy(G4int Z, G4double rand, G4double logTkin, G4double yymin, G4double yymax)
void PutValue(size_t idx, size_t idy, G4double value)
G4double ComputeMicroscopicCrossSection(G4double tkin, G4double Z, G4double cut)
G4double GetKineticEnergy() const
void InitialiseForElement(G4int Z, G4PhysicsVector *v)
G4ThreeVector GetMomentum() const
const G4double * GetAtomicNumDensityVector() const
static const G4double sqrte
virtual G4double ComputeCrossSectionPerAtom(const G4ParticleDefinition *, G4double kineticEnergy, G4double Z, G4double A, G4double cutEnergy, G4double maxEnergy)
virtual void InitialiseLocal(const G4ParticleDefinition *, G4VEmModel *masterModel)
G4double HighEnergyLimit() const
Hep3Vector & rotateUz(const Hep3Vector &)
static const double twopi
std::vector< G4EmElementSelector * > * GetElementSelectors()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
virtual G4double MinPrimaryEnergy(const G4Material *, const G4ParticleDefinition *, G4double)
static G4Positron * Positron()
int classic_electr_radius
void PutX(size_t idx, G4double value)
const G4ThreeVector & GetMomentumDirection() const
G4double GetPDGMass() const
virtual G4double ComputeDMicroscopicCrossSection(G4double tkin, G4double Z, G4double pairEnergy)
size_t GetNumberOfElements() const
static const G4double wgi[8]
virtual void SampleSecondaries(std::vector< G4DynamicParticle *> *, const G4MaterialCutsCouple *, const G4DynamicParticle *, G4double tmin, G4double maxEnergy)
G4double GetLOGZ(G4int Z)
static G4Electron * Electron()
static const G4double fac
const G4ElementVector * GetElementVector() const
static const double electron_mass_c2
void PutY(size_t idy, G4double value)
G4ElementData * fElementData
virtual ~G4MuPairProductionModel()
const G4Element * SelectRandomAtom(const G4MaterialCutsCouple *, const G4ParticleDefinition *, G4double kineticEnergy, G4double cutEnergy=0.0, G4double maxEnergy=DBL_MAX)
virtual void Initialise(const G4ParticleDefinition *, const G4DataVector &)