- Timestamp:
- Apr 6, 2009, 12:21:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/utils/include/G4ionEffectiveCharge.hh
r819 r961 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4ionEffectiveCharge.hh,v 1. 8 2006/08/15 16:21:39vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-0 1-patch-02 $26 // $Id: G4ionEffectiveCharge.hh,v 1.12 2008/09/20 19:39:34 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02-ref-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 56 56 57 57 #include "globals.hh" 58 #include "G4ParticleDefinition.hh" 58 59 59 60 class G4Material; 60 class G4 ParticleDefinition;61 class G4NistManager; 61 62 62 63 class G4ionEffectiveCharge … … 84 85 G4ionEffectiveCharge(const G4ionEffectiveCharge&); 85 86 87 G4NistManager* nist; 88 89 const G4ParticleDefinition* lastPart; 90 const G4Material* lastMat; 91 G4double lastKinEnergy; 92 86 93 G4double chargeCorrection; 94 G4double effCharge; 95 87 96 G4double energyHighLimit; 88 97 G4double energyLowLimit; … … 100 109 G4double kineticEnergy) 101 110 { 102 G4double charge = EffectiveCharge(p,material,kineticEnergy)/eplus; 103 charge *= chargeCorrection; 111 G4double charge = effCharge; 112 if( kineticEnergy != lastKinEnergy || material != lastMat || p != lastPart) { 113 charge = EffectiveCharge(p,material,kineticEnergy); 114 } 115 charge *= chargeCorrection/CLHEP::eplus; 104 116 105 117 return charge*charge;
Note: See TracChangeset
for help on using the changeset viewer.