64 #ifdef G4MULTITHREADED
152 #ifdef G4MULTITHREADED
153 G4MUTEXLOCK(&G4WentzelOKandVIxSection::WentzelOKandVIxSectionMutex);
166 for(
G4int j=2; j<100; ++j) {
174 #ifdef G4MULTITHREADED
175 G4MUTEXUNLOCK(&G4WentzelOKandVIxSection::WentzelOKandVIxSectionMutex);
257 return cosTetMaxNuc2;
266 if(cosTMax >= 1.0) {
return xSection; }
276 xSection = x2*((1.0 - 1.3333333*x + 3*
x2) - fb*x*(0.6666667 - x));
280 xSection = xlog - x1 - fb*(x + x1 - 2*xlog);
286 G4cout <<
"G4WentzelOKandVIxSection::ComputeTransportCrossSectionPerAtom"
287 <<
" scattering on e- <0"
289 G4cout <<
"cross= " << xSection
290 <<
" e(MeV)= " <<
tkin <<
" p(MeV/c)= " << sqrt(
mom2)
293 G4cout <<
" 1-costm= " << 1.0-costm <<
" screenZ= " <<
screenZ
313 y = x2*((1.0 - 1.3333333*x + 3*
x2) - fb*x*(0.6666667 - x));
317 y = xlog - x1 - fb*(x + x1 - 2*xlog);
323 G4cout <<
"G4WentzelOKandVIxSection::ComputeTransportCrossSectionPerAtom"
324 <<
" scattering on nucleus <0"
362 if(elecRatio > 0.0) {
363 if(rndmEngineMod->
flat() <= elecRatio) {
380 fm =
G4Exp(-2*formf*z1);
394 *fm*fm/(1.0 + z1*
factD);
401 if(cost > 1.0) { cost = 1.0; }
402 else if(cost < -1.0) { cost =-1.0; }
403 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
406 temp.
set(sint*cos(phi),sint*sin(phi),cost);
421 (1.0 + 2.0*ratio*(tau + 1.0) + ratio*
ratio);