51G4MuonDecayChannelWithSpin::
52G4MuonDecayChannelWithSpin(
const G4String& theParentName,
62G4MuonDecayChannelWithSpin::
120 for (
G4int index=0; index<3; ++index)
123 sumofdaughtermass += daughtermass[index];
134 delete parentparticle;
148 G4double W_mue = (EMMU*EMMU+EMASS*EMASS)/(2.*EMMU);
161 const std::size_t MAX_LOOP=10000;
162 for (std::size_t loop_count=0; loop_count<MAX_LOOP; ++loop_count)
168 x = x0 + rndm*(1.-x0);
174 F_IS = 1./6.*(-2.*x_squared+3.*x-x0_squared);
175 F_AS = 1./6.*std::sqrt(x_squared-x0_squared)
176 *(2.*x-2.+std::sqrt(1.-x0_squared));
178 G_IS = 2./9.*(michel_rho-0.75)*(4.*x_squared-3.*x-x0_squared);
179 G_IS = G_IS + michel_eta*(1.-x)*x0;
181 G_AS = 3.*(michel_xsi-1.)*(1.-x);
182 G_AS = G_AS+2.*(michel_xsi*michel_delta-0.75)
183 *(4.*x-4.+std::sqrt(1.-x0_squared));
184 G_AS = 1./9.*std::sqrt(x_squared-x0_squared)*G_AS;
191 const G4double omega = std::log(EMMU/EMASS);
194 G4double F = 6.*F_IS + R_IS/std::sqrt(x_squared-x0_squared);
198 G4double R_AS = F_theta(x,x0,omega);
204 G4double G = 6.*F_AS - R_AS/std::sqrt(x_squared-x0_squared);
206 FG = std::sqrt(x_squared-x0_squared)*F*(1.+(G/F)*ctheta);
210 G4Exception(
"G4MuonDecayChannelWithSpin::DecayIt()",
212 "Problem in Muon Decay: FG > FG_max");
218 if (FG >= rndm*FG_max)
break;
227 if(energy < EMASS) energy = EMASS;
232 daughtermomentum[0] = std::sqrt(energy*energy - EMASS*EMASS);
234 G4double stheta = std::sqrt(1.-ctheta*ctheta);
255 G4double energy2 = parentmass-energy;
256 G4double vmass = std::sqrt((energy2-daughtermomentum[0])
257 * (energy2+daughtermomentum[0]));
258 G4double beta = -1.0*daughtermomentum[0]/energy2;
260 G4double sinthetan = std::sqrt((1.0-costhetan)*(1.0+costhetan));
265 G4ThreeVector direction1(sinthetan*cosphin,sinthetan*sinphin,costhetan);
274 p4.
boost( direction0.
x()*beta, direction0.
y()*beta, direction0.
z()*beta);
277 p4.
boost( direction0.
x()*beta, direction0.
y()*beta, direction0.
z()*beta);
288 G4cout <<
"G4MuonDecayChannelWithSpin::DecayIt ";
289 G4cout <<
" create decay products in rest frame " <<
G4endl;
308 if(n_max<10)n_max=10;
312 for(
G4int n=1; n<=n_max; ++n)
314 L2 += std::pow(x,n)/(n*n);
319 r_c = 2.*L2-(
pi*
pi/3.)-2.;
320 r_c = r_c + omega * (1.5+2.*std::log((1.-x)/x));
321 r_c = r_c - std::log(x)*(2.*std::log(x)-1.);
322 r_c = r_c + (3.*std::log(x)-1.-1./x)*std::log(1.-x);
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
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
G4MuonDecayChannelWithSpin(const G4String &theParentName, G4double theBR)
virtual G4DecayProducts * DecayIt(G4double)
virtual ~G4MuonDecayChannelWithSpin()
G4MuonDecayChannelWithSpin & operator=(const G4MuonDecayChannelWithSpin &)
G4double GetPDGMass() const
G4ParticleDefinition ** G4MT_daughters
void CheckAndFillParent()
G4String ** daughters_name
G4int GetVerboseLevel() const
G4ParticleDefinition * G4MT_parent
void CheckAndFillDaughters()
void ClearDaughtersName()
G4ThreeVector parent_polarization