63 G4double result, sum = 0., tmp, cof1, cof2, cofMin, cofPHC, theta2, theta2k;
66 cofPHC = 4. * pi * hbarc;
85 G4cout << cof1 <<
" " << cof2 <<
" " << cofMin <<
G4endl;
86 G4cout <<
"kMin = " << kMin <<
"; kMax = " << kMax <<
G4endl;
88 for(k = kMin; k <= kMax; ++k)
91 result = (k - cof1) * (k - cof1) * (k + cof2) * (k + cof2);
92 if(k == kMin && kMin ==
G4int(cofMin))
95 0.5 * std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result;
99 sum += std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result;
101 theta2k = std::sqrt(theta2 * std::abs(k - cofMin));
105 G4cout << k <<
" " << theta2k <<
" "
106 << std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result
110 result = 4. * (cof1 + cof2) * (cof1 + cof2) * sum / energy;
126 G4double result, Qa, Qb, Q, aZa, bZb, aMa, bMb,
D, sigma;
133 Qa = std::exp(-0.5 * aMa);
134 Qb = std::exp(-0.5 * bMb);
137 G4complex Ha(Qa * std::cos(aZa), -Qa * std::sin(aZa));
138 G4complex Hb(Qb * std::cos(bZb), -Qb * std::sin(bZb));
141 D = 1.0 / ((1 - Q) * (1 - Q) +
142 4 * Q * std::sin(0.5 * (aZa + bZb)) * std::sin(0.5 * (aZa + bZb)));
145 G4complex F2 = (1.0 - Ha) * (1.0 - Ha) * Hb * (1.0 - Hs) * (1.0 - Hs) *
148 result = 2.0 * std::real(R);