47 spin(0.), fElectroMagCof(0.), fMassCof(0.), omegac(0.),
48 anomaly(0.0011659208), eta(0.),
beta(0.), gamma(0.)
116 G4double pSquared = y[3]*y[3] + y[4]*y[4] + y[5]*y[5] ;
121 G4double pModuleInverse = 1.0/std::sqrt(pSquared) ;
127 dydx[0] = y[3]*pModuleInverse ;
128 dydx[1] = y[4]*pModuleInverse ;
129 dydx[2] = y[5]*pModuleInverse ;
131 dydx[3] = cof1*(cof2*Field[3] + (y[4]*Field[2] - y[5]*Field[1])) ;
133 dydx[4] = cof1*(cof2*Field[4] + (y[5]*Field[0] - y[3]*Field[2])) ;
135 dydx[5] = cof1*(cof2*Field[5] + (y[3]*Field[1] - y[4]*Field[0])) ;
137 dydx[6] = dydx[8] = 0.;
140 dydx[7] = inverse_velocity;
158 if (
charge == 0.) pcharge = 1.;
162 if (Spin.
mag2() != 0.) {
168 - uce*(u*(Spin*EField) - EField*(Spin*u))
171 + (u*(Spin*BField) - BField*(Spin*u)) ) );
174 dydx[ 9] = dSpin.
x();
175 dydx[10] = dSpin.
y();
176 dydx[11] = dSpin.
z();
static constexpr double hbar_Planck
static constexpr double c_squared
void SetChargeMomentumMass(G4ChargeState particleCharge, G4double MomentumXc, G4double mass)
Hep3Vector cross(const Hep3Vector &) const
void EvaluateRhsGivenB(const G4double y[], const G4double Field[], G4double dydx[]) const
static constexpr double eplus
static constexpr double c_light
G4double GetMagneticDipoleMoment() const
G4double GetCharge() const
G4EqEMFieldWithEDM(G4ElectroMagneticField *emField)