65 G4double result, sum = 0., tmp, cof1, cof2, cofMin, cofPHC, theta2, theta2k;
71 sigma = 0.5 * (aMa + bMb);
75 cofPHC = 4 * pi * hbarc;
94 G4cout << cof1 <<
" " << cof2 <<
" " << cofMin <<
G4endl;
95 G4cout <<
"kMin = " << kMin <<
"; kMax = " << kMax <<
G4endl;
97 for(k = kMin; k <= kMax; ++k)
100 result = (k - cof1) * (k - cof1) * (k + cof2) * (k + cof2);
101 if(k == kMin && kMin ==
G4int(cofMin))
104 0.5 * std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result;
108 sum += std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result;
110 theta2k = std::sqrt(theta2 * std::abs(k - cofMin));
114 G4cout << k <<
" " << theta2k <<
" "
115 << std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result
119 result = 2 * (cof1 + cof2) * (cof1 + cof2) * sum / energy;
G4RegularXTRadiator(G4LogicalVolume *anEnvelope, G4Material *, G4Material *, G4double, G4double, G4int, const G4String &processName="XTRegularRadiator")