- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/highenergy/src/G4mplIonisationModel.cc
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4mplIonisationModel.cc,v 1. 6 2009/02/20 16:38:33vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4mplIonisationModel.cc,v 1.5 2007/11/13 18:36:29 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 139 139 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 140 140 141 G4double G4mplIonisationModel::ComputeDEDXAhlen(const G4Material* material, 142 G4double bg2) 141 G4double G4mplIonisationModel::ComputeDEDXAhlen(const G4Material* material, G4double bg2) 143 142 { 144 143 G4double eDensity = material->GetElectronDensity(); … … 177 176 return dedx; 178 177 } 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 {}188 178 189 179 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... … … 214 204 return loss; 215 205 } 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 * length231 * electronDensity * chargeSquare;232 }233 return siga;234 }235 236 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracChangeset
for help on using the changeset viewer.