Ignore:
Timestamp:
Nov 25, 2008, 5:27:50 PM (16 years ago)
Author:
garnier
Message:

update to pre-tag revision

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/particles/management/include/G4ParticleDefinition.icc

    r850 r890  
    2525//
    2626//
    27 // $Id: G4ParticleDefinition.icc,v 1.12 2007/03/11 07:17:35 kurasige 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: $
    2929//
    3030
     
    155155}
    156156
    157 
     157inline
     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.