- Timestamp:
- Apr 20, 2009, 4:53:50 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/highenergy/src/G4mplIonisationModel.cc
r991 r1005 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4mplIonisationModel.cc,v 1. 5 2007/11/13 18:36:29vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 $26 // $Id: G4mplIonisationModel.cc,v 1.6 2009/02/20 16:38:33 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 139 139 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 140 140 141 G4double G4mplIonisationModel::ComputeDEDXAhlen(const G4Material* material, G4double bg2) 141 G4double G4mplIonisationModel::ComputeDEDXAhlen(const G4Material* material, 142 G4double bg2) 142 143 { 143 144 G4double eDensity = material->GetElectronDensity(); … … 176 177 return dedx; 177 178 } 179 180 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 181 182 void G4mplIonisationModel::SampleSecondaries(std::vector<G4DynamicParticle*>*, 183 const G4MaterialCutsCouple*, 184 const G4DynamicParticle*, 185 G4double, 186 G4double) 187 {} 178 188 179 189 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... … … 204 214 return loss; 205 215 } 216 217 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 218 219 G4double G4mplIonisationModel::Dispersion(const G4Material* material, 220 const G4DynamicParticle* dp, 221 G4double& tmax, 222 G4double& length) 223 { 224 G4double siga = 0.0; 225 G4double tau = dp->GetKineticEnergy()/mass; 226 if(tau > 0.0) { 227 G4double electronDensity = material->GetElectronDensity(); 228 G4double gam = tau + 1.0; 229 G4double invbeta2 = (gam*gam)/(tau * (tau+2.0)); 230 siga = (invbeta2 - 0.5) * twopi_mc2_rcl2 * tmax * length 231 * electronDensity * chargeSquare; 232 } 233 return siga; 234 } 235 236 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracChangeset
for help on using the changeset viewer.