36#ifndef G4GeneralPhaseSpaceDecay_h
37#define G4GeneralPhaseSpaceDecay_h 1
52 G4int theNumberOfDaughters,
54 const G4String& theDaughterName2 =
"",
55 const G4String& theDaughterName3 =
"");
60 G4int theNumberOfDaughters,
62 const G4String& theDaughterName2 =
"",
63 const G4String& theDaughterName3 =
"");
68 G4int theNumberOfDaughters,
77 G4int theNumberOfDaughters,
114 parentmass = aParentMass;
125 throw G4HadronicException(__FILE__, __LINE__,
"G4GeneralPhaseSpaceDecay::Pmx energy in cms < mass1+mass2");
127 G4double ppp = (e+p1+p2)*(e+p1-p2)*(e-p1+p2)*(e-p1-p2)/(4.0*e*e);
128 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)