78 twoln10(2.0*log(10.0)),
90 SetParticle(theElectron);
118 isInitialised =
true;
147 void G4BetheBlochModel::SetupParameters()
153 corrFactor = chargeSquare;
157 magMoment2 = magmom*magmom - 1.0;
161 if(spin == 0.0 && mass <
GeV) {x = 0.736*
GeV;}
162 else if(mass >
GeV) {
167 tlimit = 2.0/formfact;
181 G4double maxEnergy = min(tmax,maxKinEnergy);
182 if(cutEnergy < maxEnergy) {
184 G4double totEnergy = kineticEnergy + mass;
185 G4double energy2 = totEnergy*totEnergy;
186 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*mass)/energy2;
188 cross = 1.0/cutEnergy - 1.0/maxEnergy
189 - beta2*log(maxEnergy/cutEnergy)/tmax;
192 if( 0.5 == spin ) { cross += 0.5*(maxEnergy - cutEnergy)/energy2; }
219 (p,kineticEnergy,cutEnergy,maxEnergy);
234 (p,kineticEnergy,cutEnergy,maxEnergy);
246 G4double cutEnergy = std::min(cut,tmax);
259 - (1.0 + cutEnergy/tmax)*beta2;
262 G4double del = 0.5*cutEnergy/(kineticEnergy + mass);
283 if (dedx < 0.0) { dedx = 0.0; }
304 if(e < preKinEnergy*0.75) { e = preKinEnergy*0.75; }
310 G4double elossnew = eloss*qfactor + highOrder;
311 if(elossnew > preKinEnergy) { elossnew = preKinEnergy; }
312 else if(elossnew < eloss*0.5) { elossnew = eloss*0.5; }
331 G4double maxKinEnergy = std::min(maxEnergy,tmax);
332 if(minKinEnergy >= maxKinEnergy) {
return; }
334 G4double totEnergy = kineticEnergy + mass;
335 G4double etot2 = totEnergy*totEnergy;
336 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*mass)/etot2;
341 if( 0.5 == spin ) { fmax += 0.5*maxKinEnergy*maxKinEnergy/etot2; }
346 deltaKinEnergy = minKinEnergy*maxKinEnergy
347 /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
349 f = 1.0 - beta2*deltaKinEnergy/tmax;
351 f1 = 0.5*deltaKinEnergy*deltaKinEnergy/etot2;
360 G4double x = formfact*deltaKinEnergy;
367 grej *= (1.0 + magMoment2*(x2 - f1/
f)/(1.0 + x2));
370 G4cout <<
"### G4BetheBlochModel WARNING: grej= " << grej
372 <<
" Ekin(MeV)= " << kineticEnergy
373 <<
" delEkin(MeV)= " << deltaKinEnergy
380 G4double totMomentum = totEnergy*sqrt(beta2);
384 (deltaMomentum * totMomentum);
401 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
406 G4ThreeVector deltaDirection(sint*cos(phi),sint*sin(phi), cost);
412 deltaDirection,deltaKinEnergy);
414 vdp->push_back(delta);
417 kineticEnergy -= deltaKinEnergy;
418 G4ThreeVector finalP = direction*totMomentum - deltaDirection*deltaMomentum;
419 finalP = finalP.
unit();
434 (1. + 2.0*(tau + 1.)*ratio + ratio*ratio);
435 return std::min(tmax,tlimit);