#include <G4EqGravityField.hh>
|
| virtual void | EvaluateRhsGivenB (const G4double y[], const G4double B[3], G4double dydx[]) const =0 |
| |
| void | EvaluateRhsGivenB (const G4double y[], const G4double Field[], G4double dydx[]) const |
| |
| void | EvaluateRhsReturnB (const G4double y[], G4double dydx[], G4double Field[]) const |
| |
| | G4EqGravityField (G4UniformGravityField *gField) |
| |
| G4Field * | GetFieldObj () |
| |
| const G4Field * | GetFieldObj () const |
| |
| void | GetFieldValue (const G4double Point[4], G4double Field[]) const |
| |
| void | RightHandSide (const G4double y[], G4double dydx[]) const |
| |
| void | SetChargeMomentumMass (G4ChargeState particleCharge, G4double MomentumXc, G4double mass) |
| |
| void | SetFieldObj (G4Field *pField) |
| |
| | ~G4EqGravityField () |
| |
Definition at line 42 of file G4EqGravityField.hh.
◆ G4EqGravityField()
◆ ~G4EqGravityField()
| G4EqGravityField::~G4EqGravityField |
( |
| ) |
|
◆ EvaluateRhsGivenB() [1/2]
◆ EvaluateRhsGivenB() [2/2]
Definition at line 57 of file G4EqGravityField.cc.
60{
61
62
63
64
65
66 G4double momentum_mag_square = y[3]*y[3] + y[4]*y[4] + y[5]*y[5];
67 G4double inv_momentum_magnitude = 1.0 / std::sqrt( momentum_mag_square );
68
73
74 dydx[0] = y[3]*inv_momentum_magnitude;
75 dydx[1] = y[4]*inv_momentum_magnitude;
76 dydx[2] = y[5]*inv_momentum_magnitude;
77
78 dydx[3] = G[0]*cof1*cof2/
c_light;
79 dydx[4] = G[1]*cof1*cof2/
c_light;
80 dydx[5] = G[2]*cof1*cof2/
c_light;
81
82
83
84 dydx[7] = inverse_velocity;
85
86 return;
87}
References source.hepunit::c_light, and fMass.
◆ EvaluateRhsReturnB()
◆ GetFieldObj() [1/2]
| G4Field * G4EquationOfMotion::GetFieldObj |
( |
| ) |
|
|
inlineinherited |
◆ GetFieldObj() [2/2]
| const G4Field * G4EquationOfMotion::GetFieldObj |
( |
| ) |
const |
|
inlineinherited |
◆ GetFieldValue()
| void G4EquationOfMotion::GetFieldValue |
( |
const G4double |
Point[4], |
|
|
G4double |
Field[] |
|
) |
| const |
|
inlineinherited |
◆ RightHandSide()
| void G4EquationOfMotion::RightHandSide |
( |
const G4double |
y[], |
|
|
G4double |
dydx[] |
|
) |
| const |
|
inlineinherited |
◆ SetChargeMomentumMass()
◆ SetFieldObj()
| void G4EquationOfMotion::SetFieldObj |
( |
G4Field * |
pField | ) |
|
|
inlineinherited |
◆ fMass
◆ itsField
| G4Field* G4EquationOfMotion::itsField = nullptr |
|
privateinherited |
The documentation for this class was generated from the following files: