67 G4double result, sum = 0., tmp, cof1, cof2, cofMin, cofPHC, theta2, theta2k;
70 cofPHC = 4. * pi * hbarc;
89 G4cout << cof1 <<
" " << cof2 <<
" " << cofMin <<
G4endl;
90 G4cout <<
"kMin = " << kMin <<
"; kMax = " << kMax <<
G4endl;
92 for(k = kMin; k <= kMax; ++k)
95 result = (k - cof1) * (k - cof1) * (k + cof2) * (k + cof2);
96 if(k == kMin && kMin ==
G4int(cofMin))
99 0.5 * std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result;
103 sum += std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result;
105 theta2k = std::sqrt(theta2 * std::abs(k - cofMin));
109 G4cout << k <<
" " << theta2k <<
" "
110 << std::sin(tmp) * std::sin(tmp) * std::abs(k - cofMin) / result
114 result = 4. * (cof1 + cof2) * (cof1 + cof2) * sum / energy;
145 G4complex ordernn = ( order1 + order2 )*nn;
152 G4complex F1 = ( 1.0 - Ha ) * ( 1.0 - Hb ) * nn / ( 1. - H );
154 G4complex F2 = ( 1.0 - Ha ) * ( 1.0 - Ha ) * Hb * ( 1. - Hn ) / ( 1. - H ) / ( 1. - H );
158 result = 2.0 * std::real(R);
G4GaussXTRadiator(G4LogicalVolume *anEnvelope, G4double, G4double, G4Material *, G4Material *, G4double, G4double, G4int, const G4String &processName="GaussXTRadiator")