- Timestamp:
- Nov 5, 2010, 3:45:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/src/G4BetheBlochModel.cc
r1337 r1340 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4BetheBlochModel.cc,v 1. 37 2010/05/27 10:25:59vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-04-beta-01$26 // $Id: G4BetheBlochModel.cc,v 1.40 2010/11/04 17:30:31 vnivanch Exp $ 27 // GEANT4 tag $Name: emstand-V09-03-25 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 82 82 { 83 83 fParticleChange = 0; 84 theElectron = G4Electron::Electron(); 84 85 if(p) { 85 86 SetGenericIon(p); 86 87 SetParticle(p); 87 } 88 theElectron = G4Electron::Electron(); 88 } else { 89 SetParticle(theElectron); 90 } 89 91 corr = G4LossTableManager::Instance()->EmCorrections(); 90 92 nist = G4NistManager::Instance(); … … 117 119 // << G4endl; 118 120 119 corrFactor = chargeSquare;120 121 // always false before the run 121 122 SetDeexcitationFlag(false); … … 157 158 G4double q = particle->GetPDGCharge()/eplus; 158 159 chargeSquare = q*q; 160 corrFactor = chargeSquare; 159 161 ratio = electron_mass_c2/mass; 160 162 G4double magmom = … … 275 277 276 278 // shell correction 277 dedx -= 2.0*corr->ShellCorrection(p,material,kineticEnergy); 279 //dedx -= 2.0*corr->ShellCorrection(p,material,kineticEnergy); 280 dedx -= corr->ShellCorrection(p,material,kineticEnergy); 278 281 279 282 // now compute the total ionization loss 280 281 if (dedx < 0.0) dedx = 0.0 ;282 283 283 dedx *= twopi_mc2_rcl2*chargeSquare*eDensity/beta2; 284 284 … … 289 289 dedx += corr->HighOrderCorrections(p,material,kineticEnergy,cutEnergy); 290 290 } 291 292 if (dedx < 0.0) { dedx = 0.0; } 291 293 return dedx; 292 294 }
Note: See TracChangeset
for help on using the changeset viewer.