- Timestamp:
- Apr 6, 2009, 12:21:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/include/G4hIonisation.hh
r819 r961 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4hIonisation.hh,v 1. 38 2008/01/14 11:59:45vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $26 // $Id: G4hIonisation.hh,v 1.42 2009/02/20 12:06:37 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 63 63 // 08-04-05 Major optimisation of internal interfaces (V.Ivantchenko) 64 64 // 11-04-04 Move MaxSecondaryEnergy to models (V.Ivanchenko) 65 // 12-09-08 Removed CorrectionsAlongStep (VI) 65 66 // 66 67 // Class Description: … … 80 81 #include "G4Positron.hh" 81 82 #include "globals.hh" 82 #include "G4VEmModel.hh"83 #include "G4EmCorrections.hh"84 83 85 84 class G4Material; … … 94 93 virtual ~G4hIonisation(); 95 94 96 G4bool IsApplicable(const G4ParticleDefinition& p);95 virtual G4bool IsApplicable(const G4ParticleDefinition& p); 97 96 98 G4double MinPrimaryEnergy(const G4ParticleDefinition* p,99 const G4Material*, G4double cut);97 virtual G4double MinPrimaryEnergy(const G4ParticleDefinition* p, 98 const G4Material*, G4double cut); 100 99 101 100 // Print out of the class parameters … … 105 104 106 105 protected: 107 108 void CorrectionsAlongStep(109 const G4MaterialCutsCouple*,110 const G4DynamicParticle*,111 G4double& eloss,112 G4double& length);113 106 114 107 virtual void InitialiseEnergyLossProcess(const G4ParticleDefinition*, … … 121 114 G4hIonisation(const G4hIonisation&); 122 115 116 G4bool isInitialised; 117 G4bool nuclearStopping; 118 123 119 G4double mass; 124 120 G4double ratio; 125 126 const G4ParticleDefinition* theParticle; 127 const G4ParticleDefinition* theBaseParticle; 128 G4EmCorrections* corr; 129 130 G4bool isInitialised; 131 G4bool nuclearStopping; 132 133 G4double eth; 134 G4double ethnuc; 135 G4double massratio; 136 121 G4double eth; 137 122 }; 138 139 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....140 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....141 142 inline G4bool G4hIonisation::IsApplicable(const G4ParticleDefinition& p)143 {144 return (p.GetPDGCharge() != 0.0 && p.GetPDGMass() > 10.0*MeV &&145 !p.IsShortLived());146 }147 148 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....149 150 inline G4double G4hIonisation::MinPrimaryEnergy(const G4ParticleDefinition*,151 const G4Material*,152 G4double cut)153 {154 G4double x = 0.5*cut/electron_mass_c2;155 G4double y = electron_mass_c2/mass;156 G4double g = x*y + std::sqrt((1. + x)*(1. + x*y*y));157 return mass*(g - 1.0);158 }159 123 160 124 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
Note: See TracChangeset
for help on using the changeset viewer.