44 : loopMax(100), mDaughter0(dMass0), mDaughter1(dMass1),
45 mDaughter2(dMass2), pDaughter0(0.), pDaughter1(0.), pDaughter2(0.)
80 energy = (1.-rndm1)*availableE;
86 energy = (rndm1-rndm2)*availableE;
90 }
while (momentummax > momentumsum - momentummax);
99 std::vector<G4ThreeVector> pVect;
105 G4double sintheta = std::sqrt((1.0-costheta)*(1.0+costheta));
109 G4ThreeVector direction0(sintheta*cosphi, sintheta*sinphi, costheta);
113 G4double sinthetan = std::sqrt((1.0-costhetan)*(1.0+costhetan));
118 direction2.
setX(sinthetan*cosphin*costheta*cosphi -
119 sinthetan*sinphin*sinphi + costhetan*sintheta*cosphi);
120 direction2.
setY(sinthetan*cosphin*costheta*sinphi +
121 sinthetan*sinphin*cosphi + costhetan*sintheta*sinphi);
122 direction2.
setZ(-sinthetan*cosphin*sintheta + costhetan*costheta);
131 <<
" or more loops in momentum magnitude calculation " <<
G4endl;
static constexpr double twopi
G4GLOB_DLL std::ostream G4cerr
std::vector< G4ThreeVector > GetThreeBodyMomenta()
G4bool CalculateMomentumMagnitudes()
static constexpr double keV
G4double energy(const ThreeVector &p, const G4double m)
T max(const T t1, const T t2)
brief Return the largest of the two arguments