48G4DalitzDecayChannel(
const G4String& theParentName,
124 G4double xmin = 2.0*std::log(2.0*leptonmass);
125 G4double xmax = 2.0*std::log(parentmass);
128 const std::size_t MAX_LOOP = 10000;
129 for (std::size_t loop_counter=0; loop_counter<MAX_LOOP; ++loop_counter)
134 w1 = (1.0-4.0*leptonmass*leptonmass/t);
137 w2 = ( 1.0 + 2.0*leptonmass*leptonmass/t );
138 w3 = ( 1.0 - t/parentmass/parentmass );
140 ww = w3 * w2 * std::sqrt(w1);
153 G4double sintheta = std::sqrt((1.0 - costheta)*(1.0 + costheta));
156 sintheta*std::sin(phi),
164 G4double beta = Pgamma/(parentmass-Pgamma);
169 G4double Elepton = std::sqrt(Plepton*Plepton + leptonmass*leptonmass );
171 sintheta = std::sqrt((1.0 - costheta)*(1.0 + costheta));
174 sintheta*std::sin(phi),
179 ldirection, Elepton-leptonmass );
182 -1.0*ldirection, Elepton-leptonmass );
185 p4.
boost( -1.0*gdirection.
x()*beta,
186 -1.0*gdirection.
y()*beta,
187 -1.0*gdirection.
z()*beta);
190 p4.
boost( -1.0*gdirection.
x()*beta,
191 -1.0*gdirection.
y()*beta,
192 -1.0*gdirection.
z()*beta);
197 delete parentparticle;
205 G4cout <<
"G4DalitzDecayChannel::DecayIt ";
206 G4cout <<
" create decay products in rest frame " <<
G4endl;
G4GLOB_DLL std::ostream G4cout
HepLorentzVector & boost(double, double, double)
G4DalitzDecayChannel(const G4String &theParentName, G4double theBR, const G4String &theLeptonName, const G4String &theAntiLeptonName)
G4DalitzDecayChannel & operator=(const G4DalitzDecayChannel &)
virtual ~G4DalitzDecayChannel()
virtual G4DecayProducts * DecayIt(G4double)
G4int PushProducts(G4DynamicParticle *aParticle)
G4LorentzVector Get4Momentum() const
void Set4Momentum(const G4LorentzVector &momentum)
G4double GetPDGMass() const
static G4double Pmx(G4double e, G4double p1, G4double p2)
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)