51 : gammaPol2(false), electronPol3(false)
57 re2 = classic_electr_radius * classic_electr_radius *
sqr(4*pi/hbarc);
60 phi0 = 0.; polXS = 0.; unpXS = 0.;
63 polxx = polyy = polzz = polxz = polzx = polyz = polzy = polxy = polyx = 0.;
78 G4double cosT = 1. - (1./eps - 1.)/X;
79 if(cosT > 1.+1.e-8) cosT = 1.;
80 if(cosT < -1.-1.e-8) cosT = -1.;
84 if(sinT2 > 1. + 1.e-8) sinT2 = 1.;
85 if(sinT2 < 0.) sinT2 = 0.;
90 DefineCoefficients(pol0,pol1);
91 diffXSFactor = re2/(4.*X);
94 unpXS = (eps2 + 1. - eps*sinT2)/(2.*eps);
96 polXS = -sinT2*pol0.
x() + (1. - eps)*sinT*polzx + ((eps2 - 1.)/eps)*cosT*polzz;
103 G4double PHI21 = -sinT2 + 0.5*(cos2T + 3.)*pol0.
x() - ((1. - eps)/eps)*sinT*polzx;
105 G4double PHI22 = cosT*pol0.
y() + ((1. - eps)/(2.*eps))*sinT*polzy;
106 G4double PHI23 = ((eps2 + 1.)/eps)*cosT*pol0.
z() - ((1. - eps)/eps)*(eps*cosT2 + 1.)*pol1.
z();
107 PHI23 += 0.5*(1. - eps)*sin2T*pol1.
x();
108 PHI23 += (eps - 1.)*(-sinT2*polxz + sinT*polyy - 0.5*sin2T*polxx);
113 G4double PHI32 = -sinT2*polxy + ((1. - eps)/eps)*sinT*polyz + 0.5*(cos2T + 3.)*pol1.
y();
116 G4double PHI31 = 0., PHI31add = 0., PHI33 = 0., PHI33add = 0.;
118 if ((1. - eps) > 1.e-12){
119 G4double helpVar = std::sqrt(eps2 - 2.*cosT*eps + 1.);
121 PHI31 = (1. - eps)*(1. + cosT)*sinT*pol0.
z();
122 PHI31 += (-eps*cosT3 + eps*cosT2 + (eps - 2.)*cosT + eps)*pol1.
x();
123 PHI31 += -(eps*cosT2 - eps*cosT + cosT + 1.)*sinT*pol1.
z();
126 PHI31add = -eps*
sqr(1. - cosT)*(1. + cosT)*polxx;
127 PHI31add += (1. - eps)*sinT2*polyy;
128 PHI31add += -(-eps2 + cosT*(cosT*eps - eps + 1.)*eps + eps - 1.)*sinT*polxz/eps;
129 PHI31add /= 2.*helpVar;
131 PHI33 = ((1. - eps)/eps)*(-eps*cosT2 + eps*(eps + 1.)*cosT - 1.)*pol0.
z();
132 PHI33 += -(eps*cosT2 + (1. - eps)*eps*cosT + 1.)*sinT*pol1.
x();
133 PHI33 += -(-eps2*cosT3 + eps*(eps2 - eps + 1.)*cosT2 - cosT + eps2)*pol1.
z()/eps;
134 PHI33 /= -2.*helpVar;
136 PHI33add = (eps*(eps - cosT - 1.)*cosT + 1.)*sinT*polxx;
137 PHI33add += -(-eps2 + cosT*eps + eps - 1.)*sinT2*polxz;
138 PHI33add += (eps - 1.)*(cosT - eps)*sinT*polyy;
139 PHI33add /= -2.*helpVar;
141 PHI31 = -pol1.
z() - (X - 1.)*std::sqrt(1. - eps)*pol1.
x()/std::sqrt(2.*X);
142 PHI31add = -(-X*X*pol1.
z() - 2.*X*(2.*pol0.
z() - pol1.
z()) - (4.*pol0.
x() + 5.)*pol1.
z())*(1. - eps)/(4.*X);
144 PHI33 = pol1.
x() - (X - 1.)*std::sqrt(1. - eps)*pol1.
z()/std::sqrt(2.*X);
145 PHI33add = -(X*X - 2.*X + 4.*pol0.
x() + 5.)*(1. - eps)*pol1.
x()/(4.*X);
147 phi3 =
G4ThreeVector(PHI31 + PHI31add, PHI32, PHI33 + PHI33add);
150 unpXS *= diffXSFactor;
151 polXS *= diffXSFactor;
152 phi0 *= diffXSFactor;
153 phi2 *= diffXSFactor;
154 phi3 *= diffXSFactor;
198 G4double unit = Z*pi*classic_electr_radius
199 * classic_electr_radius ;
203 G4double xs_0 = ((k0 - 2.)*k0 -2.)*
sqr(k1)*std::log(k1) + 2.*k0*(k0*(k0 + 1.)*(k0 + 8.) + 2.);
204 G4double xs_pol = (k0 + 1.)*
sqr(k1)*std::log(k1) - 2.*k0*(5.*
sqr(k0) + 4.*k0 + 1.);
206 return pre*(xs_0/k0 + pol0.
p3()*pol1.
z()*xs_pol);
217 return 1./phi0 * phi2;
226 return 1./phi0 * phi3;
232void G4PolarizedComptonCrossSection::DefineCoefficients(
const G4StokesVector & pol0,
235 polxx=pol0.
x()*pol1.
x();
236 polyy=pol0.
y()*pol1.
y();
237 polzz=pol0.
z()*pol1.
z();
239 polxz=pol0.
x()*pol1.
z();
240 polzx=pol0.
z()*pol1.
x();
242 polyz=pol0.
y()*pol1.
z();
243 polzy=pol0.
z()*pol1.
y();
245 polxy=pol0.
x()*pol1.
y();
246 polyx=pol0.
y()*pol1.
x();
CLHEP::Hep3Vector G4ThreeVector
G4StokesVector GetPol2() override
virtual ~G4PolarizedComptonCrossSection()
G4double TotalXSection(G4double xmin, G4double xmax, G4double y, const G4StokesVector &pol0, const G4StokesVector &pol1) override
G4StokesVector GetPol3() override
G4double XSection(const G4StokesVector &pol2, const G4StokesVector &pol3) override
G4PolarizedComptonCrossSection()
virtual void Initialize(G4double eps, G4double X, G4double phi, const G4StokesVector &p0, const G4StokesVector &p1, G4int flag=0) override
static const G4StokesVector ZERO
void SetYmin(G4double ymin)