37#ifndef G4GeneralPhaseSpaceDecay_h
38#define G4GeneralPhaseSpaceDecay_h 1
53 G4int theNumberOfDaughters,
55 const G4String& theDaughterName2 =
"",
56 const G4String& theDaughterName3 =
"");
61 G4int theNumberOfDaughters,
63 const G4String& theDaughterName2 =
"",
64 const G4String& theDaughterName3 =
"");
69 G4int theNumberOfDaughters,
105 parentmass = aParentMass;
116 G4HadronicException(__FILE__, __LINE__,
"G4GeneralPhaseSpaceDecay::Pmx energy in cms > mass1+mass2");
118 G4double ppp = (e+p1+p2)*(e+p1-p2)*(e-p1+p2)*(e-p1-p2)/(4.0*e*e);
119 if (ppp>0)
return std::sqrt(ppp);
G4DecayProducts * OneBodyDecayIt()
void SetParentMass(const G4double aParentMass)
static G4double Pmx(G4double e, G4double p1, G4double p2)
virtual ~G4GeneralPhaseSpaceDecay()
G4DecayProducts * ThreeBodyDecayIt()
G4DecayProducts * ManyBodyDecayIt()
G4DecayProducts * TwoBodyDecayIt()
G4double GetParentMass() const
virtual G4DecayProducts * DecayIt(G4double mass=0.0)