- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/include/G4hIonisation.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4hIonisation.hh,v 1.4 2 2009/02/20 12:06:37vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4hIonisation.hh,v 1.41 2008/09/14 17:11:48 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 93 93 virtual ~G4hIonisation(); 94 94 95 virtualG4bool IsApplicable(const G4ParticleDefinition& p);95 G4bool IsApplicable(const G4ParticleDefinition& p); 96 96 97 virtualG4double MinPrimaryEnergy(const G4ParticleDefinition* p,98 97 G4double MinPrimaryEnergy(const G4ParticleDefinition* p, 98 const G4Material*, G4double cut); 99 99 100 100 // Print out of the class parameters … … 123 123 124 124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 125 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 126 127 inline G4bool G4hIonisation::IsApplicable(const G4ParticleDefinition& p) 128 { 129 return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV && 130 !p.IsShortLived()); 131 } 132 133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 134 135 inline G4double G4hIonisation::MinPrimaryEnergy(const G4ParticleDefinition*, 136 const G4Material*, 137 G4double cut) 138 { 139 G4double x = 0.5*cut/electron_mass_c2; 140 G4double g = x*ratio + std::sqrt((1. + x)*(1. + x*ratio*ratio)); 141 return mass*(g - 1.0); 142 } 143 144 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 125 145 126 146 inline void G4hIonisation::ActivateNuclearStopping(G4bool val)
Note: See TracChangeset
for help on using the changeset viewer.