55 if (theParentName ==
"tau+")
60 if ((theLeptonName==
"e-"||theLeptonName==
"e+"))
73 else if (theParentName ==
"tau-")
78 if ((theLeptonName==
"e-"||theLeptonName==
"e+"))
96 G4cout <<
"G4TauLeptonicDecayChannel:: constructor :";
97 G4cout <<
" parent particle is not tau but ";
166 const G4int N_DAUGHTER=3;
168 for (
G4int index=0; index<N_DAUGHTER; ++index)
179 delete parentparticle;
182 G4double daughtermomentum[N_DAUGHTER];
185 G4double pmax = (parentmass*parentmass
186 - daughtermass[0]*daughtermass[0])/2./parentmass;
189 const std::size_t MAX_LOOP=10000;
190 for (std::size_t loop_counter=0; loop_counter<MAX_LOOP; ++loop_counter)
195 e = std::sqrt(p*p + daughtermass[0]*daughtermass[0]);
196 if (r < spectrum(p,e,parentmass,daughtermass[0]) )
break;
201 daughtermomentum[0] = p;
202 G4double costheta, sintheta, phi, sinphi, cosphi;
204 sintheta = std::sqrt((1.0-costheta)*(1.0+costheta));
206 sinphi = std::sin(phi);
207 cosphi = std::cos(phi);
208 G4ThreeVector direction0(sintheta*cosphi,sintheta*sinphi,costheta);
216 G4double vmass = std::sqrt((energy2-daughtermomentum[0])
217 *(energy2+daughtermomentum[0]));
218 G4double beta = -1.0*daughtermomentum[0]/energy2;
220 G4double sinthetan = std::sqrt((1.0-costhetan)*(1.0+costhetan));
225 G4ThreeVector direction1(sinthetan*cosphin,sinthetan*sinphin,costhetan);
234 p4.
boost( direction0.
x()*beta, direction0.
y()*beta, direction0.
z()*beta);
237 p4.
boost( direction0.
x()*beta, direction0.
y()*beta, direction0.
z()*beta);
248 G4cout <<
"G4TauLeptonicDecayChannel::DecayIt ";
249 G4cout <<
" create decay products in rest frame " <<
G4endl;
263 f1 = 3.0*e*(mtau*mtau+ml*ml)-4.0*mtau*e*e-2.0*mtau*ml*ml;
264 return p*(f1)/(mtau*mtau*mtau*mtau)/(0.6);
G4GLOB_DLL std::ostream G4cout
HepLorentzVector & boost(double, double, double)
G4int PushProducts(G4DynamicParticle *aParticle)
G4LorentzVector Get4Momentum() const
void Set4Momentum(const G4LorentzVector &momentum)
G4double GetTotalMomentum() const
G4double GetPDGMass() const
G4TauLeptonicDecayChannel()
G4TauLeptonicDecayChannel & operator=(const G4TauLeptonicDecayChannel &)
virtual G4DecayProducts * DecayIt(G4double)
virtual ~G4TauLeptonicDecayChannel()
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)