|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4EqMagElectricField implements the right-hand side of equation of motion in a combined electric and magnetic field. More...
#include <G4EqMagElectricField.hh>
Public Member Functions | |
| G4EqMagElectricField (G4ElectroMagneticField *emField) | |
| ~G4EqMagElectricField () override=default | |
| void | SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double mass) override |
| void | EvaluateRhsGivenB (const G4double y[], const G4double Field[], G4double dydx[]) const override |
| 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) |
G4EqMagElectricField implements the right-hand side of equation of motion in a combined electric and magnetic field.
Definition at line 47 of file G4EqMagElectricField.hh.
| G4EqMagElectricField::G4EqMagElectricField | ( | G4ElectroMagneticField * | emField | ) |
Constructor for G4EqMagElectricField.
| [in] | emField | Pointer to the electromagnetic field. |
Definition at line 42 of file G4EqMagElectricField.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 58 of file G4EqMagElectricField.cc.
|
inlineoverridevirtual |
Returns the equation type-ID, "kEqElectroMagnetic".
Reimplemented from G4EquationOfMotion.
Definition at line 87 of file G4EqMagElectricField.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 48 of file G4EqMagElectricField.cc.