272 if (verboseLevel > 1) {
273 G4cout <<
"Calling SampleSecondaries() of G4BoldyshevTripletModel"
285 G4double positronTotEnergy, electronTotEnergy, thetaEle, thetaPos;
286 G4double ener_re=0., theta_re, phi_re, phi;
303 G4double X_0 = 2. * ( sqrt(momentumThreshold_N*momentumThreshold_N + 1) -1 );
304 G4double SigmaQ = (82./27. - (14./9.) * log (X_0) + 4./15.*X_0 - 0.0348 * X_0 * X_0);
309 if (recoilProb >= SigmaQ/SigmaTot)
313 ( energyThreshold +
electron_mass_c2 ) / (photonEnergy*momentumThreshold_c) );
320 G4double are, bre, loga, f1_re, greject, cost;
327 cost = pow(cosThetaMax,r1);
328 theta_re = acos(cost);
329 are = 1./(14.*cost*cost);
330 bre = (1.-5.*cost*cost)/(2.*cost);
331 loga = log((1.+ cost)/(1.- cost));
332 f1_re = 1. - bre*loga;
340 }
while(greject < r2);
351 G4double fp = 1. - sint2*loga/(2.*cost) ;
352 rt = (1.-cos(2.*phi_re)*fp/f1_re)/(2.*
pi) ;
369 ener_re = ener_recoil;
374 G4double dxEle_re=sin(theta_re)*std::cos(phi_re),dyEle_re=sin(theta_re)*std::sin(phi_re), dzEle_re=cos(theta_re);
378 G4ThreeVector electronRDirection (dxEle_re, dyEle_re, dzEle_re);
379 electronRDirection.rotateUz(photonDirection);
383 electronRKineEnergy);
384 fvect->push_back(particle3);
399 G4double t = 0.5*log(momentumThreshold_N + sqrt(momentumThreshold_N*momentumThreshold_N+1));
401 G4double J1 = 0.5*(t*cosh(t)/sinh(t) - log(2.*sinh(t)));
402 G4double J2 = (-2./3.)*log(2.*sinh(t)) + t*cosh(t)/sinh(t) + (sinh(t)-t*pow(cosh(t),3))/(3.*pow(sinh(t),3));
410 G4double b1 = 16. - 3.*b - 36.*b*re*n + 36.*b*pow(re,2.)*pow(n,2.) +
413 G4double c1 = (-6. + 12.*re*n + b + 2*a)*pow(b,2.);
414 epsilon = (pow(c1,1./3.))/(2.*b) + (b-4.)/(2.*pow(c1,1./3.))+0.5;
416 G4double photonEnergy1 = photonEnergy - ener_re ;
417 positronTotEnergy = epsilon*photonEnergy1;
418 electronTotEnergy = photonEnergy1 - positronTotEnergy;
420 G4double momento_e = sqrt(electronTotEnergy*electronTotEnergy -
422 G4double momento_p = sqrt(positronTotEnergy*positronTotEnergy -
425 thetaEle = acos((sqrt(p0*p0/(momento_e*momento_e) +1.)- p0/momento_e)) ;
426 thetaPos = acos((sqrt(p0*p0/(momento_p*momento_p) +1.)- p0/momento_p)) ;
429 G4double dxEle= std::sin(thetaEle)*std::cos(phi),dyEle= std::sin(thetaEle)*std::sin(phi),dzEle=std::cos(thetaEle);
430 G4double dxPos=-std::sin(thetaPos)*std::cos(phi),dyPos=-std::sin(thetaPos)*std::sin(phi),dzPos=std::cos(thetaPos);
442 electronDirection.rotateUz(photonDirection);
453 positronDirection.rotateUz(photonDirection);
458 positronDirection, positronKineEnergy);
461 fvect->push_back(particle1);
462 fvect->push_back(particle2);
G4double GetKineticEnergy() const
void ProposeLocalEnergyDeposit(G4double anEnergyPart)
static constexpr double twopi
static constexpr double electron_mass_c2
G4GLOB_DLL std::ostream G4cout
const G4ThreeVector & GetMomentumDirection() const
static G4Positron * Positron()
T max(const T t1, const T t2)
brief Return the largest of the two arguments
static G4Electron * Electron()
void SetProposedKineticEnergy(G4double proposedKinEnergy)
static constexpr double pi
void ProposeTrackStatus(G4TrackStatus status)
double epsilon(double density, double temperature)
static constexpr double pi