|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4Mag_SpinEqRhs defines the equation of motion for a particle with spin in a pure magnetic field. The three components of the particle's spin are treated utilising BMT equation. More...
#include <G4Mag_SpinEqRhs.hh>
Public Member Functions | |
| G4Mag_SpinEqRhs (G4MagneticField *MagField) | |
| ~G4Mag_SpinEqRhs () override=default | |
| void | SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double mass) override |
| void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const override |
| void | SetAnomaly (G4double a) |
| G4double | GetAnomaly () const |
| G4EquationType | GetEquationType () const override |
| Public Member Functions inherited from G4Mag_EqRhs | |
| G4Mag_EqRhs (G4MagneticField *magField) | |
| ~G4Mag_EqRhs () override=default | |
| G4double | FCof () const |
| Public Member Functions inherited from G4EquationOfMotion | |
| G4EquationOfMotion (G4Field *Field) | |
| virtual | ~G4EquationOfMotion ()=default |
| 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 |
| G4Field * | GetFieldObj () |
| void | SetFieldObj (G4Field *pField) |
G4Mag_SpinEqRhs defines the equation of motion for a particle with spin in a pure magnetic field. The three components of the particle's spin are treated utilising BMT equation.
Definition at line 51 of file G4Mag_SpinEqRhs.hh.
| G4Mag_SpinEqRhs::G4Mag_SpinEqRhs | ( | G4MagneticField * | MagField | ) |
Constructor for G4Mag_SpinEqRhs.
| [in] | MagField | Pointer to the associated magnetic field. |
Definition at line 37 of file G4Mag_SpinEqRhs.cc.
|
overridedefault |
Default Destructor.
|
overridevirtual |
Calculates the value of the derivative, given the value of the field.
| [in] | y | Coefficients array. |
| [in] | B | Field value. |
| [out] | dydx | Derivatives array. |
Implements G4Mag_EqRhs.
Definition at line 76 of file G4Mag_SpinEqRhs.cc.
|
inline |
Definition at line 87 of file G4Mag_SpinEqRhs.hh.
|
inlineoverridevirtual |
Returns the equation of motion type ID, i.e. "kEqMagneticWithSpin".
Reimplemented from G4EquationOfMotion.
Definition at line 92 of file G4Mag_SpinEqRhs.hh.
|
inline |
Setter and getter for the magnetic anomaly.
Definition at line 86 of file G4Mag_SpinEqRhs.hh.
|
overridevirtual |
Sets the charge momentum mass value.
Reimplemented from G4Mag_EqRhs.
Definition at line 43 of file G4Mag_SpinEqRhs.cc.