62 G4double G4WentzelOKandVIxSection::ScreenRSquareElec[] = {0.0};
63 G4double G4WentzelOKandVIxSection::ScreenRSquare[] = {0.0};
64 G4double G4WentzelOKandVIxSection::FormFactor[] = {0.0};
79 lowEnergyLimit = 1.0*
eV;
87 if(0.0 == ScreenRSquare[0]) {
91 ScreenRSquare[0] = alpha2*a0*a0;
92 ScreenRSquareElec[0] = ScreenRSquare[0];
93 for(
G4int j=1; j<100; ++j) {
95 if(1 == j) { ScreenRSquare[j] = 0.5*alpha2*a0*a0; }
97 ScreenRSquare[j] = 0.5*(1 +
G4Exp(-j*j*0.001))*alpha2*x*x;
98 ScreenRSquareElec[j] = 0.5*alpha2*x*
x;
100 x = fNistManager->
GetA27(j);
101 FormFactor[j] = constn*x*
x;
105 elecXSRatio = factB = factD = formfactA = screenZ = 0.0;
106 cosTetMaxElec = cosTetMaxNuc = invbeta2 = kinFactor = gam0pcmp = pcmp2 = 1.0;
110 tkin = mom2 = momCM2 = factorA2 = mass = spin = chargeSquare = charge3 = 0.0;
129 tkin = mom2 = momCM2 = 0.0;
132 cosThetaMax = CosThetaLim;
134 *CLHEP::hbarc/CLHEP::fermi;
150 if(0.0 != spin) { spin = 0.5; }
153 charge3 = chargeSquare*q;
164 G4double cosTetMaxNuc2 = cosTetMaxNuc;
165 if(Z != targetZ || tkin != etag) {
168 if(targetZ > 99) { targetZ = 99; }
177 kinFactor = coeff*Z*chargeSquare*invbeta2/mom2;
180 screenZ = ScreenRSquare[targetZ]/mom2;
181 }
else if(mass >
MeV) {
182 screenZ =
std::min(Z*1.13,1.13 +3.76*Z*Z*invbeta2*alpha2*chargeSquare)*
183 ScreenRSquare[targetZ]/mom2;
186 screenZ =
std::min(Z*1.13,(1.13 +3.76*Z*Z
187 *invbeta2*alpha2*std::sqrt(tau/(tau + fG4pow->
Z23(targetZ)))))*
188 ScreenRSquareElec[targetZ]/mom2;
190 if(targetZ == 1 && cosTetMaxNuc2 < 0.0 && particle == theProton) {
193 formfactA = FormFactor[targetZ]*mom2;
196 ComputeMaxElectronScattering(cut);
198 return cosTetMaxNuc2;
207 if(cosTMax >= 1.0) {
return xsec; }
221 x = (1.0 - costm)/screenZ;
224 y = x2*(1.0 - 1.3333333*x + 3*
x2);
225 if(0.0 < factB) { y -= fb*x2*x*(0.6666667 -
x); }
228 xlog =
G4Log(1.0 + x);
230 if(0.0 < factB) { y -= fb*(x + x1 - 2*xlog); }
235 if(nwarnings < nwarnlimit) {
236 G4cout <<
"G4WentzelOKandVIxSection::ComputeTransportCrossSectionPerAtom scattering on e- <0"
239 <<
" e(MeV)= " << tkin <<
" p(MeV/c)= " << sqrt(mom2)
240 <<
" Z= " << targetZ <<
" "
242 G4cout <<
" 1-costm= " << 1.0-costm <<
" screenZ= " << screenZ
259 x = (1.0 - cosTMax)/screenZ;
262 y = x2*(1.0 - 1.3333333*x + 3*
x2);
263 if(0.0 < factB) { y -= fb*x2*x*(0.6666667 -
x); }
266 xlog =
G4Log(1.0 + x);
268 if(0.0 < factB) { y -= fb*(x + x1 - 2*xlog); }
273 if(nwarnings < nwarnlimit) {
274 G4cout <<
"G4WentzelOKandVIxSection::ComputeTransportCrossSectionPerAtom scattering on e- <0"
277 <<
" e(MeV)= " << tkin <<
" Z= " << targetZ <<
" "
279 G4cout <<
" formfactA= " << formfactA <<
" screenZ= " << screenZ
280 <<
" x= " <<
" x1= " << x1 <<
G4endl;
284 xSection += y*targetZ;
286 xSection *= kinFactor;
310 if(elecRatio > 0.0) {
313 cost1 =
std::max(cost1,cosTetMaxElec);
314 cost2 =
std::max(cost2,cosTetMaxElec);
317 if(cost1 < cost2) {
return v; }
326 G4double grej = (1. - z1*factB + factB1*targetZ*sqrt(z1*factB)*(2 - z1))/( (1.0 + z1*factD)*fm*fm );
332 if(cost > 1.0) { cost = 1.0; }
333 else if(cost < -1.0) { cost =-1.0; }
334 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
348 G4WentzelOKandVIxSection::ComputeMaxElectronScattering(
G4double cutEnergy)
354 (1.0 + 2.0*ratio*(tau + 1.0) + ratio*ratio);
360 if(particle == theElectron) { tmax *= 0.5; }
368 G4double mom22 = t1*(t1 + 2.0*mass);
369 G4double ctm = (mom2 + mom22 - mom21)*0.5/sqrt(mom2*mom22);
370 if(ctm < 1.0) { cosTetMaxElec = ctm; }
371 if(particle == theElectron && cosTetMaxElec < 0.0) { cosTetMaxElec = 0.0; }
void set(double x, double y, double z)
static G4Pow * GetInstance()
void SetupParticle(const G4ParticleDefinition *)
void SetTargetMass(G4double value)
static G4LossTableManager * Instance()
G4ThreeVector SampleSingleScattering(G4double CosThetaMin, G4double CosThetaMax, G4double elecRatio=0.0)
G4double FactorForAngleLimit() const
static G4NistManager * Instance()
G4double SetupTarget(G4int Z, G4double cut=DBL_MAX)
const G4String & GetParticleName() const
virtual ~G4WentzelOKandVIxSection()
G4double ComputeTransportCrossSectionPerAtom(G4double CosThetaMax)
G4GLOB_DLL std::ostream G4cout
G4double Z13(G4int Z) const
G4WentzelOKandVIxSection()
static G4Proton * Proton()
G4double G4Log(G4double x)
G4double G4Exp(G4double initial_x)
Exponential Function double precision.
static G4Positron * Positron()
G4double GetPDGMass() const
T max(const T t1, const T t2)
brief Return the largest of the two arguments
G4double GetAtomicMassAmu(const G4String &symb) const
T min(const T t1, const T t2)
brief Return the smallest of the two arguments
G4double Z23(G4int Z) const
G4double GetPDGSpin() const
static G4Electron * Electron()
G4double GetPDGCharge() const
void Initialise(const G4ParticleDefinition *, G4double CosThetaLim)