55 if (theParentName ==
"mu+")
64 else if (theParentName ==
"mu-")
78 G4cout <<
"G4MuonDecayChannel:: constructor :";
79 G4cout <<
" parent particle is not muon but ";
141 const G4int N_DAUGHTER=3;
146 for (
G4int index=0; index<N_DAUGHTER; ++index)
149 sumofdaughtermass += daughtermass[index];
158 delete parentparticle;
161 G4double daughtermomentum[N_DAUGHTER];
163 G4double xmax = (1.0+daughtermass[0]*daughtermass[0]/parentmass/parentmass);
169 G4double EMax=parentmass/2-daughtermass[0];
171 const std::size_t MAX_LOOP=1000;
173 for (std::size_t loop1=0; loop1<MAX_LOOP; ++loop1)
176 for (std::size_t loop2 =0; loop2<MAX_LOOP; ++loop2)
180 if (gam <= x*(1.-x))
break;
184 if ( Ene >= (1.-Ee))
break;
191 G4double costheta,sintheta,rphi,rtheta,rpsi;
192 costheta= 1.-2./Ee-2./Ene+2./Ene/Ee;
193 sintheta=std::sqrt(1.-costheta*costheta);
201 rot.
set(rphi,rtheta,rpsi);
204 daughtermomentum[0]=std::sqrt(Ee*Ee*EMax*EMax+2.0*Ee*EMax * daughtermass[0]);
216 daughtermomentum[1] = std::sqrt(Ene*Ene*EMax*EMax
217 +2.0*Ene*EMax*daughtermass[1]);
228 daughtermomentum[2] = std::sqrt(Enm*Enm*EMax*EMax
229 +2.0*Enm*EMax*daughtermass[2]);
230 G4ThreeVector direction2(-Ene/Enm*sintheta,0,-Ee/Enm-Ene/Enm*costheta);
242 G4cout <<
"G4MuonDecayChannel::DecayIt()";
243 G4cout <<
" create decay products in rest frame " <<
G4endl;
G4GLOB_DLL std::ostream G4cout
HepRotation & set(const Hep3Vector &axis, double delta)
G4int PushProducts(G4DynamicParticle *aParticle)
virtual ~G4MuonDecayChannel()
virtual G4DecayProducts * DecayIt(G4double)
G4MuonDecayChannel & operator=(const G4MuonDecayChannel &)
G4double GetPDGMass() const
G4ParticleDefinition ** G4MT_daughters
void CheckAndFillParent()
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()
void SetParent(const G4ParticleDefinition *particle_type)