- Timestamp:
- Apr 17, 2009, 12:17:14 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/processes/electromagnetic/standard/include/G4IonFluctuations.hh
r961 r991 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4IonFluctuations.hh,v 1. 9 2009/02/19 19:17:50vnivanch Exp $27 // GEANT4 tag $Name: geant4-09-02 -ref-02$26 // $Id: G4IonFluctuations.hh,v 1.8 2008/10/22 16:04:33 vnivanch Exp $ 27 // GEANT4 tag $Name: geant4-09-02 $ 28 28 // 29 29 // ------------------------------------------------------------------- … … 84 84 85 85 // Initialisation prestep 86 void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2);86 inline void SetParticleAndCharge(const G4ParticleDefinition*, G4double q2); 87 87 88 88 private: … … 117 117 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 118 118 119 inline 120 void G4IonFluctuations::SetParticleAndCharge(const G4ParticleDefinition* part, 121 G4double q2) 122 { 123 if(part != particle) { 124 particle = part; 125 particleMass = part->GetPDGMass(); 126 charge = part->GetPDGCharge()/eplus; 127 chargeSquare = charge*charge; 128 } 129 effChargeSquare = q2; 130 uniFluct.SetParticleAndCharge(part, q2); 131 } 132 133 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo.... 134 119 135 #endif 120 136
Note: See TracChangeset
for help on using the changeset viewer.