52G4MuonRadiativeDecayChannelWithSpin::
53G4MuonRadiativeDecayChannelWithSpin(
const G4String& theParentName,
58 if (theParentName ==
"mu+")
68 else if (theParentName ==
"mu-")
83 G4cout <<
"G4RadiativeMuonDecayChannel::G4RadiativeMuonDecayChannel():";
84 G4cout <<
" parent particle is not muon but ";
95G4MuonRadiativeDecayChannelWithSpin::
138 G4cout <<
"G4MuonRadiativeDecayChannelWithSpin::DecayIt()";
152 for (
G4int index=0; index<4; ++index)
155 sumofdaughtermass += daughtermass[index];
167 delete parentparticle;
174 G4double cthetaE, cthetaG, cthetaGE, phiE, phiG;
175 const std::size_t MAX_LOOP=10000;
177 for (std::size_t loop_counter1=0; loop_counter1<MAX_LOOP; ++loop_counter1)
185 for (std::size_t loop_counter2=0; loop_counter2<MAX_LOOP; ++loop_counter2)
200 if(std::fabs((xx*xx)+(yy*yy)+(zz*zz)-(x*x))>0.001)
207 G4double sthetaE = std::sqrt((xx*xx)+(yy*yy))/x;
228 if(std::fabs((xx*xx)+(yy*yy)+(zz*zz)-(y*y))>0.001)
235 G4double sthetaG = std::sqrt((xx*xx)+(yy*yy))/y;
252 cthetaGE = cthetaE*cthetaG+sthetaE*sthetaG*std::cos(phiE-phiG);
259 G4double term1 = x*((1.0-eps)*(1.0-eps))+2.0*eps;
260 G4double beta = std::sqrt( x*((1.0-eps)*(1.0-eps))*
261 (x*((1.0-eps)*(1.0-eps))+4.0*eps))/term1;
267 G4double Qsqr = (1.0-term1-term3+term0+0.5*term6)/((1.0-eps)*(1.0-eps));
271 if ( Qsqr>=0.0 && Qsqr<=1.0 )
break;
280 som0 = fron(Pmu,x,y,cthetaE,cthetaG,cthetaGE);
287 G4double E = EMMU/2.*(x*((1.-eps)*(1.-eps))+2.*eps);
288 G4double G = EMMU/2.*y*(1.-eps*eps);
290 if(E < EMASS) E = EMASS;
295 daughtermomentum[0] = std::sqrt(E*E - EMASS*EMASS);
297 G4double sthetaE = std::sqrt(1.-cthetaE*cthetaE);
316 daughtermomentum[1] = G;
318 G4double sthetaG = std::sqrt(1.-cthetaG*cthetaG);
343 +daughtermomentum[1]*direction1);
348 G4double sinthetan = std::sqrt((1.0-costhetan)*(1.0+costhetan));
353 G4ThreeVector direction2(sinthetan*cosphin,sinthetan*sinphin,costhetan);
365 p4.
boost(direction34.
x()*beta,direction34.
y()*beta,direction34.
z()*beta);
369 p4.
boost(direction34.
x()*beta,direction34.
y()*beta,direction34.
z()*beta);
382 G4cout <<
"G4MuonRadiativeDecayChannelWithSpin::DecayIt() -";
383 G4cout <<
" create decay products in rest frame " <<
G4endl;
419 G4double f_1s = 12.0*((y*y)*(1.0-y)+x*y*(2.0-3.0*y)
420 +2.0*(x*x)*(1.0-2.0*y)-2.0*(x*x*x));
421 G4double f0s = 6.0*(-x*y*(2.0-3.0*(y*y))
422 -2.0*(x*x)*(1.0-y-3.0*(y*y))+2.0*(x*x*x)*(1.0+2.0*y));
423 G4double f1s = 3.0*((x*x)*y*(2.0-3.0*y-3.0*(y*y))
424 -(x*x*x)*y*(4.0+3.0*y));
425 G4double f2s = 1.5*((x*x*x)*(y*y)*(2.0+y));
427 G4double f_1se = 12.0*(x*y*(1.0-y)+(x*x)*(2.0-3.0*y)
429 G4double f0se = 6.0*(-(x*x)*(2.0-y-2.0*(y*y))
430 +(x*x*x)*(2.0+3.0*y));
431 G4double f1se = -3.0*(x*x*x)*y*(2.0+y);
434 G4double f_1sg = 12.0*((y*y)*(1.0-y)+x*y*(1.0-2.0*y)
436 G4double f0sg = 6.0*(-x*(y*y)*(2.0-3.0*y)-(x*x)*y*(1.0-4.0*y)
438 G4double f1sg = 3.0*((x*x)*(y*y)*(1.0-3.0*y)
440 G4double f2sg = 1.5*(x*x*x)*(y*y*y);
442 G4double f_1v = 8.0*((y*y)*(3.0-2.0*y)+6.0*x*y*(1.0-y)
443 +2.0*(x*x)*(3.0-4.0*y)-4.0*(x*x*x));
444 G4double f0v = 8.0*(-x*y*(3.0-y-(y*y))-(x*x)*(3.0-y-4.0*(y*y))
445 +2.0*(x*x*x)*(1.0+2.0*y));
446 G4double f1v = 2.0*((x*x)*y*(6.0-5.0*y-2.0*(y*y))
447 -2.0*(x*x*x)*y*(4.0+3.0*y));
448 G4double f2v = 2.0*(x*x*x)*(y*y)*(2.0+y);
450 G4double f_1ve = 8.0*(x*y*(1.0-2.0*y)
451 +2.0*(x*x)*(1.0-3.0*y)-4.0*(x*x*x));
452 G4double f0ve = 4.0*(-(x*x)*(2.0-3.0*y-4.0*(y*y))
453 +2.0*(x*x*x)*(2.0+3.0*y));
454 G4double f1ve = -4.0*(x*x*x)*y*(2.0+y);
457 G4double f_1vg = 8.0*((y*y)*(1.0-2.0*y)+x*y*(1.0-4.0*y)
459 G4double f0vg = 4.0*(2.0*x*(y*y)*(1.0+y)-(x*x)*y*(1.0-4.0*y)
461 G4double f1vg = 2.0*((x*x)*(y*y)*(1.0-2.0*y)
463 G4double f2vg = 2.0*(x*x*x)*(y*y*y);
465 G4double f_1t = 8.0*((y*y)*(3.0-y)+3.0*x*y*(2.0-y)
466 +2.0*(x*x)*(3.0-2.0*y)-2.0*(x*x*x));
467 G4double f0t = 4.0*(-x*y*(6.0+(y*y))
468 -2.0*(x*x)*(3.0+y-3.0*(y*y))+2.0*(x*x*x)*(1.0+2.0*y));
469 G4double f1t = 2.0*((x*x)*y*(6.0-5.0*y+(y*y))
470 -(x*x*x)*y*(4.0+3.0*y));
471 G4double f2t = (x*x*x)*(y*y)*(2.0+y);
473 G4double f_1te = -8.0*(x*y*(1.0+3.0*y)+(x*x)*(2.0+3.0*y)
475 G4double f0te = 4.0*((x*x)*(2.0+3.0*y+4.0*(y*y))
476 +(x*x*x)*(2.0+3.0*y));
477 G4double f1te = -2.0*(x*x*x)*y*(2.0+y);
480 G4double f_1tg = -8.0*((y*y)*(1.0+y)+x*y+(x*x)*y);
481 G4double f0tg = 4.0*(x*(y*y)*(2.0-y)+(x*x)*y*(1.0+2.0*y)
483 G4double f1tg = -2.0*((x*x)*(y*y)*(1.0-y)+2.0*(x*x*x)*y);
486 G4double term = delta+2.0*(me*me)/((mu*mu)*(x*x));
489 G4double nss = term*f_1s+f0s+delta*f1s+(delta*delta)*f2s;
490 G4double nv = term*f_1v+f0v+delta*f1v+(delta*delta)*f2v;
491 G4double nt = term*f_1t+f0t+delta*f1t+(delta*delta)*f2t;
493 G4double nse = term*f_1se+f0se+delta*f1se+(delta*delta)*f2se;
494 G4double nve = term*f_1ve+f0ve+delta*f1ve+(delta*delta)*f2ve;
495 G4double nte = term*f_1te+f0te+delta*f1te+(delta*delta)*f2te;
497 G4double nsg = term*f_1sg+f0sg+delta*f1sg+(delta*delta)*f2sg;
498 G4double nvg = term*f_1vg+f0vg+delta*f1vg+(delta*delta)*f2vg;
499 G4double ntg = term*f_1tg+f0tg+delta*f1tg+(delta*delta)*f2tg;
505 G4double term1e = 1.0/3.0*(1.0-4.0/3.0*del);
506 G4double term2e = 2.0*nse+5.0*nve-nte;
507 G4double term3e = 2.0*nse-2.0*nve+nte;
509 G4double term1g = 1.0/3.0*(1.0-4.0/3.0*del);
510 G4double term2g = 2.0*nsg+5.0*nvg-ntg;
511 G4double term3g = 2.0*nsg-2.0*nvg+ntg;
513 G4double som00 = term1+(1.0-4.0/3.0*rho)*term2+eps*term3;
514 G4double som01 = Pmu*ksi*(cthetaE*(nve-term1e*term2e+kap*term3e)
515 +cthetaG*(nvg-term1g*term2g+kap*term3g));
518 som0 = fine_structure_const/8./(twopi*twopi*twopi)*som0;
G4GLOB_DLL std::ostream G4cout
Hep3Vector & rotateUz(const Hep3Vector &)
HepLorentzVector & boost(double, double, double)
G4int PushProducts(G4DynamicParticle *aParticle)
G4LorentzVector Get4Momentum() const
G4double GetTotalEnergy() const
void Set4Momentum(const G4LorentzVector &momentum)
G4double GetTotalMomentum() const
G4MuonRadiativeDecayChannelWithSpin & operator=(const G4MuonRadiativeDecayChannelWithSpin &)
G4MuonRadiativeDecayChannelWithSpin(const G4String &theParentName, G4double theBR)
virtual ~G4MuonRadiativeDecayChannelWithSpin()
virtual G4DecayProducts * DecayIt(G4double)
G4double GetPDGMass() const
G4ParticleDefinition ** G4MT_daughters
void CheckAndFillParent()
const G4String & GetParentName() const
void SetBR(G4double value)
G4String ** daughters_name
G4int GetVerboseLevel() const
void SetNumberOfDaughters(G4int value)
G4ParticleDefinition * G4MT_parent
void CheckAndFillDaughters()
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
void ClearDaughtersName()
G4ThreeVector parent_polarization
void SetParent(const G4ParticleDefinition *particle_type)