#include <G4Mag_UsualEqRhs.hh>
|
| G4Mag_UsualEqRhs (G4MagneticField *MagField) |
|
| ~G4Mag_UsualEqRhs () |
|
void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const |
|
virtual void | SetChargeMomentumMass (G4double particleCharge, G4double MomentumXc, G4double mass) |
|
| G4Mag_EqRhs (G4MagneticField *magField) |
|
virtual | ~G4Mag_EqRhs () |
|
virtual void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const =0 |
|
G4double | FCof () const |
|
virtual void | SetChargeMomentumMass (G4double particleCharge, G4double MomentumXc, G4double mass) |
|
| G4EquationOfMotion (G4Field *Field) |
|
virtual | ~G4EquationOfMotion () |
|
virtual void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const =0 |
|
virtual void | SetChargeMomentumMass (G4double particleCharge, G4double MomentumXc, G4double MassXc2)=0 |
|
void | RightHandSide (const G4double y[], G4double dydx[]) const |
|
void | EvaluateRhsReturnB (const G4double y[], G4double dydx[], G4double Field[]) const |
|
void | GetFieldValue (const G4double Point[4], G4double Field[]) const |
|
const G4Field * | GetFieldObj () const |
|
void | SetFieldObj (G4Field *pField) |
|
Definition at line 50 of file G4Mag_UsualEqRhs.hh.
◆ G4Mag_UsualEqRhs()
◆ ~G4Mag_UsualEqRhs()
G4Mag_UsualEqRhs::~G4Mag_UsualEqRhs |
( |
| ) |
|
◆ EvaluateRhsGivenB()
Implements G4Mag_EqRhs.
Definition at line 48 of file G4Mag_UsualEqRhs.cc.
51{
52 G4double momentum_mag_square = y[3]*y[3] + y[4]*y[4] + y[5]*y[5];
53 G4double inv_momentum_magnitude = 1.0 / std::sqrt( momentum_mag_square );
54
56
57 dydx[0] = y[3]*inv_momentum_magnitude;
58 dydx[1] = y[4]*inv_momentum_magnitude;
59 dydx[2] = y[5]*inv_momentum_magnitude;
60
61 dydx[3] = cof*(y[4]*B[2] - y[5]*B[1]) ;
62 dydx[4] = cof*(y[5]*B[0] - y[3]*B[2]) ;
63 dydx[5] = cof*(y[3]*B[1] - y[4]*B[0]) ;
64
65 return ;
66}
Referenced by G4ErrorMag_UsualEqRhs::EvaluateRhsGivenB().
◆ SetChargeMomentumMass()
Reimplemented from G4Mag_EqRhs.
Definition at line 69 of file G4Mag_UsualEqRhs.cc.
74{
75
76
77
78
80}
virtual void SetChargeMomentumMass(G4double particleCharge, G4double MomentumXc, G4double mass)
The documentation for this class was generated from the following files: