|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4EqEMFieldWithSpin implements the right-hand side of equation of motion in a combined electric and magnetic field. More...
#include <G4EqEMFieldWithSpin.hh>
Public Member Functions | |
| G4EqEMFieldWithSpin (G4ElectroMagneticField *emField) | |
| ~G4EqEMFieldWithSpin () override=default | |
| void | SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double mass) override |
| void | EvaluateRhsGivenB (const G4double y[], const G4double Field[], G4double dydx[]) const override |
| void | SetAnomaly (G4double a) |
| G4double | GetAnomaly () const |
| G4EquationType | GetEquationType () const override |
| Public Member Functions inherited from G4EquationOfMotion | |
| G4EquationOfMotion (G4Field *Field) | |
| virtual | ~G4EquationOfMotion ()=default |
| virtual void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const =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 |
| G4Field * | GetFieldObj () |
| void | SetFieldObj (G4Field *pField) |
G4EqEMFieldWithSpin implements the right-hand side of equation of motion in a combined electric and magnetic field.
Definition at line 48 of file G4EqEMFieldWithSpin.hh.
| G4EqEMFieldWithSpin::G4EqEMFieldWithSpin | ( | G4ElectroMagneticField * | emField | ) |
Constructor for G4EqEMFieldWithSpin.
| [in] | emField | Pointer to the electromagnetic field. |
Definition at line 38 of file G4EqEMFieldWithSpin.cc.
|
overridedefault |
Default Destructor.
|
override |
Calculates the value of the derivative, given the value of the electromagnetic field.
| [in] | y | Coefficients array. |
| [in] | Field | Field value. |
| [out] | dydx | Derivatives array. |
Definition at line 78 of file G4EqEMFieldWithSpin.cc.
|
inline |
Definition at line 89 of file G4EqEMFieldWithSpin.hh.
|
inlineoverridevirtual |
Returns the equation type-ID, "kEqEMfieldWithSpin".
Reimplemented from G4EquationOfMotion.
Definition at line 94 of file G4EqEMFieldWithSpin.hh.
|
inline |
Setter and getter for magnetic anomaly.
Definition at line 88 of file G4EqEMFieldWithSpin.hh.
|
overridevirtual |
Sets the charge, momentum and mass of the current particle. Used to set the equation's coefficients.
| [in] | particleCharge | Magnetic charge and moments in e+ units. |
| [in] | MomentumXc | Particle momentum. |
| [in] | mass | Particle mass. |
Implements G4EquationOfMotion.
Definition at line 44 of file G4EqEMFieldWithSpin.cc.