- Timestamp:
- Apr 20, 2009, 5:54:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/muons/include/G4MuIonisation.hh
r1005 r1007 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4MuIonisation.hh,v 1.3 1 2009/02/20 14:48:16vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4MuIonisation.hh,v 1.30 2007/05/23 08:49:32 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 95 95 virtual ~G4MuIonisation(); 96 96 97 virtualG4bool IsApplicable(const G4ParticleDefinition& p);97 G4bool IsApplicable(const G4ParticleDefinition& p); 98 98 99 virtualG4double MinPrimaryEnergy(const G4ParticleDefinition* p,100 99 G4double MinPrimaryEnergy(const G4ParticleDefinition* p, 100 const G4Material*, G4double cut); 101 101 102 102 // Print out of the class parameters 103 v irtual void PrintInfo();103 void PrintInfo(); 104 104 105 105 protected: … … 127 127 128 128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 129 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 130 131 inline G4bool G4MuIonisation::IsApplicable(const G4ParticleDefinition& p) 132 { 133 return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV); 134 } 135 136 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 137 138 inline G4double G4MuIonisation::MinPrimaryEnergy(const G4ParticleDefinition*, 139 const G4Material*, 140 G4double cut) 141 { 142 G4double x = 0.5*cut/electron_mass_c2; 143 G4double g = x*ratio + std::sqrt((1. + x)*(1. + x*ratio*ratio)); 144 return mass*(g - 1.0); 145 } 146 147 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 129 148 130 149 #endif
Note: See TracChangeset
for help on using the changeset viewer.