52 polxx(0.), polyy(0.), polzz(0.), polxz(0.), polzx(0.), polxy(0.),
53 polyx(0.), polyz(0.), polzy(0.),
54 re2(1.), diffXSFactor(1.), totalXSFactor(1.),
105 ((
sqr(gam) + 4.*gam - 1.)/
sqr(gam + 1.))/eps - 1.);
117 G4double helpVar2 = 0., helpVar1 = 0.;
121 helpVar1 = (gam*gam + 4.*gam + 1.)/
sqr(gam + 1.);
122 helpVar2 = -1./
sqr(gam + 1.);
124 unpXS = 0.125 * calcVector * sumEpsVector;
127 helpVar2 = 1./
sqr(gam + 1.);
128 helpVar1 = -(gam*gam + 4.*gam + 1.)/
sqr(gam + 1.);
129 calcVector =
G4ThreeVector(helpVar2, helpVar1, 0.5*(gam + 3.));
130 ISPxx = 0.25*(calcVector * sumEpsVector)/(gam - 1.);
132 helpVar1 = 1./
sqr(gam + 1.);
134 ISPyy = 0.125 * calcVector * sumEpsVector;
136 helpVar1 = 1./(gam - 1.);
137 helpVar2 = 1./
sqr(gam + 1.);
138 calcVector =
G4ThreeVector(-(gam*gam + 1.)*helpVar2,(gam*gam*(gam + 1.) + 7.*gam + 3.)*helpVar2, -(gam + 3.));
139 ISPzz = 0.125*helpVar1*(calcVector * sumEpsVector);
141 helpVar1 = std::sqrt(std::fabs(eps*(1. - eps)*2.*(gam + 1.) - 1.));
142 calcVector =
G4ThreeVector(-1./(gam*gam - 1.), 2./(gam - 1.), 0.);
143 ISPnd = 0.125*(calcVector * difEpsVector) * helpVar1;
162 G4double circ1 = 0., circ2 = 0., circ3 = 0.;
163 helpVar1 = 8.*
sqr(1. - eps)*
sqr(eps)*(gam - 1.)*
sqr(gam + 1.)/std::sqrt(gam*gam - 1.);
164 helpVar2 =
sqr(gam + 1.)*
sqr(eps)*(-2.*eps + 3.) - (gam*gam + 3.*gam + 2.)*
eps;
165 circ1 = helpVar2 +
gam;
167 circ2 = helpVar2 + 1.;
169 helpVar1 = std::sqrt(std::fabs(eps*(1. - eps)*2.*(gam + 1.) - 1.));
170 helpVar1 /= std::sqrt(gam*gam - 1.);
172 circ3 = 0.125*(calcVector * sumEpsVector)/(gam + 1.);
175 phi2.
setZ( circ2*pol1.
z() + circ1*pol0.
z() + circ3*(pol1.
x() + pol0.
x()));
176 phi3.
setZ(-circ1*pol1.
z() - circ2*pol0.
z() - circ3*(pol1.
x() + pol0.
x()));
181 G4double linearZero = 0.125*(calcVector * sumEpsVector)/
sqr(gam + 1.);
185 helpVar1 = std::sqrt(std::fabs(2.*(gam + 1.)*(1. - eps)*eps - 1.))/((gam + 1.)*eps*(1. -
eps));
186 helpVar2 = helpVar1*helpVar1;
190 G4double diagContrib = 0.125*helpVar2*(polxx + polyy -
polzz);
193 phi2.
setX(linearZero + diagContrib + nonDiagContrib);
197 nonDiagContrib = 0.125*helpVar1*(
polxz/eps -
polzx/(1. -
eps));
200 phi3.
setX(linearZero + diagContrib + nonDiagContrib);
204 helpVar1 = std::sqrt(gam*gam - 1.)*(2.*(gam + 1.)*eps*(1. -
eps) - 1.);
205 helpVar1 /= 8.*
sqr(1. - eps)*
sqr(eps)*
sqr(gam + 1.)*(gam - 1.);
206 helpVar2 = std::sqrt((gam*gam - 1.)*std::fabs(2.*(gam + 1.)*eps*(1. - eps) - 1.));
207 helpVar2 /= 8.*
sqr(1. - eps)*
sqr(eps)*
sqr(gam + 1.)*(gam - 1.);
212 contrib32 *=helpVar2;
215 contrib32 = -(eps*(gam + 1.) -
gam)*
polyz + (eps*(gam + 1.) - 1.)*
polzy;
216 contrib32 *=helpVar2;
248 G4double sqrtgam1 = std::sqrt(gam2 - 1.);
249 G4double logMEM = std::log(gam+sqrtgam1);
250 G4double unpME = (gam*(gam + 4.) + 1.)*logMEM;
251 unpME += -(gam + 3.)*sqrtgam1;
252 unpME /= 4.*(gam2 - 1.);
256 G4double longPart = (3+gam*(gam*(gam + 1.) + 7.))*logMEM;
257 longPart += - (5.+ gam*(3*gam + 4.))*sqrtgam1;
258 longPart /= 4.*
sqr(gam - 1.)*(gam + 1.);
259 G4double tranPart = -(5*gam + 1.)*logMEM;
260 tranPart += (gam + 5.)*sqrtgam1;
261 tranPart /= 4.*
sqr(gam - 1.)*(gam + 1.);
264 xs +=
polzz*longPart;
308 return 0.5*(1.-std::sqrt((y-1.)/(y+1.)));
312 return 0.5*(1.+std::sqrt((y-1.)/(y+1.)));
324 if (choice == 0)
return unpXS;
325 if (choice == 1)
return ISPxx;
326 if (choice == 2)
return ISPyy;
327 if (choice == 3)
return ISPzz;
328 if (choice == 4)
return ISPnd;