40 spin(0.), fElectroMagCof(0.), fMassCof(0.), omegac(0.),
41 anomaly(0.0011659208),
beta(0.), gamma(0.)
100 G4double pSquared = y[3]*y[3] + y[4]*y[4] + y[5]*y[5] ;
105 G4double pModuleInverse = 1.0/std::sqrt(pSquared) ;
111 dydx[0] = y[3]*pModuleInverse ;
112 dydx[1] = y[4]*pModuleInverse ;
113 dydx[2] = y[5]*pModuleInverse ;
115 dydx[3] = cof1*(cof2*Field[3] + (y[4]*Field[2] - y[5]*Field[1])) ;
117 dydx[4] = cof1*(cof2*Field[4] + (y[5]*Field[0] - y[3]*Field[2])) ;
119 dydx[5] = cof1*(cof2*Field[5] + (y[3]*Field[1] - y[4]*Field[0])) ;
121 dydx[6] = dydx[8] = 0.;
124 dydx[7] = inverse_velocity;
151 if (Spin.mag2() != 0.)
153 dSpin = pcharge*
omegac*( ucb*(Spin.cross(BField))-udb*(Spin.cross(u))
157 - uce*(u*(Spin*EField) - EField*(Spin*u)) );
160 dydx[ 9] = dSpin.
x();
161 dydx[10] = dSpin.
y();
162 dydx[11] = dSpin.
z();
static constexpr double eplus
G4double GetCharge() const
G4double GetMagneticDipoleMoment() const
G4EqEMFieldWithSpin(G4ElectroMagneticField *emField)
void EvaluateRhsGivenB(const G4double y[], const G4double Field[], G4double dydx[]) const
void SetChargeMomentumMass(G4ChargeState particleCharge, G4double MomentumXc, G4double mass)