- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/highenergy/src/G4hhIonisation.cc
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4hhIonisation.cc,v 1. 9 2009/02/20 16:38:33vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4hhIonisation.cc,v 1.8 2008/10/16 14:29:48 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 75 75 G4hhIonisation::~G4hhIonisation() 76 76 {} 77 78 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....79 80 G4bool G4hhIonisation::IsApplicable(const G4ParticleDefinition& p)81 {82 return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 100.0*MeV &&83 !p.IsShortLived());84 }85 86 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....87 88 G4double G4hhIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,89 const G4Material*,90 G4double cut)91 {92 G4double x = 0.5*cut/electron_mass_c2;93 G4double y = electron_mass_c2/mass;94 G4double g = x*y + std::sqrt((1. + x)*(1. + x*y*y));95 return mass*(g - 1.0);96 }97 77 98 78 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracChangeset
for help on using the changeset viewer.