|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
G4EqGravityField implements the right-hand side of equation of motion in a gravity field. More...
#include <G4EqGravityField.hh>
Public Member Functions | |
| G4EqGravityField (G4UniformGravityField *gField) | |
| ~G4EqGravityField () 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) |
G4EqGravityField implements the right-hand side of equation of motion in a gravity field.
Definition at line 47 of file G4EqGravityField.hh.
| G4EqGravityField::G4EqGravityField | ( | G4UniformGravityField * | gField | ) |
Constructor for G4EqGravityField.
| [in] | gField | Pointer to the uniform gravity field. |
Definition at line 39 of file G4EqGravityField.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 53 of file G4EqGravityField.cc.
|
inlineoverridevirtual |
Returns the equation type-ID, "kEqGravity".
Reimplemented from G4EquationOfMotion.
Definition at line 87 of file G4EqGravityField.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 45 of file G4EqGravityField.cc.