49 fElectroMagCof = eplus*particleCharge;
50 fElectroMagCof /= 2*fine_structure_const;
52 fMassCof = particleMass*particleMass ;
67 G4double pSquared = y[3]*y[3] + y[4]*y[4] + y[5]*y[5] ;
69 G4double Energy = std::sqrt( pSquared + fMassCof );
72 G4double pModuleInverse = 1.0/std::sqrt(pSquared) ;
75 G4double inverse_velocity = Energy * pModuleInverse / c_light;
77 G4double cof1 = fElectroMagCof*pModuleInverse ;
81 dydx[0] = y[3]*pModuleInverse ;
82 dydx[1] = y[4]*pModuleInverse ;
83 dydx[2] = y[5]*pModuleInverse ;
85 dydx[3] = cof1*(cof2*Field[0] - (y[4]*Field[5] - y[5]*Field[4])) ;
87 dydx[4] = cof1*(cof2*Field[1] - (y[5]*Field[3] - y[3]*Field[5])) ;
89 dydx[5] = cof1*(cof2*Field[2] - (y[3]*Field[4] - y[4]*Field[3])) ;
94 dydx[7] = inverse_velocity;
void EvaluateRhsGivenB(const G4double y[], const G4double Field[], G4double dydx[]) const
void SetChargeMomentumMass(G4double particleCharge, G4double MomentumXc, G4double mass)