68 G4double c, cosTheta, delta, cofA, signc = 1.,
a, power = 1./3.;
80 delta = std::sqrt(
a*
a+4.);
84 cofA = -signc*std::pow(delta, power);
86 cosTheta = cofA - 1./cofA;
89 G4double beta = std::sqrt(tau*(tau + 2.))/(tau + 1.);
91 cosTheta = (cosTheta + beta)/(1 + cosTheta*beta);
93 G4double sinTheta = std::sqrt((1 - cosTheta)*(1 + cosTheta));
107 G4double c, cosTheta, delta, cofA, signc = 1.,
a, power = 1./3.;
118 delta = std::sqrt(
a*
a+4.);
122 cofA = -signc*std::pow(delta, power);
124 cosTheta = cofA - 1./cofA;
127 beta = std::sqrt(1. - 1./gamma/gamma);
129 cosTheta = (cosTheta + beta)/(1 + cosTheta*beta);
131 theta = std::acos(cosTheta);
133 if( theta < 0. ) theta = 0.;
134 if( theta >
pi ) theta =
pi;
143 G4cout <<
"Angular Generator based on classical formula from" <<
G4endl;
144 G4cout <<
"J.D. Jackson, Classical Electrodynamics, Wiley, New York 1975"