58 G4MuonRadiativeDecayChannelWithSpin::
59 G4MuonRadiativeDecayChannelWithSpin(
const G4String& theParentName,
64 if (theParentName ==
"mu+") {
72 }
else if (theParentName ==
"mu-") {
83 G4cout <<
"G4RadiativeMuonDecayChannel:: constructor :";
84 G4cout <<
" parent particle is not muon but ";
102 if (
this != &right) {
134 G4cout <<
"G4MuonRadiativeDecayChannelWithSpin::DecayIt ";
148 for (
G4int index=0; index<4; index++){
150 sumofdaughtermass += daughtermass[index];
161 delete parentparticle;
168 G4double cthetaE, cthetaG, cthetaGE, phiE, phiG;
169 const size_t MAX_LOOP=10000;
171 for (
size_t loop_counter1=0; loop_counter1 <MAX_LOOP; ++loop_counter1){
179 for (
size_t loop_counter2=0; loop_counter2 <MAX_LOOP; ++loop_counter2){
194 if(std::fabs((xx*xx)+(yy*yy)+(zz*zz)-(x*x))>0.001){
200 G4double sthetaE = std::sqrt((xx*xx)+(yy*yy))/x;
223 if(std::fabs((xx*xx)+(yy*yy)+(zz*zz)-(y*y))>0.001){
229 G4double sthetaG = std::sqrt((xx*xx)+(yy*yy))/y;
257 cthetaGE = cthetaE*cthetaG+sthetaE*sthetaG*std::cos(phiE-phiG);
267 G4double beta = std::sqrt( x*((1.0-eps)*(1.0-eps))*
268 (x*((1.0-eps)*(1.0-eps))+4.0*eps))/term1;
274 G4double Qsqr = (1.0-term1-term3+term0+0.5*term6)/((1.0-eps)*(1.0-
eps));
280 if ( Qsqr>=0.0 && Qsqr<=1.0 )
break;
294 som0 = fron(Pmu,x,y,cthetaE,cthetaG,cthetaGE);
320 G4double E = EMMU/2.*(x*((1.-
eps)*(1.-eps))+2.*eps);
326 if(E < EMASS) E = EMASS;
331 daughtermomentum[0] = std::sqrt(E*E - EMASS*EMASS);
333 G4double sthetaE = std::sqrt(1.-cthetaE*cthetaE);
352 daughtermomentum[1] = G;
354 G4double sthetaG = std::sqrt(1.-cthetaG*cthetaG);
376 G4double energy2 = parentmass*(1.0 - (x+y)/2.0);
379 (daughtermomentum[0]*direction0+daughtermomentum[1]*direction1)*
380 (daughtermomentum[0]*direction0+daughtermomentum[1]*direction1);
383 G4double beta = (daughtermomentum[0]+daughtermomentum[1])/energy2;
387 G4double sinthetan = std::sqrt((1.0-costhetan)*(1.0+costhetan));
392 G4ThreeVector direction2(sinthetan*cosphin,sinthetan*sinphin,costhetan);
402 direction0.y()+direction1.y(),
403 direction0.z()+direction1.z());
404 direction34 = direction34.
unit();
407 p4.
boost(direction34.x()*beta,direction34.y()*beta,direction34.z()*beta);
411 p4.
boost(direction34.x()*beta,direction34.y()*beta,direction34.z()*beta);
423 G4cout <<
"G4MuonRadiativeDecayChannelWithSpin::DecayIt ";
424 G4cout <<
" create decay products in rest frame " <<
G4endl;
450 G4double f_1s = 12.0*((y*y)*(1.0-y)+x*y*(2.0-3.0*y)
451 +2.0*(x*x)*(1.0-2.0*y)-2.0*(x*x*x));
452 G4double f0s = 6.0*(-x*y*(2.0-3.0*(y*y))
453 -2.0*(x*x)*(1.0-y-3.0*(y*y))+2.0*(x*x*x)*(1.0+2.0*y));
454 G4double f1s = 3.0*((x*x)*y*(2.0-3.0*y-3.0*(y*y))
455 -(x*x*x)*y*(4.0+3.0*y));
456 G4double f2s = 1.5*((x*x*x)*(y*y)*(2.0+y));
458 G4double f_1se = 12.0*(x*y*(1.0-y)+(x*x)*(2.0-3.0*y)
460 G4double f0se = 6.0*(-(x*x)*(2.0-y-2.0*(y*y))
461 +(x*x*x)*(2.0+3.0*y));
462 G4double f1se = -3.0*(x*x*x)*y*(2.0+y);
465 G4double f_1sg = 12.0*((y*y)*(1.0-y)+x*y*(1.0-2.0*y)
467 G4double f0sg = 6.0*(-x*(y*y)*(2.0-3.0*y)-(x*x)*y*(1.0-4.0*y)
469 G4double f1sg = 3.0*((x*x)*(y*y)*(1.0-3.0*y)
471 G4double f2sg = 1.5*(x*x*x)*(y*y*y);
473 G4double f_1v = 8.0*((y*y)*(3.0-2.0*y)+6.0*x*y*(1.0-y)
474 +2.0*(x*x)*(3.0-4.0*y)-4.0*(x*x*x));
475 G4double f0v = 8.0*(-x*y*(3.0-y-(y*y))-(x*x)*(3.0-y-4.0*(y*y))
476 +2.0*(x*x*x)*(1.0+2.0*y));
477 G4double f1v = 2.0*((x*x)*y*(6.0-5.0*y-2.0*(y*y))
478 -2.0*(x*x*x)*y*(4.0+3.0*y));
479 G4double f2v = 2.0*(x*x*x)*(y*y)*(2.0+y);
481 G4double f_1ve = 8.0*(x*y*(1.0-2.0*y)
482 +2.0*(x*x)*(1.0-3.0*y)-4.0*(x*x*x));
483 G4double f0ve = 4.0*(-(x*x)*(2.0-3.0*y-4.0*(y*y))
484 +2.0*(x*x*x)*(2.0+3.0*y));
485 G4double f1ve = -4.0*(x*x*x)*y*(2.0+y);
488 G4double f_1vg = 8.0*((y*y)*(1.0-2.0*y)+x*y*(1.0-4.0*y)
490 G4double f0vg = 4.0*(2.0*x*(y*y)*(1.0+y)-(x*x)*y*(1.0-4.0*y)
492 G4double f1vg = 2.0*((x*x)*(y*y)*(1.0-2.0*y)
494 G4double f2vg = 2.0*(x*x*x)*(y*y*y);
496 G4double f_1t = 8.0*((y*y)*(3.0-y)+3.0*x*y*(2.0-y)
497 +2.0*(x*x)*(3.0-2.0*y)-2.0*(x*x*x));
498 G4double f0t = 4.0*(-x*y*(6.0+(y*y))
499 -2.0*(x*x)*(3.0+y-3.0*(y*y))+2.0*(x*x*x)*(1.0+2.0*y));
500 G4double f1t = 2.0*((x*x)*y*(6.0-5.0*y+(y*y))
501 -(x*x*x)*y*(4.0+3.0*y));
502 G4double f2t = (x*x*x)*(y*y)*(2.0+y);
504 G4double f_1te = -8.0*(x*y*(1.0+3.0*y)+(x*x)*(2.0+3.0*y)
506 G4double f0te = 4.0*((x*x)*(2.0+3.0*y+4.0*(y*y))
507 +(x*x*x)*(2.0+3.0*y));
508 G4double f1te = -2.0*(x*x*x)*y*(2.0+y);
511 G4double f_1tg = -8.0*((y*y)*(1.0+y)+x*y+(x*x)*y);
512 G4double f0tg = 4.0*(x*(y*y)*(2.0-y)+(x*x)*y*(1.0+2.0*y)
514 G4double f1tg = -2.0*((x*x)*(y*y)*(1.0-y)+2.0*(x*x*x)*y);
517 G4double term = delta+2.0*(me*me)/((mu*mu)*(x*x));
520 G4double nss = term*f_1s+f0s+delta*f1s+(delta*delta)*f2s;
521 G4double nv = term*f_1v+f0v+delta*f1v+(delta*delta)*f2v;
522 G4double nt = term*f_1t+f0t+delta*f1t+(delta*delta)*f2t;
524 G4double nse = term*f_1se+f0se+delta*f1se+(delta*delta)*f2se;
525 G4double nve = term*f_1ve+f0ve+delta*f1ve+(delta*delta)*f2ve;
526 G4double nte = term*f_1te+f0te+delta*f1te+(delta*delta)*f2te;
528 G4double nsg = term*f_1sg+f0sg+delta*f1sg+(delta*delta)*f2sg;
529 G4double nvg = term*f_1vg+f0vg+delta*f1vg+(delta*delta)*f2vg;
530 G4double ntg = term*f_1tg+f0tg+delta*f1tg+(delta*delta)*f2tg;
536 G4double term1e = 1.0/3.0*(1.0-4.0/3.0*del);
537 G4double term2e = 2.0*nse+5.0*nve-nte;
538 G4double term3e = 2.0*nse-2.0*nve+nte;
540 G4double term1g = 1.0/3.0*(1.0-4.0/3.0*del);
541 G4double term2g = 2.0*nsg+5.0*nvg-ntg;
542 G4double term3g = 2.0*nsg-2.0*nvg+ntg;
544 G4double som00 = term1+(1.0-4.0/3.0*rho)*term2+eps*term3;
545 G4double som01 = Pmu*ksi*(cthetaE*(nve-term1e*term2e+kap*term3e)
546 +cthetaG*(nvg-term1g*term2g+kap*term3g));
void CheckAndFillDaughters()
void ClearDaughtersName()
void SetBR(G4double value)
G4MuonRadiativeDecayChannelWithSpin(const G4String &theParentName, G4double theBR)
const G4String & GetParentName() const
G4int PushProducts(G4DynamicParticle *aParticle)
G4ParticleDefinition * G4MT_parent
G4ParticleDefinition ** G4MT_daughters
static const G4double eps
static constexpr double rad
static constexpr double twopi
G4double GetTotalMomentum() const
G4MuonRadiativeDecayChannelWithSpin & operator=(const G4MuonRadiativeDecayChannelWithSpin &)
G4GLOB_DLL std::ostream G4cout
void SetNumberOfDaughters(G4int value)
HepLorentzVector & boost(double, double, double)
Hep3Vector & rotateUz(const Hep3Vector &)
G4ThreeVector parent_polarization
G4LorentzVector Get4Momentum() const
void Set4Momentum(const G4LorentzVector &momentum)
G4int GetVerboseLevel() const
G4double GetPDGMass() const
virtual G4DecayProducts * DecayIt(G4double)
virtual ~G4MuonRadiativeDecayChannelWithSpin()
void SetParent(const G4ParticleDefinition *particle_type)
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
static constexpr double fine_structure_const
G4String ** daughters_name
void CheckAndFillParent()