77 twoln10(std::log(100.0)),
80 beta2lim(betalim*betalim),
81 bg2lim(beta2lim*(1.0 + beta2lim))
91 G4cout <<
"### Monopole ionisation model with d-electron production, Gmag= "
127 if(!
dedx0) {
dedx0 =
new std::vector<G4double>; }
132 if(n < numOfCouples) {
dedx0->resize(numOfCouples); }
136 for(
G4int i=0; i<numOfCouples; ++i) {
192 dedx = (kapa1*dedx1 + kapa2*dedx2)/(kapa1 + kapa2);
214 if(
nmpl > 1) { k = 0.346; }
217 const G4double B[7] = { 0.0, 0.248, 0.672, 1.022, 1.243, 1.464, 1.685};
219 dedx += 0.5 * k - B[
nmpl];
278 if(minKinEnergy >= maxKinEnergy) {
return; }
285 G4double etot2 = totEnergy*totEnergy;
286 G4double beta2 = kineticEnergy*(kineticEnergy + 2.0*
mass)/etot2;
290 G4double deltaKinEnergy = minKinEnergy*maxKinEnergy
291 /(minKinEnergy*(1.0 - q) + maxKinEnergy*q);
294 G4double totMomentum = totEnergy*sqrt(beta2);
298 (deltaMomentum * totMomentum);
301 G4double sint = sqrt((1.0 - cost)*(1.0 + cost));
305 G4ThreeVector deltaDirection(sint*cos(phi),sint*sin(phi), cost);
313 vdp->push_back(delta);
316 kineticEnergy -= deltaKinEnergy;
317 G4ThreeVector finalP = direction*totMomentum - deltaDirection*deltaMomentum;
318 finalP = finalP.
unit();
336 G4double twomeanLoss = meanLoss + meanLoss;
338 if(twomeanLoss < siga) {
342 x = (loss - meanLoss)/siga;
349 }
while (0.0 > loss || loss > twomeanLoss);