#include <G4Mag_SpinEqRhs.hh>
Definition at line 51 of file G4Mag_SpinEqRhs.hh.
◆ G4Mag_SpinEqRhs()
◆ ~G4Mag_SpinEqRhs()
G4Mag_SpinEqRhs::~G4Mag_SpinEqRhs |
( |
| ) |
|
◆ EvaluateRhsGivenB()
Implements G4Mag_EqRhs.
Definition at line 83 of file G4Mag_SpinEqRhs.cc.
88 G4double inv_momentum_magnitude = 1.0 / std::sqrt( momentum_mag_square );
91 dydx[0] =
y[3] * inv_momentum_magnitude;
92 dydx[1] =
y[4] * inv_momentum_magnitude;
93 dydx[2] =
y[5] * inv_momentum_magnitude;
100 dydx[3] = cof*(
y[4]*
B[2] -
y[5]*
B[1]) ;
101 dydx[4] = cof*(
y[5]*
B[0] -
y[3]*
B[2]) ;
102 dydx[5] = cof*(
y[3]*
B[1] -
y[4]*
B[0]) ;
106 u *= inv_momentum_magnitude;
114 dydx[6] = dydx[7] = dydx[8] = 0.0;
119 if (
charge == 0.) pcharge = 1.;
123 if (Spin.mag2() != 0.) {
124 dSpin = pcharge*
omegac*(ucb*(Spin.cross(BField))-udb*(Spin.cross(u)));
127 dydx[ 9] = dSpin.x();
128 dydx[10] = dSpin.y();
129 dydx[11] = dSpin.z();
◆ GetAnomaly()
G4double G4Mag_SpinEqRhs::GetAnomaly |
( |
| ) |
const |
|
inline |
◆ SetAnomaly()
void G4Mag_SpinEqRhs::SetAnomaly |
( |
G4double |
a | ) |
|
|
inline |
◆ SetChargeMomentumMass()
Reimplemented from G4Mag_EqRhs.
Definition at line 56 of file G4Mag_SpinEqRhs.cc.
G4double GetCharge() const
virtual void SetChargeMomentumMass(G4ChargeState particleCharge, G4double MomentumXc, G4double mass)
G4double GetMagneticDipoleMoment() const
static const double eplus
◆ anomaly
◆ beta
◆ charge
◆ gamma
◆ magMoment
◆ mass
◆ omegac
◆ spin
The documentation for this class was generated from the following files: