42 G4cout <<
"Gauss X-ray TR radiator EM process is called"
55 out <<
"Simulation of forward X-ray transition radiation generated by\n"
56 "relativistic charged particles crossing the interface between\n"
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;
129 G4double result, Qa, Qb, Q, Qn, aZa, bZb, aMa, bMb;
156 pre = -0.5 * aMa - sa * sa * ( 4./ Za / Za - Ma*Ma )/8.;
158 gre = -0.5 * bMb - sb * sb * ( 4./ Zb / Zb - Mb*Mb )/8.;
160 pim = sa * sa * Ma/2./Za - aZa;
162 gim = sb * sb * Mb/2./Zb - bZb;
170 G4complex Ha( Qa * std::cos(pim), Qa * std::sin(pim) );
172 G4complex Hb( Qb * std::cos(gim), Qb * std::sin(gim) );
194 G4complex H( Q * std::cos(him), Q * std::sin(him) );
195 G4complex Hn( Qn * std::cos(hnim), Qn * std::sin(hnim) );
207 G4complex F1 = ( 1.0 - Ha ) * ( 1.0 - Hb ) * nn / ( 1. - H );
211 G4complex F2 = ( 1.0 - Ha ) * ( 1.0 - Ha ) * Hb * ( 1. - Hn ) / ( 1. - H ) / ( 1. - H );
215 result = 2.0 * std::real(R);
std::complex< G4double > G4complex
G4GLOB_DLL std::ostream G4cout
void ProcessDescription(std::ostream &) const override
G4double SpectralXTRdEdx(G4double energy) override
G4double GetStackFactor(G4double energy, G4double gamma, G4double varAngle) override
G4GaussXTRadiator(G4LogicalVolume *anEnvelope, G4double, G4double, G4Material *, G4Material *, G4double, G4double, G4int, const G4String &processName="GaussXTRadiator")
G4double GetPlateLinearPhotoAbs(G4double)
G4double GetGasFormationZone(G4double, G4double, G4double)
G4complex OneInterfaceXTRdEdx(G4double energy, G4double gamma, G4double varAngle)
G4double GetPlateFormationZone(G4double, G4double, G4double)
G4double GetGasLinearPhotoAbs(G4double)