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)
167 delete parentparticle;
172 G4double cthetaE, cthetaG, cthetaGE, phiE, phiG;
173 const std::size_t MAX_LOOP=10000;
175 for (std::size_t loop_counter1=0; loop_counter1<MAX_LOOP; ++loop_counter1)
177 for (std::size_t loop_counter2=0; loop_counter2<MAX_LOOP; ++loop_counter2)
192 if(std::fabs((xx*xx)+(yy*yy)+(zz*zz)-(x*x))>0.001)
199 G4double sthetaE = std::sqrt((xx*xx)+(yy*yy))/x;
220 if(std::fabs((xx*xx)+(yy*yy)+(zz*zz)-(y*y))>0.001)
227 G4double sthetaG = std::sqrt((xx*xx)+(yy*yy))/y;
244 cthetaGE = cthetaE*cthetaG+sthetaE*sthetaG*std::cos(phiE-phiG);
251 G4double term1 = x*((1.0-eps)*(1.0-eps))+2.0*eps;
252 G4double beta = std::sqrt( x*((1.0-eps)*(1.0-eps))*
253 (x*((1.0-eps)*(1.0-eps))+4.0*eps))/term1;
259 G4double Qsqr = (1.0-term1-term3+term0+0.5*term6)/((1.0-eps)*(1.0-eps));
263 if ( Qsqr>=0.0 && Qsqr<=1.0 )
break;
272 som0 = fron(Pmu,x,y,cthetaE,cthetaG,cthetaGE);
279 G4double E = EMMU/2.*(x*((1.-eps)*(1.-eps))+2.*eps);
280 G4double G = EMMU/2.*y*(1.-eps*eps);
282 if(E < EMASS) E = EMASS;
287 daughtermomentum[0] = std::sqrt(E*E - EMASS*EMASS);
289 G4double sthetaE = std::sqrt(1.-cthetaE*cthetaE);
308 daughtermomentum[1] = G;
310 G4double sthetaG = std::sqrt(1.-cthetaG*cthetaG);
335 +daughtermomentum[1]*direction1);
340 G4double sinthetan = std::sqrt((1.0-costhetan)*(1.0+costhetan));
345 G4ThreeVector direction2(sinthetan*cosphin,sinthetan*sinphin,costhetan);
357 p4.
boost(direction34.
x()*beta,direction34.
y()*beta,direction34.
z()*beta);
361 p4.
boost(direction34.
x()*beta,direction34.
y()*beta,direction34.
z()*beta);
374 G4cout <<
"G4MuonRadiativeDecayChannelWithSpin::DecayIt() -";
375 G4cout <<
" create decay products in rest frame " <<
G4endl;
411 G4double f_1s = 12.0*((y*y)*(1.0-y)+x*y*(2.0-3.0*y)
412 +2.0*(x*x)*(1.0-2.0*y)-2.0*(x*x*x));
413 G4double f0s = 6.0*(-x*y*(2.0-3.0*(y*y))
414 -2.0*(x*x)*(1.0-y-3.0*(y*y))+2.0*(x*x*x)*(1.0+2.0*y));
415 G4double f1s = 3.0*((x*x)*y*(2.0-3.0*y-3.0*(y*y))
416 -(x*x*x)*y*(4.0+3.0*y));
417 G4double f2s = 1.5*((x*x*x)*(y*y)*(2.0+y));
419 G4double f_1se = 12.0*(x*y*(1.0-y)+(x*x)*(2.0-3.0*y)
421 G4double f0se = 6.0*(-(x*x)*(2.0-y-2.0*(y*y))
422 +(x*x*x)*(2.0+3.0*y));
423 G4double f1se = -3.0*(x*x*x)*y*(2.0+y);
426 G4double f_1sg = 12.0*((y*y)*(1.0-y)+x*y*(1.0-2.0*y)
428 G4double f0sg = 6.0*(-x*(y*y)*(2.0-3.0*y)-(x*x)*y*(1.0-4.0*y)
430 G4double f1sg = 3.0*((x*x)*(y*y)*(1.0-3.0*y)
432 G4double f2sg = 1.5*(x*x*x)*(y*y*y);
434 G4double f_1v = 8.0*((y*y)*(3.0-2.0*y)+6.0*x*y*(1.0-y)
435 +2.0*(x*x)*(3.0-4.0*y)-4.0*(x*x*x));
436 G4double f0v = 8.0*(-x*y*(3.0-y-(y*y))-(x*x)*(3.0-y-4.0*(y*y))
437 +2.0*(x*x*x)*(1.0+2.0*y));
438 G4double f1v = 2.0*((x*x)*y*(6.0-5.0*y-2.0*(y*y))
439 -2.0*(x*x*x)*y*(4.0+3.0*y));
440 G4double f2v = 2.0*(x*x*x)*(y*y)*(2.0+y);
442 G4double f_1ve = 8.0*(x*y*(1.0-2.0*y)
443 +2.0*(x*x)*(1.0-3.0*y)-4.0*(x*x*x));
444 G4double f0ve = 4.0*(-(x*x)*(2.0-3.0*y-4.0*(y*y))
445 +2.0*(x*x*x)*(2.0+3.0*y));
446 G4double f1ve = -4.0*(x*x*x)*y*(2.0+y);
449 G4double f_1vg = 8.0*((y*y)*(1.0-2.0*y)+x*y*(1.0-4.0*y)
451 G4double f0vg = 4.0*(2.0*x*(y*y)*(1.0+y)-(x*x)*y*(1.0-4.0*y)
453 G4double f1vg = 2.0*((x*x)*(y*y)*(1.0-2.0*y)
455 G4double f2vg = 2.0*(x*x*x)*(y*y*y);
457 G4double f_1t = 8.0*((y*y)*(3.0-y)+3.0*x*y*(2.0-y)
458 +2.0*(x*x)*(3.0-2.0*y)-2.0*(x*x*x));
459 G4double f0t = 4.0*(-x*y*(6.0+(y*y))
460 -2.0*(x*x)*(3.0+y-3.0*(y*y))+2.0*(x*x*x)*(1.0+2.0*y));
461 G4double f1t = 2.0*((x*x)*y*(6.0-5.0*y+(y*y))
462 -(x*x*x)*y*(4.0+3.0*y));
463 G4double f2t = (x*x*x)*(y*y)*(2.0+y);
465 G4double f_1te = -8.0*(x*y*(1.0+3.0*y)+(x*x)*(2.0+3.0*y)
467 G4double f0te = 4.0*((x*x)*(2.0+3.0*y+4.0*(y*y))
468 +(x*x*x)*(2.0+3.0*y));
469 G4double f1te = -2.0*(x*x*x)*y*(2.0+y);
472 G4double f_1tg = -8.0*((y*y)*(1.0+y)+x*y+(x*x)*y);
473 G4double f0tg = 4.0*(x*(y*y)*(2.0-y)+(x*x)*y*(1.0+2.0*y)
475 G4double f1tg = -2.0*((x*x)*(y*y)*(1.0-y)+2.0*(x*x*x)*y);
478 G4double term = delta+2.0*(me*me)/((mu*mu)*(x*x));
481 G4double nss = term*f_1s+f0s+delta*f1s+(delta*delta)*f2s;
482 G4double nv = term*f_1v+f0v+delta*f1v+(delta*delta)*f2v;
483 G4double nt = term*f_1t+f0t+delta*f1t+(delta*delta)*f2t;
485 G4double nse = term*f_1se+f0se+delta*f1se+(delta*delta)*f2se;
486 G4double nve = term*f_1ve+f0ve+delta*f1ve+(delta*delta)*f2ve;
487 G4double nte = term*f_1te+f0te+delta*f1te+(delta*delta)*f2te;
489 G4double nsg = term*f_1sg+f0sg+delta*f1sg+(delta*delta)*f2sg;
490 G4double nvg = term*f_1vg+f0vg+delta*f1vg+(delta*delta)*f2vg;
491 G4double ntg = term*f_1tg+f0tg+delta*f1tg+(delta*delta)*f2tg;
497 G4double term1e = 1.0/3.0*(1.0-4.0/3.0*del);
498 G4double term2e = 2.0*nse+5.0*nve-nte;
499 G4double term3e = 2.0*nse-2.0*nve+nte;
501 G4double term1g = 1.0/3.0*(1.0-4.0/3.0*del);
502 G4double term2g = 2.0*nsg+5.0*nvg-ntg;
503 G4double term3g = 2.0*nsg-2.0*nvg+ntg;
505 G4double som00 = term1+(1.0-4.0/3.0*rho)*term2+eps*term3;
506 G4double som01 = Pmu*ksi*(cthetaE*(nve-term1e*term2e+kap*term3e)
507 +cthetaG*(nvg-term1g*term2g+kap*term3g));
510 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)