- Timestamp:
- Feb 16, 2009, 10:14:30 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/geometry/magneticfield/src/G4Mag_SpinEqRhs.cc
r850 r921 25 25 // 26 26 // 27 // $Id: G4Mag_SpinEqRhs.cc,v 1.1 2 2006/06/29 18:24:39 gunterExp $28 // GEANT4 tag $Name: HEAD$27 // $Id: G4Mag_SpinEqRhs.cc,v 1.13 2008/11/21 21:18:26 gum Exp $ 28 // GEANT4 tag $Name: geant4-09-02-cand-01 $ 29 29 // 30 30 // This is the standard right-hand side for equation of motion. … … 45 45 : G4Mag_EqRhs( MagField ) 46 46 { 47 anomaly = 1.165923e-3;47 anomaly = 0.0011659208; 48 48 } 49 49 … … 53 53 G4Mag_SpinEqRhs::SetChargeMomentumMass(G4double particleCharge, // in e+ units 54 54 G4double MomentumXc, 55 G4double mass)55 G4double particleMass) 56 56 { 57 57 // To set fCof_val 58 G4Mag_EqRhs::SetChargeMomentumMass(particleCharge, MomentumXc, mass);58 G4Mag_EqRhs::SetChargeMomentumMass(particleCharge, MomentumXc, particleMass); 59 59 60 omegac = 0.105658387*GeV/ mass * 2.837374841e-3*(rad/cm/kilogauss);60 omegac = 0.105658387*GeV/particleMass * 2.837374841e-3*(rad/cm/kilogauss); 61 61 62 62 ParticleCharge = particleCharge; 63 63 64 E = std::sqrt(sqr(MomentumXc)+sqr( mass));64 E = std::sqrt(sqr(MomentumXc)+sqr(particleMass)); 65 65 beta = MomentumXc/E; 66 gamma = E/ mass;66 gamma = E/particleMass; 67 67 68 68 } … … 96 96 97 97 G4ThreeVector Spin(y[9],y[10],y[11]); 98 99 if (Spin.mag() > 0.) Spin = Spin.unit(); 100 98 101 G4ThreeVector dSpin; 99 102
Note: See TracChangeset
for help on using the changeset viewer.