- Timestamp:
- Nov 25, 2008, 5:27:50 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/particles/management/include/G4ParticleDefinition.icc
r850 r890 25 25 // 26 26 // 27 // $Id: G4ParticleDefinition.icc,v 1.1 2 2007/03/11 07:17:35kurasige Exp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4ParticleDefinition.icc,v 1.13 2008/11/14 16:26:30 kurasige Exp $ 28 // GEANT4 tag $Name: $ 29 29 // 30 30 … … 155 155 } 156 156 157 157 inline 158 G4double G4ParticleDefinition::CalculateAnomaly() const 159 { 160 // gives the anomaly of magnetic moment for spin 1/2 particles 161 if (thePDGiSpin==1) { 162 G4double muB = 0.5*eplus*hbar_Planck/(thePDGMass/c_squared); 163 return 0.5*fabs(thePDGMagneticMoment/muB - 2.*thePDGCharge/eplus); 164 } else { 165 return 0.0; 166 } 167 }
Note: See TracChangeset
for help on using the changeset viewer.