#include <G4EqGravityField.hh>
|
| G4EqGravityField (G4UniformGravityField *gField) |
|
| ~G4EqGravityField () |
|
void | SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double mass) |
|
void | EvaluateRhsGivenB (const G4double y[], const G4double Field[], G4double dydx[]) const |
|
| G4EquationOfMotion (G4Field *Field) |
|
virtual | ~G4EquationOfMotion () |
|
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 |
|
void | SetFieldObj (G4Field *pField) |
|
Definition at line 50 of file G4EqGravityField.hh.
G4EqGravityField::~G4EqGravityField |
( |
| ) |
|
|
inline |
Definition at line 52 of file G4EqGravityField.cc.
61 G4double momentum_mag_square = y[3]*y[3] + y[4]*y[4] + y[5]*y[5];
62 G4double inv_momentum_magnitude = 1.0 / std::sqrt( momentum_mag_square );
64 G4double Energy = std::sqrt(momentum_mag_square + fMass*fMass);
66 G4double cof1 = inv_momentum_magnitude*fMass;
69 dydx[0] = y[3]*inv_momentum_magnitude;
70 dydx[1] = y[4]*inv_momentum_magnitude;
71 dydx[2] = y[5]*inv_momentum_magnitude;
73 dydx[3] = G[0]*cof1*cof2/
c_light;
74 dydx[4] = G[1]*cof1*cof2/
c_light;
75 dydx[5] = G[2]*cof1*cof2/
c_light;
78 dydx[7] = inverse_velocity;
static constexpr double c_light
The documentation for this class was generated from the following files: