63 if (theParentName ==
"tau+") {
67 if ((theLeptonName==
"e-"||theLeptonName==
"e+")){
76 }
else if (theParentName ==
"tau-") {
80 if ((theLeptonName==
"e-"||theLeptonName==
"e+")){
92 G4cout <<
"G4TauLeptonicDecayChannel:: constructor :";
93 G4cout <<
" parent particle is not tau but ";
111 if (
this != &right) {
153 for (
G4int index=0; index<3; index++){
162 delete parentparticle;
168 G4double pmax = (parentmass*parentmass-daughtermass[0]*daughtermass[0])/2./parentmass;
175 e = std::sqrt(p*p + daughtermass[0]*daughtermass[0]);
176 }
while (r >
spectrum(p,e,parentmass,daughtermass[0]) );
180 daughtermomentum[0] = p;
181 G4double costheta, sintheta, phi, sinphi, cosphi;
183 sintheta = std::sqrt((1.0-costheta)*(1.0+costheta));
185 sinphi = std::sin(phi);
186 cosphi = std::cos(phi);
187 G4ThreeVector direction0(sintheta*cosphi,sintheta*sinphi,costheta);
195 G4double vmass = std::sqrt((energy2-daughtermomentum[0])*(energy2+daughtermomentum[0]));
196 G4double beta = -1.0*daughtermomentum[0]/energy2;
198 G4double sinthetan = std::sqrt((1.0-costhetan)*(1.0+costhetan));
203 G4ThreeVector direction1(sinthetan*cosphin,sinthetan*sinphin,costhetan);
212 p4.boost( direction0.x()*beta, direction0.y()*beta, direction0.z()*beta);
215 p4.boost( direction0.x()*beta, direction0.y()*beta, direction0.z()*beta);
226 G4cout <<
"G4TauLeptonicDecayChannel::DecayIt ";
227 G4cout <<
" create decay products in rest frame " <<
G4endl;
243 f1 = 3.0*e*(mtau*mtau+ml*ml)-4.0*mtau*e*e-2.0*mtau*ml*ml;
244 return p*(
f1)/(mtau*mtau*mtau*mtau)/(0.6);
void ClearDaughtersName()
virtual G4DecayProducts * DecayIt(G4double)
void SetBR(G4double value)
CLHEP::Hep3Vector G4ThreeVector
G4int PushProducts(G4DynamicParticle *aParticle)
virtual ~G4TauLeptonicDecayChannel()
G4ParticleDefinition * G4MT_parent
G4ParticleDefinition ** G4MT_daughters
G4TauLeptonicDecayChannel()
G4double GetTotalMomentum() const
G4GLOB_DLL std::ostream G4cout
void SetNumberOfDaughters(G4int value)
G4TauLeptonicDecayChannel & operator=(const G4TauLeptonicDecayChannel &)
G4LorentzVector Get4Momentum() const
void Set4Momentum(const G4LorentzVector &momentum)
G4int GetVerboseLevel() const
G4double GetPDGMass() const
void SetParent(const G4ParticleDefinition *particle_type)
void SetDaughter(G4int anIndex, const G4ParticleDefinition *particle_type)
static G4double spectrum(G4double momentum, G4double energy, G4double mtau, G4double ml)
G4String ** daughters_name
CLHEP::HepLorentzVector G4LorentzVector